Vixen
02b45cc4
csharp
public readonly record struct FontCoverage

One block of Unicode, and how much of it a face has.

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

Remarks

⚠ Coverage is reported against assigned code points rather than against the block's width. Most blocks have unassigned holes, and a font that has every character in Latin-1 Supplement would otherwise report 87 % and read as incomplete. What a person wants to know is "is anything missing", and the answer has to be able to be yes-nothing.

Fields and properties (6)

  • public string Name

    What the block is called.

  • public int First

    Its first code point.

  • public int Last

    Its last, inclusive.

  • public int Covered

    How many of them the face has a glyph for.

  • public int Assigned

    How many of them are assigned characters at all.

  • public float Fraction

    The fraction covered, in [0, 1].

Methods (1)

  • public FontCoverage(string Name, int First, int Last, int Covered, int Assigned)

    One block of Unicode, and how much of it a face has.

Used by (2)

  • FontDocumentVixen.Editor.AssetEditors
  • FontViewVixen.Editor.AssetEditors