Vixen
02b45cc4
csharp
public readonly record struct FontAxis

One axis a variable font can be instanced along.

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

Fields and properties (4)

  • public string Tag

    The four-character tag — wght, wdth, slnt, opsz, ital.

  • public float Minimum

    The smallest value an instance may ask for, in user units.

  • public float Default

    What the font is when nobody asks — the instance every non-variable reader gets.

  • public float Maximum

    The largest.

Methods (3)

  • public FontAxis(string Tag, float Minimum, float Default, float Maximum)

    One axis a variable font can be instanced along.

  • public float Clamp(float value)

    Clamps a user value into the axis's own range.

  • public float Normalize(float value)

    Maps a user value onto the −1…0…+1 grid every variation table is written in.

Used by (5)

  • FontFaceVixen.Ui.Text
  • FontVariationVixen.Ui.Text
  • FontVariationTestsVixen.Ui.Text.Tests
  • VariationTablesVixen.Ui.Text
  • FontViewVixen.Editor.AssetEditors