csharp
public readonly record struct FontMetricsA 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 AscenderHow far above the baseline the font reaches. Positive.
public int DescenderHow far below it. Negative, as the font tables give it.
public int LineGapThe leading the designer asks for between two lines.
public int LineHeightThe 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