Package com.itextpdf.io.font
Class AdobeGlyphList
java.lang.Object
com.itextpdf.io.font.AdobeGlyphList
Provides mappings between Adobe glyph names and Unicode code points.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturns the number of loaded glyph names.static intReturns the number of loaded unicodes.static intnameToUnicode(String name) Resolves an Adobe glyph name to a Unicode code point.static StringunicodeToName(int num) Resolves a Unicode code point to an Adobe glyph name.
-
Constructor Details
-
AdobeGlyphList
public AdobeGlyphList()
-
-
Method Details
-
nameToUnicode
Resolves an Adobe glyph name to a Unicode code point.- Parameters:
-
name- the glyph name - Returns:
-
the code point, or
-1when the name is unknown
-
unicodeToName
Resolves a Unicode code point to an Adobe glyph name.- Parameters:
-
num- the Unicode code point - Returns:
-
the glyph name, or
nullwhen unknown
-
getNameToUnicodeLength
public static int getNameToUnicodeLength()Returns the number of loaded glyph names.- Returns:
- the number of loaded glyph-name mappings
-
getUnicodeToNameLength
public static int getUnicodeToNameLength()Returns the number of loaded unicodes.- Returns:
- the number of loaded Unicode mappings
-