Package org.apache.fontbox.ttf
Class WGL4Names
- java.lang.Object
-
- org.apache.fontbox.ttf.WGL4Names
-
public final class WGL4Names extends java.lang.ObjectWindows Glyph List 4 (WGL4) names for Mac glyphs.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]MAC_GLYPH_NAMESThe 258 standard mac glyph names a used in 'post' format 1 and 2.private static java.util.Map<java.lang.String,java.lang.Integer>MAC_GLYPH_NAMES_INDICESThe indices of the standard mac glyph names.static intNUMBER_OF_MAC_GLYPHSThe number of standard mac glyph names.
-
Constructor Summary
Constructors Modifier Constructor Description privateWGL4Names()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]getAllNames()Returns a new array with all glyph names.static java.lang.IntegergetGlyphIndex(java.lang.String name)Returns the index of the glyph with the given name.static java.lang.StringgetGlyphName(int index)Returns the name of the glyph at the given index.
-
-
-
Field Detail
-
NUMBER_OF_MAC_GLYPHS
public static final int NUMBER_OF_MAC_GLYPHS
The number of standard mac glyph names.- See Also:
- Constant Field Values
-
MAC_GLYPH_NAMES
private static final java.lang.String[] MAC_GLYPH_NAMES
The 258 standard mac glyph names a used in 'post' format 1 and 2.
-
MAC_GLYPH_NAMES_INDICES
private static final java.util.Map<java.lang.String,java.lang.Integer> MAC_GLYPH_NAMES_INDICES
The indices of the standard mac glyph names.
-
-
Method Detail
-
getGlyphIndex
public static java.lang.Integer getGlyphIndex(java.lang.String name)
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
public static java.lang.String getGlyphName(int index)
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
public static java.lang.String[] getAllNames()
Returns a new array with all glyph names.- Returns:
- the array with all glyph names
-
-