intarsys PDF library API

de.intarsys.pdf.font
Class CID

java.lang.Object
  extended by de.intarsys.pdf.font.CID
Direct Known Subclasses:
CIDSelectorCID, CIDSelectorCode, CIDSelectorName

public abstract class CID
extends Object

A selector for a character within a font (Character ID).

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


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

Field Detail

Notdef

public static final CID Notdef
The special CID for undefined glyphs.

Method Detail

getValue

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

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

Returns:
The integer equivalent of the cid.

getFontNumber

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

In PDF this is always 0.

Returns:
The font number referenced by this cid.

getLength

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

Returns:
The number of bytes this CID occupies.

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.