jPod PDF library

de.intarsys.pdf.font
Class CharacterSelector

java.lang.Object
  extended by de.intarsys.pdf.font.CharacterSelector
Direct Known Subclasses:
CharacterSelectorCID, CharacterSelectorCode, CharacterSelectorName

public abstract class CharacterSelector
extends Object

A selector for a character within a font. Within PDF only CID's are supported.

A character may be identified by different means (name, index, unicode..).


Field Summary
static CharacterSelector Notdef
          The special selector for undefined glyphs.
static int NotdefCID
          The special CID value for undefined glyphs.
 
Method Summary
 int getFontNumber()
          The font number referenced by this selector.
abstract  int getLength()
          The number of bytes this selector occupies.
abstract  int getValue()
          The integer equivalent of the selector.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Notdef

public static final CharacterSelector Notdef
The special selector for undefined glyphs.


NotdefCID

public static final int NotdefCID
The special CID value for undefined glyphs.

See Also:
Constant Field Values
Method Detail

getFontNumber

public int getFontNumber()
The font number referenced by this selector.

In PDF this is always 0.

Returns:
The font number referenced by this selector.

getLength

public abstract int getLength()
The number of bytes this selector occupies.

Returns:
The number of bytes this selector occupies.

getValue

public abstract int getValue()
The integer equivalent of the selector.

A selector must not be larger than the platform integer size.

Returns:
The integer equivalent of the selector.

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.