Skip to content

Support FontFeature('wght', x) #67688

Closed
Closed

Description

@Solido

Use case

This feature is related to dart.ui, Flutter, Sky and google_fonts package.

Modern font support configuration of Font Weight without having to download different files.
dart.ui.FontWeight use static declarations from w100 to w900 by step of 100 so there is no way to benefits from those fine fonts.

Example : RobotoMono
https://fonts.google.com/specimen/Roboto+Mono?vfonly=true&category=Monospace

Proposal

Offer a more configurable FontWeight constructor.

Edit: Optionally this also apply to Italic with value 0 or 1

Thank you

Activity

  1. added
    a: typography
    framework
    c: proposal
    c: new feature
    on Oct 9, 2020
  2. hiashutoshsingh commented on Oct 12, 2020

    @hiashutoshsingh
  3. added
    engine
    on Oct 14, 2020
  4. added
    dependency: skia
    P3
    on Dec 2, 2020
  5. zanderso commented on Dec 2, 2020

    @zanderso
    Member

    [triage] /cc @Hixie for thoughts

  6. Hixie commented on Dec 2, 2020

    @Hixie
    Contributor

    You can already do this using fontFeature, I believe.

    If there's a standard FontFeature that represents variable boldness, I've no problem with having a way to use FontWeight to specify it as well.

  7. Solido commented on Dec 3, 2020

    @Solido
    Author
  8. Hixie commented on Dec 3, 2020

    @Hixie
  9. Solido commented on Dec 4, 2020

    @Solido
    Author
  10. Hixie commented on Dec 4, 2020

    @Hixie
  11. Solido commented on Dec 4, 2020

    @Solido
    Author
  12. Hixie commented on Dec 4, 2020

    @Hixie
  13. Solido commented on Dec 4, 2020

    @Solido
    Author
  14. Hixie commented on Dec 4, 2020

    @Hixie
  15. Solido commented on Dec 5, 2020

    @Solido
    Author
  16. Hixie commented on Dec 5, 2020

    @Hixie
  17. Hixie commented on Dec 11, 2020

    @Hixie
    Contributor

    For what it's worth, on my local system (target Linux) I can definitely see features like aalt, hist, and locl working fine. But wght doesn't seem to.

  18. changed the title [-]Support Variable Font[/-] [+]Support `FontFeature('wght', x)`[/+] on Dec 12, 2020
  19. Hixie commented on Dec 12, 2020

    @Hixie
  20. Solido commented on May 27, 2021

    @Solido
    Author

    Using #33709 as ref

  21. github-actions commented on Aug 1, 2021

    @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 Aug 1, 2021
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

    P3a: typographyc: new featurec: proposaldependency: skiaengineframework

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions