Skip to main content

GlyphDrawingOptions Class

Definition​

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

Options that influence how a single glyph is drawn, independent of variable-font axis configuration: which CPAL palette to use for color glyphs, and which bitmap strike size to prefer for bitmap-based glyphs.

public class GlyphDrawingOptions

Inheritance: object -> GlyphDrawingOptions

Implements: IEquatable<GlyphDrawingOptions>

Remarks​

All properties are optional. null means "use the font's default" (palette 0 for color glyphs; no bitmap strike preference). Concerns specific to variable fonts (axis coordinates, named instances) live on Avalonia.Media.FontVariationSettings.

Constructors​

NameDescription
GlyphDrawingOptionsNo summary available.

GlyphDrawingOptions Constructor​

public GlyphDrawingOptions()

Methods​

NameDescription
<Clone>$No summary available.
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

<Clone>$ Method​

public Avalonia.Media.GlyphDrawingOptions <Clone>$()

Returns​

Avalonia.Media.GlyphDrawingOptions

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Media.GlyphDrawingOptions other)
Parameters​

other Avalonia.Media.GlyphDrawingOptions

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
DefaultSingleton instance representing "use the font's defaults".
PaletteIndexGets the optional CPAL palette index used to resolve colors for COLR v0 / COLR v1 glyphs.
PixelSizeGets the optional pixel size used to select a bitmap strike from sbix, CBDT or EBDT tables.

Default Property​

Singleton instance representing "use the font's defaults".

public Avalonia.Media.GlyphDrawingOptions Default { get; set; }

PaletteIndex Property​

Gets the optional CPAL palette index used to resolve colors for COLR v0 / COLR v1 glyphs.

public Nullable<int> PaletteIndex { get; set; }

Remarks​

When null, the font's default palette (palette 0) is used.

Exceptions​

PixelSize Property​

Gets the optional pixel size used to select a bitmap strike from sbix, CBDT or EBDT tables.

public Nullable<int> PixelSize { get; set; }

Remarks​

When null, no bitmap strike is selected and the font's outline (or color-layer) representation is used instead.

Exceptions​