| |
|
| java.lang.Object de.intarsys.pdf.encoding.GlyphNameMap
GlyphNameMap | public class GlyphNameMap extends Object (Code) | | The mapping from Adobe glyph names to Unicode.
Currently only "Latin" encoding is included.
todo 2 cmap read externalized representation from adobe
|
Constructor Summary | |
protected | GlyphNameMap() Create a GlyphNameMap. |
Method Summary | |
protected void | addEntry(String glyphName, int unicode) Add an entry to the collection of known mappings. | public String | getGlyphName(int unicode) Get the adobe glyph name for a unicode code point or ".notdef" if not
available.
Parameters: unicode - The unicode code point to look up. | protected Map | getGlyphNameToUnicode() The internal representation of the map from glyph names to unicode. | public int | getUnicode(String glyphName) Get the unicode code point for an Adobe glyph name.
If the glyph name is unknown, -1 is returned.
Parameters: glyphName - An adobe glyph name. | protected Map | getUnicodeToGlyphName() The internal representation of the map from unicode to glyph names . |
GlyphNameMap | protected GlyphNameMap()(Code) | | Create a GlyphNameMap.
|
addEntry | protected void addEntry(String glyphName, int unicode)(Code) | | Add an entry to the collection of known mappings.
Parameters: glyphName - The adobe glyph name. Parameters: unicode - The unicode code point. |
getGlyphName | public String getGlyphName(int unicode)(Code) | | Get the adobe glyph name for a unicode code point or ".notdef" if not
available.
Parameters: unicode - The unicode code point to look up. The adobe glyph name or ".notdef". |
getGlyphNameToUnicode | protected Map getGlyphNameToUnicode()(Code) | | The internal representation of the map from glyph names to unicode.
The internal representation of the map from glyph names tounicode. |
getUnicode | public int getUnicode(String glyphName)(Code) | | Get the unicode code point for an Adobe glyph name.
If the glyph name is unknown, -1 is returned.
Parameters: glyphName - An adobe glyph name. The unicode code point for an Adobe glyph name or -1. |
getUnicodeToGlyphName | protected Map getUnicodeToGlyphName()(Code) | | The internal representation of the map from unicode to glyph names .
The internal representation of the map from unicode to glyphnames . |
|
|
|