Class CffFont
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
public class CffFont
- Inheritance
-
CffFont
- Derived
- Inherited Members
Constructors
CffFont(RandomAccessFileOrArray)
public CffFont(RandomAccessFileOrArray inputbuffer)
Parameters
inputbuffer
RandomAccessFileOrArray
Fields
ArgCount
protected int ArgCount
Field Value
Args
protected object[] Args
Field Value
- object[]
Buf
A random Access File or an array (contributed by orly manor)
protected RandomAccessFileOrArray Buf
Field Value
Fonts
Changed from private to protected
protected CffFont.Font[] Fonts
Field Value
- Font[]
GsubrIndexOffset
protected int GsubrIndexOffset
Field Value
GsubrOffsets
protected int[] GsubrOffsets
Field Value
- int[]
Key
protected string Key
Field Value
NameIndexOffset
protected int NameIndexOffset
Field Value
NameOffsets
protected int[] NameOffsets
Field Value
- int[]
StringIndexOffset
protected int StringIndexOffset
Field Value
StringOffsets
protected int[] StringOffsets
Field Value
- int[]
TopdictIndexOffset
protected int TopdictIndexOffset
Field Value
TopdictOffsets
protected int[] TopdictOffsets
Field Value
- int[]
Methods
Exists(string)
public bool Exists(string fontName)
Parameters
fontName
string
Returns
GetCid(string)
public byte[] GetCid(string fontName)
Parameters
fontName
string
Returns
- byte[]
GetDictItem()
protected void GetDictItem()
GetEntireIndexRange(int)
List items for the linked list that builds the new CID font.
protected virtual CffFont.RangeItem GetEntireIndexRange(int indexOffset)
Parameters
indexOffset
int
Returns
GetNames()
public string[] GetNames()
Returns
- string[]
GetString(char)
private String[] strings;
public string GetString(char sid)
Parameters
sid
char
Returns
IsCid(string)
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.
public bool IsCid(string fontName)
Parameters
fontName
string