Skip to main content

IGlyphTypeface Interface

Unstable.

Note: This API is unstable and may change in a future release.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[UnstableAttribute]
public interface IGlyphTypeface : IDisposable
View Source
ImplementsIDisposable

Properties

FamilyNameGets the family name for the IGlyphTypeface object.
FontSimulationsGets the algorithmic style simulations applied to this glyph typeface.
GlyphCountGets the number of glyphs held by this glyph typeface.
MetricsGets the font metrics.
StretchGets the FontStretch value for the IGlyphTypeface object.
StyleGets the style for the IGlyphTypeface object.
WeightGets the designed weight of the font represented by the IGlyphTypeface object.

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

Avalonia.Media Namespace