C# Class NOpenType.Typeface

Show file Open project: prepare/HTML-Renderer Class Usage Examples

Private Properties

Property Type Description
LoadOpenTypeLayoutInfo void
Typeface System.Collections.Generic

Public Methods

Method Description
CalculateScale ( float sizeInPointUnit, int resolution = 96 ) : float
GetAdvanceWidth ( char character ) : ushort
GetAdvanceWidthFromGlyphIndex ( int glyphIndex ) : ushort
GetGlyphByIndex ( int glyphIndex ) : Glyph
GetKernDistance ( ushort leftGlyphIndex, ushort rightGlyphIndex ) : short
Lookup ( char character ) : Glyph
Lookup ( char buffer, List output ) : void
LookupIndex ( char character ) : int

Private Methods

Method Description
LoadOpenTypeLayoutInfo ( GDEF gdefTable, GSUB gsubTable, GPOS gposTable, BASE baseTable ) : void
Typeface ( NameEntry nameEntry, Bounds bounds, ushort unitsPerEm, Glyph glyphs, CharacterMap cmaps, HorizontalMetrics horizontalMetrics, OS2Table os2Table ) : System.Collections.Generic

Method Details

CalculateScale() public method

public CalculateScale ( float sizeInPointUnit, int resolution = 96 ) : float
sizeInPointUnit float
resolution int
return float

GetAdvanceWidth() public method

public GetAdvanceWidth ( char character ) : ushort
character char
return ushort

GetAdvanceWidthFromGlyphIndex() public method

public GetAdvanceWidthFromGlyphIndex ( int glyphIndex ) : ushort
glyphIndex int
return ushort

GetGlyphByIndex() public method

public GetGlyphByIndex ( int glyphIndex ) : Glyph
glyphIndex int
return Glyph

GetKernDistance() public method

public GetKernDistance ( ushort leftGlyphIndex, ushort rightGlyphIndex ) : short
leftGlyphIndex ushort
rightGlyphIndex ushort
return short

Lookup() public method

public Lookup ( char character ) : Glyph
character char
return Glyph

Lookup() public method

public Lookup ( char buffer, List output ) : void
buffer char
output List
return void

LookupIndex() public method

public LookupIndex ( char character ) : int
character char
return int