Class GlyphList
java.lang.Object
org.apache.pdfbox.pdmodel.font.encoding.GlyphList
PostScript glyph list, maps glyph names to sequences of Unicode characters.
Instances of GlyphList are immutable.
-
Constructor Summary
ConstructorsConstructorDescriptionGlyphList
(InputStream input, int numberOfEntries) Creates a new GlyphList from a glyph list file.GlyphList
(GlyphList glyphList, InputStream input) Creates a new GlyphList from multiple glyph list files. -
Method Summary
Modifier and TypeMethodDescriptioncodePointToName
(int codePoint) Returns the name for the given Unicode code point.static GlyphList
Returns the Adobe Glyph List (AGL).static GlyphList
Returns the Zapf Dingbats glyph list.sequenceToName
(String unicodeSequence) Returns the name for a given sequence of Unicode characters.Returns the Unicode character sequence for the given glyph name, or null if there isn't any.
-
Constructor Details
-
GlyphList
Creates a new GlyphList from a glyph list file.- Parameters:
input
- glyph list in Adobe formatnumberOfEntries
- number of expected values used to preallocate the correct amount of memory- Throws:
IOException
- if the glyph list could not be read
-
GlyphList
Creates a new GlyphList from multiple glyph list files.- Parameters:
glyphList
- an existing glyph list to be copiedinput
- glyph list in Adobe format- Throws:
IOException
- if the glyph list could not be read
-
-
Method Details
-
getAdobeGlyphList
Returns the Adobe Glyph List (AGL). -
getZapfDingbats
Returns the Zapf Dingbats glyph list. -
codePointToName
Returns the name for the given Unicode code point.- Parameters:
codePoint
- Unicode code point- Returns:
- PostScript glyph name, or ".notdef"
-
sequenceToName
Returns the name for a given sequence of Unicode characters.- Parameters:
unicodeSequence
- sequence of Unicode characters- Returns:
- PostScript glyph name, or ".notdef"
-
toUnicode
Returns the Unicode character sequence for the given glyph name, or null if there isn't any.- Parameters:
name
- PostScript glyph name- Returns:
- Unicode character(s), or null.
-