IGlyphTypeface Interface

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
[UnstableAttribute]
public interface IGlyphTypeface : IDisposable
Implements
IDisposable

Properties

FamilyName Gets the family name for the IGlyphTypeface object.
FontSimulations Gets the algorithmic style simulations applied to this glyph typeface.
GlyphCount Gets the number of glyphs held by this glyph typeface.
Metrics Gets the font metrics.
Stretch Gets the FontStretch value for the IGlyphTypeface object.
Style Gets the style for the IGlyphTypeface object.
Weight Gets the designed weight of the font represented by the IGlyphTypeface object.

Methods

DisposePerforms 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(ReadOnlySpanUInt16) Returns an array of glyph advances in design em size.
GetGlyphs(ReadOnlySpanUInt32) Returns an array of glyph indices. Codepoints that are not represented by the font are returned as
C#
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