You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.customer: money (g3)engineflutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.
Reacted by Scott Hyndman, Konstantin Pozin, Auré-Chan, Nishant Mahajan, Leo SF, Jeremie Corpinot, Greg Lowe, Daniil Lipatkin, Alex, Davood Jafari and 114 more
Reacted by Daniil Lipatkin, Dominik Roszkowski, Mateus Felipe C. C. Pinto, Philip Lysenko, Maximiliano Churichi, Abdu Bsruki, Jaime Blasco, Ashutosh Gangwar, JZ, Mark Motliuk and 3 more
Reacted by Sina and Abhay Sood
Reacted by Maximiliano Churichi, Abdu Bsruki, Ashutosh Gangwar, JZ, Mark Motliuk, Xuan Nguyen, Yash Chauhan and Abhay Sood
Reacted by Davood Jafari, Albert Wolszon, Abdu Bsruki, Ashutosh Gangwar, JZ, Yash Chauhan, Bryson Thill, Abhay Sood, Alexandr Moroz, Xander King and 1 more
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.
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.
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.
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.
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 Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.customer: money (g3)engineflutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.
Activity
misaelriojasftf commentedon Jan 25, 2020
I need variable fonts!
orestesgaolin commentedon Apr 4, 2020
Has anyone succeed with using variable fonts in Flutter?
surajmandalcell commentedon May 17, 2020
+1
bluemix commentedon Jul 10, 2020
I hope there are updates to this.
+1
srix55 commentedon Oct 31, 2020
Need this. Especially when lots of fonts are bloating up my app size.
rebel-codeaz commentedon Nov 3, 2020
Needed. I can add it in pubspec.yaml but dunno what to do next!
+1
shyndman commentedon Nov 19, 2020
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.
Hixie commentedon Dec 11, 2020
In principle this works today using the FontFeature feature, but
wghtdoesn't seem to work.shyndman commentedon Dec 11, 2020
Ohhh, interesting. Do other axes?
Hixie commentedon Dec 12, 2020
I haven't tried anything but
wghtas 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 withaaltandcwshwith values 1, 2, and 3 (using Raleway foraaltand BioRhyme Expanded forcwsh.)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
wghtin particular, let's track that using #67688.40 remaining items
guidezpl commentedon Aug 5, 2022
Thanks @jason-simmons! Can you confirm this issue can be closed now that https://skia-review.googlesource.com/c/skia/+/563536 has been rolled in with #108821?
jason-simmons commentedon Aug 5, 2022
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.
guidezpl commentedon Aug 5, 2022
Ah gotcha, makes sense.
I'm not sure if I understand all the rolls happening but isn't flutter-team-archive/engine#35088 it?
jason-simmons commentedon Aug 5, 2022
The CanvasKit roll into Flutter Web is separate from the Skia->engine roll.
See https://github.com/flutter/engine/blob/main/lib/web_ui/README.md#rolling-canvaskit
jtmcdole commentedon Aug 18, 2022
customer:fun would also like this.
Variable font support for the Flutter Web CanvasKit renderer
Variable font support for the Flutter Web CanvasKit renderer
Variable font support for the Flutter Web CanvasKit renderer
Variable font support for the Flutter Web CanvasKit renderer
Variable font support for the Flutter Web CanvasKit renderer
zanderso commentedon Nov 10, 2022
@jason-simmons Is this done? Can we close it?
jason-simmons commentedon Nov 10, 2022
This has landed on all platforms.
github-actions commentedon Nov 24, 2022
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 -vand a minimal reproduction of the issue.