Package com.itextpdf.io.font
Class CFFFont
java.lang.Object
com.itextpdf.io.font.CFFFont
- Direct Known Subclasses:
CFFFontSubset
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final class
A dictionary number on the list.protected static final class
an unknown offset in a dictionary for the list.protected final class
protected static final class
protected static final class
protected static final class
An index-offset item for the list.protected static class
List items for the linked list that builds the new CID font.protected static final class
An offset-marker item for the list.protected static class
protected static final class
A range item.protected static final class
protected static final class
protected static final class
A SID or Card16 item.protected static final class
Card24 item.protected static final class
Card32 item.protected static final class
A Card8 item. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected Object[]
protected RandomAccessFileOrArray
A random Access File or an arrayprotected CFFFont.Font[]
protected int
protected int[]
protected String
protected int
protected int[]
private final int
(package private) static final String[]
(package private) RandomAccessSourceFactory
(package private) static final String[]
protected int
protected int[]
protected int
protected int[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
(package private) char
(package private) char
getCard8()
byte[]
get a single CID font.protected void
protected CFFFont.RangeItem
getEntireIndexRange
(int indexOffset) a utility that creates a range item for an entire index(package private) int[]
getIndex
(int nextIndexOffset) (package private) int
getInt()
String[]
getNames()
(package private) int
getOffset
(int offSize) (package private) int
(package private) short
getShort()
getString
(char sid) boolean
isCID()
boolean
(package private) void
ReadEncoding
(int nextIndexOffset) (package private) void
seek
(int offset)
-
Field Details
-
operatorNames
-
standardStrings
-
key
-
args
-
arg_count
protected int arg_count -
buf
A random Access File or an array -
offSize
private final int offSize -
nameIndexOffset
protected int nameIndexOffset -
topdictIndexOffset
protected int topdictIndexOffset -
stringIndexOffset
protected int stringIndexOffset -
gsubrIndexOffset
protected int gsubrIndexOffset -
nameOffsets
protected int[] nameOffsets -
topdictOffsets
protected int[] topdictOffsets -
stringOffsets
protected int[] stringOffsets -
gsubrOffsets
protected int[] gsubrOffsets -
fonts
-
rasFactory
RandomAccessSourceFactory rasFactory
-
-
Constructor Details
-
CFFFont
public CFFFont(byte[] cff)
-
-
Method Details
-
getString
-
getCard8
char getCard8() -
getCard16
char getCard16() -
getOffset
int getOffset(int offSize) -
seek
void seek(int offset) -
getShort
short getShort() -
getInt
int getInt() -
getPosition
int getPosition() -
getIndex
int[] getIndex(int nextIndexOffset) -
getDictItem
protected void getDictItem() -
getEntireIndexRange
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
-
getCID
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.- Parameters:
fontName
- name of the font- Returns:
- byte array represents the CID font
-
isCID
public boolean isCID() -
isCID
-
exists
-
getNames
-
ReadEncoding
void ReadEncoding(int nextIndexOffset)
-