Libraryless. Click here for Pure Java version (7830L/44K).
1 | sbool canFontDisplay(Font font, S text) { |
2 | for (S line : linesIterator(text)) |
3 | if (font.canDisplayUpTo(line) >= 0) |
4 | false; |
5 | true; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034611 |
Snippet name: | canFontDisplay - does a font support all characters in a text? |
Eternal ID of this version: | #1034611/2 |
Text MD5: | 1ac8d82d97903f86409a090b9c7a7a80 |
Transpilation MD5: | da7501d003fca44c5d38df770e2c14a5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-30 01:06:43 |
Source code size: | 146 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 155 / 222 |
Version history: | 1 change(s) |
Referenced in: | [show references] |