Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1034611 // canFontDisplay - does a font support all characters in a text?

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7830L/44K).

sbool canFontDisplay(Font font, S text) {
  for (S line : linesIterator(text))
    if (font.canDisplayUpTo(line) >= 0)
      false;
  true;
}

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: 80 / 125
Version history: 1 change(s)
Referenced in: [show references]