C# Class PdfSharp.Fonts.TrueType.TrueTypeDescriptor

The TrueType font desriptor.
Inheritance: FontDescriptor
Show file Open project: GNOME/pdfmod Class Usage Examples

Public Properties

Property Type Description
widths int[]

Public Methods

Method Description
CharCodeToGlyphIndex ( char value ) : int

Maps a unicode to the index of the corresponding glyph. See OpenType spec "cmap - Character To Glyph Index Mapping Table / Format 4: Segment mapping to delta values" for details about this a little bit strange looking algorythm.

GlyphIndexToPdfWidth ( int glyphIndex ) : int

Converts the width of a glyph identified by its index to PDF design units.

Initialize ( ) : void
PdfWidthFromCharCode ( char ch ) : int
Test ( ) : void
TrueTypeDescriptor ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options, PdfSharp.Drawing.XPrivateFontCollection privateFontCollection ) : System

Private Methods

Method Description
DesignUnitsToPdf ( double value ) : int
TrueTypeDescriptor ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPrivateFontCollection privateFontCollection ) : System
TrueTypeDescriptor ( string idName, byte fontData ) : System

Method Details

CharCodeToGlyphIndex() public method

Maps a unicode to the index of the corresponding glyph. See OpenType spec "cmap - Character To Glyph Index Mapping Table / Format 4: Segment mapping to delta values" for details about this a little bit strange looking algorythm.
public CharCodeToGlyphIndex ( char value ) : int
value char
return int

GlyphIndexToPdfWidth() public method

Converts the width of a glyph identified by its index to PDF design units.
public GlyphIndexToPdfWidth ( int glyphIndex ) : int
glyphIndex int
return int

Initialize() public method

public Initialize ( ) : void
return void

PdfWidthFromCharCode() public method

public PdfWidthFromCharCode ( char ch ) : int
ch char
return int

Test() public static method

public static Test ( ) : void
return void

TrueTypeDescriptor() public method

public TrueTypeDescriptor ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options, PdfSharp.Drawing.XPrivateFontCollection privateFontCollection ) : System
font PdfSharp.Drawing.XFont
options PdfSharp.Drawing.XPdfFontOptions
privateFontCollection PdfSharp.Drawing.XPrivateFontCollection
return System

Property Details

widths public property

public int[] widths
return int[]