com.lowagie.text.pdf

Class CFFFont

public class CFFFont extends Object

Nested Class Summary
protected static classCFFFont.DictNumberItem
A dictionary number on the list.
protected static classCFFFont.DictOffsetItem
an unknown offset in a dictionary for the list.
protected classCFFFont.Font
TODO Changed from private to protected by Ygal&Oren
protected static classCFFFont.IndexBaseItem
protected static classCFFFont.IndexMarkerItem
protected static classCFFFont.IndexOffsetItem
An index-offset item for the list.
protected abstract static classCFFFont.Item
List items for the linked list that builds the new CID font.
protected static classCFFFont.MarkerItem
An offset-marker item for the list.
protected abstract static classCFFFont.OffsetItem
protected static classCFFFont.RangeItem
A range item.
protected static classCFFFont.StringItem
protected static classCFFFont.SubrMarkerItem
TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments
protected static classCFFFont.UInt16Item
A SID or Card16 item.
protected static classCFFFont.UInt24Item
Card24 item.
protected static classCFFFont.UInt32Item
Card32 item.
protected static classCFFFont.UInt8Item
A Card8 item.
Field Summary
protected Object[]args
protected intarg_count
protected RandomAccessFileOrArraybuf
A random Access File or an array
protected CFFFont.Font[]fonts
protected intgsubrIndexOffset
protected int[]gsubrOffsets
protected Stringkey
protected intnameIndexOffset
protected int[]nameOffsets
intnextIndexOffset
intoffSize
static String[]operatorNames
static String[]standardStrings
protected intstringIndexOffset
protected int[]stringOffsets
protected inttopdictIndexOffset
protected int[]topdictOffsets
Constructor Summary
CFFFont(RandomAccessFileOrArray inputbuffer)
Method Summary
booleanexists(String fontName)
chargetCard16()
chargetCard8()
byte[]getCID(String fontName)
get a single CID font.
protected voidgetDictItem()
protected CFFFont.RangeItemgetEntireIndexRange(int indexOffset)
a utility that creates a range item for an entire index
int[]getIndex(int nextIndexOffset)
intgetInt()
String[]getNames()
intgetOffset(int offSize)
intgetPosition()
shortgetShort()
StringgetString(char sid)
booleanisCID(String fontName)
voidReadEncoding(int nextIndexOffset)
voidseek(int offset)

Field Detail

args

protected Object[] args

arg_count

protected int arg_count

buf

protected RandomAccessFileOrArray buf
A random Access File or an array

fonts

protected CFFFont.Font[] fonts

gsubrIndexOffset

protected int gsubrIndexOffset

gsubrOffsets

protected int[] gsubrOffsets

key

protected String key

nameIndexOffset

protected int nameIndexOffset

nameOffsets

protected int[] nameOffsets

nextIndexOffset

int nextIndexOffset

offSize

private int offSize

operatorNames

static final String[] operatorNames

standardStrings

static final String[] standardStrings

stringIndexOffset

protected int stringIndexOffset

stringOffsets

protected int[] stringOffsets

topdictIndexOffset

protected int topdictIndexOffset

topdictOffsets

protected int[] topdictOffsets

Constructor Detail

CFFFont

public CFFFont(RandomAccessFileOrArray inputbuffer)

Method Detail

exists

public boolean exists(String fontName)

getCard16

char getCard16()

getCard8

char getCard8()

getCID

public byte[] getCID(String fontName)
get a single CID font. The PDF architecture (1.4) supports 16-bit strings only with CID CFF fonts, not in Type-1 CFF fonts, so we convert the font to CID if it is in the Type-1 format. Two other tasks that we need to do are to select only a single font from the CFF package (this again is a PDF restriction) and to subset the CharStrings glyph description.

getDictItem

protected void getDictItem()

getEntireIndexRange

protected CFFFont.RangeItem getEntireIndexRange(int indexOffset)
a utility that creates a range item for an entire index

Parameters: indexOffset where the index is

Returns: a range item representing the entire index

getIndex

int[] getIndex(int nextIndexOffset)

getInt

int getInt()

getNames

public String[] getNames()

getOffset

int getOffset(int offSize)

getPosition

int getPosition()

getShort

short getShort()

getString

public String getString(char sid)

isCID

public boolean isCID(String fontName)

ReadEncoding

void ReadEncoding(int nextIndexOffset)

seek

void seek(int offset)