C# Class PdfSharp.Fonts.OpenType.OpenTypeDescriptor

The OpenType font descriptor.
Inheritance: PdfSharp.Fonts.OpenType.FontDescriptor
Exibir arquivo Open project: DavidS/MigraDoc 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 algorithm.

GlyphIndexToPdfWidth ( int glyphIndex ) : int

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

GlyphIndexToWidth ( int glyphIndex ) : int

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

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

Private Methods

Method Description
DesignUnitsToPdf ( double value ) : int
OpenTypeDescriptor ( PdfSharp.Drawing.XFont font ) : System
OpenTypeDescriptor ( byte fontData ) : System
OpenTypeDescriptor ( 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 algorithm.
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

GlyphIndexToWidth() public method

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

Initialize() public method

public Initialize ( ) : void
return void

OpenTypeDescriptor() public method

public OpenTypeDescriptor ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options ) : System
font PdfSharp.Drawing.XFont
options PdfSharp.Drawing.XPdfFontOptions
return System

PdfWidthFromCharCode() public method

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

Test() public static method

public static Test ( ) : void
return void

Property Details

widths public_oe property

public int[] widths
return int[]