Skip to main content

IGlyphTypeface Methods

Methods

Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
GetGlyph(UInt32)Returns an glyph index for the specified codepoint.
GetGlyphAdvance(UInt16)Returns the glyph advance for the specified glyph.
GetGlyphAdvances(ReadOnlySpan(UInt16))Returns an array of glyph advances in design em size.
GetGlyphs(ReadOnlySpan(UInt32))Returns an array of glyph indices. Codepoints that are not represented by the font are returned as 0.
TryGetGlyph(UInt32, UInt16)Tries to get an glyph index for specified codepoint.
TryGetGlyphMetrics(UInt16, GlyphMetrics)Tries to get a glyph's metrics in em units.
TryGetTable(UInt32, Byte[])Returns the contents of the table data for the specified tag.

See Also

Reference

IGlyphTypeface Interface
Avalonia.Media Namespace