Package com.tom_roush.fontbox.ttf
Class OpenTypeScript
- java.lang.Object
-
- com.tom_roush.fontbox.ttf.OpenTypeScript
-
public final class OpenTypeScript extends Object
A class for mapping Unicode codepoints to OpenType script tags
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]getScriptTags(int codePoint)Obtain the OpenType script tags associated with the given Unicode codepoint.
-
-
-
Field Detail
-
INHERITED
public static final String INHERITED
- See Also:
- Constant Field Values
-
UNKNOWN
public static final String UNKNOWN
- See Also:
- Constant Field Values
-
TAG_DEFAULT
public static final String TAG_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getScriptTags
public static String[] getScriptTags(int codePoint)
Obtain the OpenType script tags associated with the given Unicode codepoint. The result may contain the special value#INHERITED, which indicates that the codepoint's script can only be determined by its context. Unknown codepoints are mapped to#TAG_DEFAULT.- Parameters:
codePoint-- Returns:
- An array of four-char script tags
-
-