C# Class PdfSharp.Fonts.OpenType.OpenTypeDescriptor

The OpenType font descriptor.
Inheritance: PdfSharp.Fonts.OpenType.FontDescriptor
Afficher le fichier Open project: DavidS/MigraDoc Class Usage Examples

Méthodes publiques

Свойство Type Description
widths int[]

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat int

GlyphIndexToPdfWidth() public méthode

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

GlyphIndexToWidth() public méthode

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

Initialize() public méthode

public Initialize ( ) : void
Résultat void

OpenTypeDescriptor() public méthode

public OpenTypeDescriptor ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options ) : System
font PdfSharp.Drawing.XFont
options PdfSharp.Drawing.XPdfFontOptions
Résultat System

PdfWidthFromCharCode() public méthode

public PdfWidthFromCharCode ( char ch ) : int
ch char
Résultat int

Test() public static méthode

public static Test ( ) : void
Résultat void

Property Details

widths public_oe property

public int[] widths
Résultat int[]