Vixen
02b45cc4
csharp
public readonly record struct GlyphKey

Which 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 Font

    The face, by whatever identity the caller gives its fonts.

  • public ushort Glyph

    The glyph id.

  • public int Size

    Which field resolution, for a caller that keeps more than one.

  • public FontVariation? Variation

    Where along its axes a variable font was read, or null for a static face.

  • public ulong Path

    Which 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