Package org.apache.fontbox.ttf
Class WGL4Names
java.lang.Object
org.apache.fontbox.ttf.WGL4Names
Windows Glyph List 4 (WGL4) names for Mac glyphs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String[]The 258 standard mac glyph names a used in 'post' format 1 and 2.The indices of the standard mac glyph names.static final intThe number of standard mac glyph names. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]Returns a new array with all glyph names.static IntegergetGlyphIndex(String name) Returns the index of the glyph with the given name.static StringgetGlyphName(int index) Returns the name of the glyph at the given index.
-
Field Details
-
NUMBER_OF_MAC_GLYPHS
public static final int NUMBER_OF_MAC_GLYPHSThe number of standard mac glyph names.- See Also:
-
MAC_GLYPH_NAMES
The 258 standard mac glyph names a used in 'post' format 1 and 2. -
MAC_GLYPH_NAMES_INDICES
The indices of the standard mac glyph names.
-
-
Constructor Details
-
WGL4Names
private WGL4Names()
-
-
Method Details
-
getGlyphIndex
Returns the index of the glyph with the given name.- Parameters:
name- the name of the glyph- Returns:
- the index of the given glyph name or null for an invalid glyph name
-
getGlyphName
Returns the name of the glyph at the given index.- Parameters:
index- the index of the glyph- Returns:
- the name of the glyph at the given index or null fo an invalid glyph index
-
getAllNames
Returns a new array with all glyph names.- Returns:
- the array with all glyph names
-