Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Implement full support for variable fonts #109308

Open
@guidezpl

Description

@guidezpl

Breaking this out of a comment by @davelab6 . Flutter now support variable fonts on all platforms (web canvaskit soon), this issue is about improving support to aid in the developer experience.

So, to implement full support for variable fonts, I recommend Flutter have those 4 things:

  • a way to set variable font axes values with inheritance
  • by default, when the opsz axis exists in a font, set the value to the font size, and allow a ratio override, plus override via the above axis value sette. (Ideally the auto value is resolved to physical Points, 1/72nd of an inch, although I am recommending that ideal as a partisan and recognize there are other positions on what value to use; but the key idea is that it is set based on font size)
  • correctly render semi-opaque text
  • correctly render outline-stroked text

Originally posted by @davelab6 in #33709 (comment)

and the following comment:

  • Flutter developers and end users of flutter apps will need a easy way to know what's actually available in each VF family; that's because they will often be constructing UIs for end users to set axes values, as much as they will set axes values within the apps own code itself.

Related issues: #33709

See go/default-opsz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: typographyText rendering, possibly libtxtc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions