Class TtfGlyphAccessor
Implements IGlyphAccessor for TrueType/OTF fonts.
Retrieves glyph metrics from "hmtx" and outline bounds from "glyf".
Inheritance
TtfGlyphAccessor
Assembly: DRIT.Drawing.dll
Syntax
public sealed class TtfGlyphAccessor : IGlyphAccessor
Methods
GetGlyphById(GlyphId)
Returns the Glyph for the given glyphId,
or null if the glyph is not present in the font.
Declaration
public Glyph? GetGlyphById(GlyphId glyphId)
Parameters
| Type |
Name |
Description |
| GlyphId |
glyphId |
|
Returns
GetGlyphByIndex(uint)
Returns the Glyph for the given zero-based glyph
index, or null if out of range.
Declaration
public Glyph? GetGlyphByIndex(uint index)
Parameters
| Type |
Name |
Description |
| uint |
index |
|
Returns
Implements