csharp
public readonly record struct GlyphKeyWhich glyph's field an atlas entry holds.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ No point size. A distance field is read at any scale, which is the whole reason for one — the same property that keeps the shaping cache size-independent. A key carrying the size would miss on every frame of a growing label and fill the atlas with the same glyph.
Fields and properties (5)
public int FontThe face, by whatever identity the caller gives its fonts.
public ushort GlyphThe glyph id.
public int SizeWhich field resolution, for a caller that keeps more than one.
public FontVariation? VariationWhere along its axes a variable font was read, or null for a static face.
public ulong PathWhich vector path, for an entry that is not a glyph at all.
Methods (1)
public GlyphKey(int Font, ushort Glyph, int Size, FontVariation? Variation = null)Which glyph's field an atlas entry holds.
Used by (8)
- EntryVixen.Ui.Text
- FontVariationTestsVixen.Ui.Text.Tests
- GlyphAtlasVixen.Ui.Text
- GlyphAtlasTestsVixen.Ui.Text.Tests
- GlyphFieldCacheVixen.Ui.Text
- GlyphFieldCacheTestsVixen.Ui.Text.Tests
- IconAtlasVixen.Ui
- IconAtlasTestsVixen.Ui.Tests