Skip to content

using variable font in flutter #33709

Closed
Closed

Description

@DJafari

Internal: b/215481602

is possible using variable fonts in flutter ?

Activity

  1. added
    c: new feature
    on Oct 8, 2019
  2. added
    a: typography
    framework
    c: proposal
    customer: crowd
    on Jan 16, 2020
  3. misaelriojasftf commented on Jan 25, 2020

    @misaelriojasftf

    I need variable fonts!

  4. orestesgaolin commented on Apr 4, 2020

    @orestesgaolin
    Contributor

    Has anyone succeed with using variable fonts in Flutter?

  5. surajmandalcell commented on May 17, 2020

    @surajmandalcell

    +1

  6. bluemix commented on Jul 10, 2020

    @bluemix

    I hope there are updates to this.
    +1

  7. srix55 commented on Oct 31, 2020

    @srix55

    Need this. Especially when lots of fonts are bloating up my app size.

  8. rebel-codeaz commented on Nov 3, 2020

    @rebel-codeaz

    Needed. I can add it in pubspec.yaml but dunno what to do next!
    +1

  9. shyndman commented on Nov 19, 2020

    @shyndman
    Contributor

    I'd love to see this too.

    One option for those who want to use a few variations of a variable font — you can create static "instantiations" at specific weights using fonttools, then use those.

    fonttools varLib.mutator ./YourVariableFont-VF.ttf wght=140 wdth=85
  10. Hixie commented on Dec 11, 2020

    @Hixie
    Contributor

    In principle this works today using the FontFeature feature, but wght doesn't seem to work.

  11. shyndman commented on Dec 11, 2020

    @shyndman
    Contributor

    Ohhh, interesting. Do other axes?

  12. Hixie commented on Dec 12, 2020

    @Hixie
    Contributor

    I haven't tried anything but wght as far as the newfangled "variable fonts" axes go. In general lots of OpenType font features work, for example, I'm looking at code here that works with aalt and cwsh with values 1, 2, and 3 (using Raleway for aalt and BioRhyme Expanded for cwsh.)

    If you have any test cases it would be great to attach them here, especially if there are open source fonts that you know support a particular axis (i.e. you've tested that specific .ttf file with other tools and they work), but when you try it with FontFeature in Flutter it doesn't work.

    For wght in particular, let's track that using #67688.

  13. 40 remaining items

  14. guidezpl commented on Aug 5, 2022

    @guidezpl
    Member
  15. jason-simmons commented on Aug 5, 2022

    @jason-simmons
    Contributor

    No - there will need to be a roll of CanvasKit into the engine that includes the Skia change, followed by a PR in the engine that integrates the web UI libraries with the CanvasKit API.

    I've built the engine PR - it's just waiting on the CanvasKit roll.

  16. guidezpl commented on Aug 5, 2022

    @guidezpl
    Member

    Ah gotcha, makes sense.

    it's just waiting on the CanvasKit roll.

    I'm not sure if I understand all the rolls happening but isn't flutter-team-archive/engine#35088 it?

  17. jason-simmons commented on Aug 5, 2022

    @jason-simmons
    Contributor
  18. jtmcdole commented on Aug 18, 2022

    @jtmcdole
    Member

    customer:fun would also like this.

  19. zanderso commented on Nov 10, 2022

    @zanderso
    Member

    @jason-simmons Is this done? Can we close it?

  20. jason-simmons commented on Nov 10, 2022

    @jason-simmons
    Contributor

    This has landed on all platforms.

  21. github-actions commented on Nov 24, 2022

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  22. locked as resolved and limited conversation to collaborators on Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2a: typographyc: new featurec: proposalcustomer: crowdcustomer: money (g3)engineframework

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions