intarsys PDF library API

de.intarsys.pdf.encoding
Class GlyphNameMap

java.lang.Object
  extended by de.intarsys.pdf.encoding.GlyphNameMap

public class GlyphNameMap
extends Object

The mapping from Adobe glyph names to Unicode.

Currently only "Latin" encoding is included.

todo 2 cmap read externalized representation from adobe


Field Summary
static String GLYPH_NOTDEF
           
static GlyphNameMap Standard
           
 
Method Summary
 String getGlyphName(int unicode)
          Get the adobe glyph name for a unicode code point or ".notdef" if not available.
 int getUnicode(String glyphName)
          Get the unicode code point for an Adobe glyph name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Standard

public static final GlyphNameMap Standard

GLYPH_NOTDEF

public static final String GLYPH_NOTDEF
See Also:
Constant Field Values
Method Detail

getGlyphName

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.
Returns:
The adobe glyph name or ".notdef".

getUnicode

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.
Returns:
The unicode code point for an Adobe glyph name or -1.

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.