CFFFontSubset Public class
Diagram
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph iTextSharp.text.pdf
iTextSharp.text.pdf.CFFFontSubset[[CFFFontSubset]]
iTextSharp.text.pdf.CFFFont[[CFFFont]]
end
iTextSharp.text.pdf.CFFFont --> iTextSharp.text.pdf.CFFFontSubset
Members
Methods
Internal methods
Returns | Name |
---|
int | CalcSubrOffsetSize (int Offset, int Size) |
int | CountCharset (int Offset, int NumofGlyphs) |
void | CreateNonCIDPrivate (int Font, OffsetItem Subr) |
void | CreateNonCIDSubrs (int Font, IndexBaseItem PrivateBase, OffsetItem Subrs) |
void | ReconstructPrivateDict (int Font, OffsetItem``[] fdPrivate, IndexBaseItem``[] fdPrivateBase, OffsetItem``[] fdSubrs) |
void | ReconstructPrivateSubrs (int Font, IndexBaseItem``[] fdPrivateBase, OffsetItem``[] fdSubrs) |
Protected methods
Returns | Name |
---|
byte``[] | AssembleIndex (int``[] NewOffsets, byte``[] NewObjects) |
void | BuildFDArrayUsed (int Font) |
void | BuildFDSubrsOffsets (int Font, int FD) |
void | BuildGSubrsUsed (int Font) |
void | BuildIndexHeader (int Count, int Offsize, int First) |
void | BuildNewCharString (int FontIndex) |
byte``[] | BuildNewFile (int Font) |
byte``[] | BuildNewIndex (int``[] Offsets, Dictionary <int , int``[] > Used, byte OperatorForUnusedEntries) |
byte``[] | BuildNewIndexAndCopyAllGSubrs (int``[] Offsets, byte OperatorForUnusedEntries) |
void | BuildNewLGSubrs (int Font) |
void | BuildSubrUsed (int Font, int FD, int SubrOffset, int``[] SubrsOffsets, Dictionary <int , int``[] > hSubr, List <int > lSubr) |
int | CalcBias (int Offset, int Font) |
int | CalcHints (int begin, int end, int LBias, int GBias, int``[] LSubrsOffsets) |
void | CopyHeader () |
int | CountEntireIndexRange (int indexOffset) |
void | CreateCharset (OffsetItem charsetRef, int nglyphs) |
void | CreateFDArray (OffsetItem fdarrayRef, OffsetItem privateRef, int Font) |
void | CreateFDSelect (OffsetItem fdselectRef, int nglyphs) |
void | CreateKeys (OffsetItem fdarrayRef, OffsetItem fdselectRef, OffsetItem charsetRef, OffsetItem charstringsRef) |
void | CreateNewStringIndex (int Font) |
void | EmptyStack () |
void | HandelStack () |
void | PopStack () |
void | PushStack () |
void | ReadASubr (int begin, int end, int GBias, int LBias, Dictionary <int , int``[] > hSubr, List <int > lSubr, int``[] LSubrsOffsets) |
void | ReadCommand () |
void | ReadFDArray (int Font) |
void | ReadFDSelect (int Font) |
int | StackOpp () |
Public methods
Returns | Name |
---|
byte``[] | Process (string fontName) |
Details
Inheritance
Constructors
CFFFontSubset
Source code
public CFFFontSubset(RandomAccessFileOrArray rf, Dictionary<int, int[]> GlyphsUsed)
Arguments
Methods
CountCharset
Source code
internal int CountCharset(int Offset, int NumofGlyphs)
Arguments
Type | Name | Description |
---|
int | Offset | |
int | NumofGlyphs | |
ReadFDSelect
Source code
protected virtual void ReadFDSelect(int Font)
Arguments
Type | Name | Description |
---|
int | Font | |
BuildFDArrayUsed
Source code
protected virtual void BuildFDArrayUsed(int Font)
Arguments
Type | Name | Description |
---|
int | Font | |
ReadFDArray
Source code
protected virtual void ReadFDArray(int Font)
Arguments
Type | Name | Description |
---|
int | Font | |
Process
Source code
public virtual byte Process(string fontName)
Arguments
Type | Name | Description |
---|
string | fontName | |
CalcBias
Source code
protected virtual int CalcBias(int Offset, int Font)
Arguments
Type | Name | Description |
---|
int | Offset | |
int | Font | |
BuildNewCharString
Source code
protected virtual void BuildNewCharString(int FontIndex)
Arguments
Type | Name | Description |
---|
int | FontIndex | |
BuildNewLGSubrs
Source code
protected virtual void BuildNewLGSubrs(int Font)
Arguments
Type | Name | Description |
---|
int | Font | |
BuildFDSubrsOffsets
Source code
protected virtual void BuildFDSubrsOffsets(int Font, int FD)
Arguments
Type | Name | Description |
---|
int | Font | |
int | FD | |
BuildSubrUsed
Source code
protected virtual void BuildSubrUsed(int Font, int FD, int SubrOffset, int[] SubrsOffsets, Dictionary<int, int[]> hSubr, List<int> lSubr)
Arguments
Type | Name | Description |
---|
int | Font | |
int | FD | |
int | SubrOffset | |
int``[] | SubrsOffsets | |
Dictionary <int , int``[] > | hSubr | |
List <int > | lSubr | |
BuildGSubrsUsed
Source code
protected virtual void BuildGSubrsUsed(int Font)
Arguments
Type | Name | Description |
---|
int | Font | |
ReadASubr
Source code
protected virtual void ReadASubr(int begin, int end, int GBias, int LBias, Dictionary<int, int[]> hSubr, List<int> lSubr, int[] LSubrsOffsets)
Arguments
Type | Name | Description |
---|
int | begin | |
int | end | |
int | GBias | |
int | LBias | |
Dictionary <int , int``[] > | hSubr | |
List <int > | lSubr | |
int``[] | LSubrsOffsets | |
HandelStack
Source code
protected virtual void HandelStack()
StackOpp
Source code
protected virtual int StackOpp()
EmptyStack
Source code
protected virtual void EmptyStack()
PopStack
Source code
protected virtual void PopStack()
PushStack
Source code
protected virtual void PushStack()
ReadCommand
Source code
protected virtual void ReadCommand()
CalcHints
Source code
protected virtual int CalcHints(int begin, int end, int LBias, int GBias, int[] LSubrsOffsets)
Arguments
Type | Name | Description |
---|
int | begin | |
int | end | |
int | LBias | |
int | GBias | |
int``[] | LSubrsOffsets | |
BuildNewIndex
Source code
protected virtual byte BuildNewIndex(int[] Offsets, Dictionary<int, int[]> Used, byte OperatorForUnusedEntries)
Arguments
Type | Name | Description |
---|
int``[] | Offsets | |
Dictionary <int , int``[] > | Used | |
byte | OperatorForUnusedEntries | |
BuildNewIndexAndCopyAllGSubrs
Source code
protected virtual byte BuildNewIndexAndCopyAllGSubrs(int[] Offsets, byte OperatorForUnusedEntries)
Arguments
Type | Name | Description |
---|
int``[] | Offsets | |
byte | OperatorForUnusedEntries | |
AssembleIndex
Source code
protected virtual byte AssembleIndex(int[] NewOffsets, byte[] NewObjects)
Arguments
Type | Name | Description |
---|
int``[] | NewOffsets | |
byte``[] | NewObjects | |
BuildNewFile
Source code
protected virtual byte BuildNewFile(int Font)
Arguments
Type | Name | Description |
---|
int | Font | |
Source code
protected virtual void CopyHeader()
Source code
protected virtual void BuildIndexHeader(int Count, int Offsize, int First)
Arguments
Type | Name | Description |
---|
int | Count | |
int | Offsize | |
int | First | |
CreateKeys
Source code
protected virtual void CreateKeys(OffsetItem fdarrayRef, OffsetItem fdselectRef, OffsetItem charsetRef, OffsetItem charstringsRef)
Arguments
Type | Name | Description |
---|
OffsetItem | fdarrayRef | |
OffsetItem | fdselectRef | |
OffsetItem | charsetRef | |
OffsetItem | charstringsRef | |
CreateNewStringIndex
Source code
protected virtual void CreateNewStringIndex(int Font)
Arguments
Type | Name | Description |
---|
int | Font | |
CreateFDSelect
Source code
protected virtual void CreateFDSelect(OffsetItem fdselectRef, int nglyphs)
Arguments
Type | Name | Description |
---|
OffsetItem | fdselectRef | |
int | nglyphs | |
CreateCharset
Source code
protected virtual void CreateCharset(OffsetItem charsetRef, int nglyphs)
Arguments
Type | Name | Description |
---|
OffsetItem | charsetRef | |
int | nglyphs | |
CreateFDArray
Source code
protected virtual void CreateFDArray(OffsetItem fdarrayRef, OffsetItem privateRef, int Font)
Arguments
Type | Name | Description |
---|
OffsetItem | fdarrayRef | |
OffsetItem | privateRef | |
int | Font | |
ReconstructPrivateDict
Source code
internal void ReconstructPrivateDict(int Font, OffsetItem[] fdPrivate, IndexBaseItem[] fdPrivateBase, OffsetItem[] fdSubrs)
Arguments
Type | Name | Description |
---|
int | Font | |
OffsetItem``[] | fdPrivate | |
IndexBaseItem``[] | fdPrivateBase | |
OffsetItem``[] | fdSubrs | |
ReconstructPrivateSubrs
Source code
internal void ReconstructPrivateSubrs(int Font, IndexBaseItem[] fdPrivateBase, OffsetItem[] fdSubrs)
Arguments
Type | Name | Description |
---|
int | Font | |
IndexBaseItem``[] | fdPrivateBase | |
OffsetItem``[] | fdSubrs | |
CalcSubrOffsetSize
Source code
internal int CalcSubrOffsetSize(int Offset, int Size)
Arguments
Type | Name | Description |
---|
int | Offset | |
int | Size | |
CountEntireIndexRange
Source code
protected virtual int CountEntireIndexRange(int indexOffset)
Arguments
Type | Name | Description |
---|
int | indexOffset | |
CreateNonCIDPrivate
Source code
internal void CreateNonCIDPrivate(int Font, OffsetItem Subr)
Arguments
Type | Name | Description |
---|
int | Font | |
OffsetItem | Subr | |
CreateNonCIDSubrs
Source code
internal void CreateNonCIDSubrs(int Font, IndexBaseItem PrivateBase, OffsetItem Subrs)
Arguments
Type | Name | Description |
---|
int | Font | |
IndexBaseItem | PrivateBase | |
OffsetItem | Subrs | |
Generated with ModularDoc