C# Class iTextSharp.text.pdf.TrueTypeFont

Inheritance: BaseFont
Show file Open project: mapo80/iTextSharp-Monotouch Class Usage Examples

Protected Properties

Property Type Description
GlyphWidths int[]
allNameEntries string[][]
bboxes int[][]
cff bool
cffLength int
cffOffset int
cmap10 int[]>.Dictionary
cmap31 int[]>.Dictionary
cmapExt int[]>.Dictionary
directoryOffset int
familyName string[][]
fileName string
fontName string
fullName string[][]
head FontHeader
hhea HorizontalHeader
isFixedPitch bool
italicAngle double
justNames bool
kerning IntHashtable
os_2 WindowsMetrics
rf RandomAccessFileOrArray
style string
tables int[]>.Dictionary
ttcIndex string
underlinePosition int
underlineThickness int

Private Properties

Property Type Description
CheckCff void
FillTables void
GetAllNames string[][]
GetNames string[][]
GetRawWidth int
Process void
ReadBbox void
ReadCMaps void
ReadFormat0 int[]>.Dictionary
ReadFormat12 int[]>.Dictionary
ReadFormat4 int[]>.Dictionary
ReadFormat6 int[]>.Dictionary
ReadKerning void
TrueTypeFont System
WriteFont void

Public Methods

Method Description
AddRangeUni ( int[]>.Dictionary longTag, bool includeMetrics, bool subsetp ) : void
GetFontDescriptor ( PdfIndirectReference fontStream, string subsetPrefix, PdfIndirectReference cidset ) : PdfDictionary
GetFontDescriptor ( int key, float fontSize ) : float
GetFullFont ( ) : byte[]
GetFullFontStream ( ) : PdfStream
GetKerning ( int char1, int char2 ) : int
GetMetricsTT ( int c ) : int[]
HasKernPairs ( ) : bool
ReadCffFont ( ) : byte[]
SetKerning ( int char1, int char2, int kern ) : bool

Protected Methods

Method Description
CompactRanges ( List ranges ) : int[]
GetFontBaseType ( PdfIndirectReference fontDescriptor, string subsetPrefix, int firstChar, int lastChar, byte shortTag ) : PdfDictionary
GetGlyphWidth ( int glyph ) : int
GetRawCharBBox ( int c, String name ) : int[]
GetTTCName ( string name ) : string
ReadGlyphWidths ( ) : void
ReadStandardString ( int length ) : string
ReadUnicodeString ( int length ) : string
TrueTypeFont ( ) : System

Private Methods

Method Description
CheckCff ( ) : void
FillTables ( ) : void
GetAllNames ( ) : string[][]
GetNames ( int id ) : string[][]
GetRawWidth ( int c, string name ) : int
Process ( byte ttfAfm, bool preload ) : void
ReadBbox ( ) : void
ReadCMaps ( ) : void
ReadFormat0 ( ) : int[]>.Dictionary
ReadFormat12 ( ) : int[]>.Dictionary
ReadFormat4 ( ) : int[]>.Dictionary
ReadFormat6 ( ) : int[]>.Dictionary
ReadKerning ( ) : void
TrueTypeFont ( string ttFile, string enc, bool emb, byte ttfAfm, bool justNames, bool forceRead ) : System
WriteFont ( PdfWriter writer, PdfIndirectReference piref, Object parms ) : void

Method Details

AddRangeUni() public method

public AddRangeUni ( int[]>.Dictionary longTag, bool includeMetrics, bool subsetp ) : void
longTag int[]>.Dictionary
includeMetrics bool
subsetp bool
return void

CompactRanges() protected static method

protected static CompactRanges ( List ranges ) : int[]
ranges List
return int[]

GetFontBaseType() protected method

protected GetFontBaseType ( PdfIndirectReference fontDescriptor, string subsetPrefix, int firstChar, int lastChar, byte shortTag ) : PdfDictionary
fontDescriptor PdfIndirectReference
subsetPrefix string
firstChar int
lastChar int
shortTag byte
return PdfDictionary

GetFontDescriptor() public method

public GetFontDescriptor ( PdfIndirectReference fontStream, string subsetPrefix, PdfIndirectReference cidset ) : PdfDictionary
fontStream PdfIndirectReference
subsetPrefix string
cidset PdfIndirectReference
return PdfDictionary

GetFontDescriptor() public method

public GetFontDescriptor ( int key, float fontSize ) : float
key int
fontSize float
return float

GetFullFont() public method

public GetFullFont ( ) : byte[]
return byte[]

GetFullFontStream() public method

public GetFullFontStream ( ) : PdfStream
return PdfStream

GetGlyphWidth() protected method

protected GetGlyphWidth ( int glyph ) : int
glyph int
return int

GetKerning() public method

public GetKerning ( int char1, int char2 ) : int
char1 int
char2 int
return int

GetMetricsTT() public method

public GetMetricsTT ( int c ) : int[]
c int
return int[]

GetRawCharBBox() protected method

protected GetRawCharBBox ( int c, String name ) : int[]
c int
name String
return int[]

GetTTCName() protected static method

protected static GetTTCName ( string name ) : string
name string
return string

HasKernPairs() public method

public HasKernPairs ( ) : bool
return bool

ReadCffFont() public method

public ReadCffFont ( ) : byte[]
return byte[]

ReadGlyphWidths() protected method

protected ReadGlyphWidths ( ) : void
return void

ReadStandardString() protected method

protected ReadStandardString ( int length ) : string
length int
return string

ReadUnicodeString() protected method

protected ReadUnicodeString ( int length ) : string
length int
return string

SetKerning() public method

public SetKerning ( int char1, int char2, int kern ) : bool
char1 int
char2 int
kern int
return bool

TrueTypeFont() protected method

protected TrueTypeFont ( ) : System
return System

Property Details

GlyphWidths protected property

protected int[] GlyphWidths
return int[]

allNameEntries protected property

protected string[][] allNameEntries
return string[][]

bboxes protected property

protected int[][] bboxes
return int[][]

cff protected property

protected bool cff
return bool

cffLength protected property

protected int cffLength
return int

cffOffset protected property

protected int cffOffset
return int

cmap10 protected property

protected Dictionary cmap10
return int[]>.Dictionary

cmap31 protected property

protected Dictionary cmap31
return int[]>.Dictionary

cmapExt protected property

By James for unicode Ext.B
protected Dictionary cmapExt
return int[]>.Dictionary

directoryOffset protected property

protected int directoryOffset
return int

familyName protected property

protected string[][] familyName
return string[][]

fileName protected property

protected string fileName
return string

fontName protected property

protected string fontName
return string

fullName protected property

protected string[][] fullName
return string[][]

head protected property

protected FontHeader head
return FontHeader

hhea protected property

protected HorizontalHeader hhea
return HorizontalHeader

isFixedPitch protected property

protected bool isFixedPitch
return bool

italicAngle protected property

protected double italicAngle
return double

justNames protected property

protected bool justNames
return bool

kerning protected property

protected IntHashtable kerning
return IntHashtable

os_2 protected property

protected WindowsMetrics os_2
return WindowsMetrics

rf protected property

protected RandomAccessFileOrArray rf
return RandomAccessFileOrArray

style protected property

protected string style
return string

tables protected property

protected Dictionary tables
return int[]>.Dictionary

ttcIndex protected property

protected string ttcIndex
return string

underlinePosition protected property

protected int underlinePosition
return int

underlineThickness protected property

protected int underlineThickness
return int