Package org.omegat.util.gui
Class FontFallbackManager
- java.lang.Object
-
- org.omegat.util.gui.FontFallbackManager
-
public final class FontFallbackManager extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
canDisplay(java.awt.Font font, int codePoint)
Check a character displayable with font.static int
canDisplayUpTo(java.awt.Font font, char[] text, int start, int limit)
static int
canDisplayUpTo(java.awt.Font font, java.lang.String str)
Detect specified codePoints can display with specified font.static int
canDisplayUpTo(java.awt.Font font, java.text.CharacterIterator iter, int start, int limit)
static java.awt.Font
getCapableFont(int cp)
-
-
-
Method Detail
-
canDisplayUpTo
public static int canDisplayUpTo(java.awt.Font font, java.lang.String str)
Detect specified codePoints can display with specified font. Wrapper of Font class methods.
-
canDisplayUpTo
public static int canDisplayUpTo(java.awt.Font font, char[] text, int start, int limit)
-
canDisplayUpTo
public static int canDisplayUpTo(java.awt.Font font, java.text.CharacterIterator iter, int start, int limit)
-
canDisplay
public static boolean canDisplay(java.awt.Font font, int codePoint)
Check a character displayable with font.- Parameters:
font
- target fontcodePoint
- character to check- Returns:
- true when codePoint can be displayed, otherwise false.
-
getCapableFont
public static java.awt.Font getCapableFont(int cp)
-
-