Package org.apache.fontbox.ttf
Class OpenTypeScript
- java.lang.Object
-
- org.apache.fontbox.ttf.OpenTypeScript
-
public final class OpenTypeScript extends java.lang.Object
A class for mapping Unicode codepoints to OpenType script tags- Author:
- Aaron Madlon-Kay
- See Also:
- Microsoft Typography: Script Tags, Unicode Script Property
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INHERITED
static java.lang.String
TAG_DEFAULT
static java.lang.String
UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
getScriptTags(int codePoint)
Obtain the OpenType script tags associated with the given Unicode codepoint.
-
-
-
Field Detail
-
INHERITED
public static final java.lang.String INHERITED
- See Also:
- Constant Field Values
-
UNKNOWN
public static final java.lang.String UNKNOWN
- See Also:
- Constant Field Values
-
TAG_DEFAULT
public static final java.lang.String TAG_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getScriptTags
public static java.lang.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
-
-