public final class FontUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HI_SURROGATE_START
Temporary constants moved from CharToGlyphMapper.
|
static int |
LO_SURROGATE_END |
static int |
MAX_LAYOUT_CHARCODE
Referenced by code in the JDK which wants to test for the
maximum char code for which layout may be required.
|
static int |
MIN_LAYOUT_CHARCODE
Referenced by code in the JDK which wants to test for the
minimum char code for which layout may be required.
|
| Constructor and Description |
|---|
FontUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearDerivedFontsCache()
Clears derived fonts cache.
|
static java.awt.Font |
getCachedDerivedFont(java.awt.Font font,
int style,
int size)
Get derived font by font, style and size.
|
protected static DerivedFontAttributes |
getFontAttribute(java.awt.Font font,
int style,
int size)
Returns derived font attributes object.
|
static boolean |
isComplexLayout(char[] text,
int start,
int limit)
checks whether TextLayout is required to handle characters.
|
static boolean |
isComplexText(char[] chs,
int start,
int limit)
If there is anything in the text which triggers a case
where char->glyph does not map 1:1 in straightforward
left->right ordering, then this method returns true.
|
public static final int MIN_LAYOUT_CHARCODE
public static final int MAX_LAYOUT_CHARCODE
public static final int HI_SURROGATE_START
public static final int LO_SURROGATE_END
public static void clearDerivedFontsCache()
public static java.awt.Font getCachedDerivedFont(java.awt.Font font,
int style,
int size)
font - original fontstyle - new font stylesize - new font sizeprotected static DerivedFontAttributes getFontAttribute(java.awt.Font font, int style, int size)
font - original fontstyle - new font stylesize - new font sizepublic static boolean isComplexLayout(char[] text,
int start,
int limit)
text - characters to be testedstart - startlimit - limitpublic static boolean isComplexText(char[] chs,
int start,
int limit)