Vixen
02b45cc4
csharp
public readonly record struct FontMetrics

A font's horizontal metrics, in design units.

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

Fields and properties (4)

  • public int Ascender

    How far above the baseline the font reaches. Positive.

  • public int Descender

    How far below it. Negative, as the font tables give it.

  • public int LineGap

    The leading the designer asks for between two lines.

  • public int LineHeight

    The distance from one baseline to the next.

Methods (1)

  • public FontMetrics(int Ascender, int Descender, int LineGap)

    A font's horizontal metrics, in design units.

Used by (6)

  • FontFaceVixen.Ui.Text
  • ShapingTestsVixen.Ui.Text.Tests
  • TextRunVixen.Ui
  • TextTestsVixen.Ui.Tests
  • FontAtlasViewVixen.Editor.AssetEditors
  • FontViewVixen.Editor.AssetEditors