GlyphDrawingOptions Class
Definition
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
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
| Name | Description |
|---|---|
| GlyphDrawingOptions | No summary available. |
GlyphDrawingOptions Constructor
public GlyphDrawingOptions()
Methods
| Name | Description |
|---|---|
| <Clone>$ | No summary available. |
| Equals (2 overloads) | No summary available. |
| GetHashCode | No summary available. |
| ToString | No summary available. |
<Clone>$ Method
public Avalonia.Media.GlyphDrawingOptions <Clone>$()
Returns
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
| Name | Description |
|---|---|
| Default | Singleton instance representing "use the font's defaults". |
| PaletteIndex | Gets the optional CPAL palette index used to resolve colors for COLR v0 / COLR v1 glyphs. |
| PixelSize | Gets 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.