Skip to content

Better support for variable fonts #151

@dominikh

Description

@dominikh

I've noticed the following shortcomings in the handling of variable fonts / font variations:

  • Given an opentype/api/font.Font or Face, it's not possible to determine what axes the font offers. Face has a Coords field that's documented as "It is empty for non variable fonts.", but since we create faces by simply wrapping fonts in them, Coords is also empty if Face.SetVariations hasn't been called, in which case the font is using its default values. I haven't found any other way to know which axes a font supports. I believe what we want is to expose the fvar and STAT tables of a font.
  • fontscan is fully unaware of variable fonts. It doesn't use axes to fulfill requests, and footprint doesn't record which axes a font offers, either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions