Vixen
02b45cc4
csharp
public sealed class FontAtlasView

A page of glyphs, drawn from the face's own outlines.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ The outlines, not the atlas, and the difference is what it can be honest about. A real atlas page is a distance field on a GPU texture, which this assembly has no device to make — the same split every other preview in it makes. What the outlines can show is the thing somebody opens this panel for: whether the glyphs are the shapes they expected, at the size they chose, with the padding they set. The packing is drawn to scale, so a padding that wastes half the page is visible as half the page.

⚠ Curves are flattened here and are curves in the font. GlyphOutline keeps quadratics and cubics because a distance field wants the curve; a preview is drawn at tens of pixels, where sixteen segments a curve is beyond what anybody can see.

Fields and properties (5)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • public FontDocument? Font

    The document whose faces are drawn.

  • public int First

    The first code point drawn.

  • public int Count

    How many are drawn.

  • public int Hovered

    Which code point is under the pointer, or −1.

Methods (2)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • protected override void OnDraw(DrawContext context)

    Draws whatever this element is, beyond what a stylesheet can describe.

Used by (1)

  • FontViewVixen.Editor.AssetEditors