flutter-packages
flutter-packages copied to clipboard
Variable font weight files
Does this plugin support those "VariableFont" files you get when you download fonts from Google Fonts?
If not, it would make life so much easier so you don't have to go through all of your files and checking what font weights you use and then go and drag (possibly) a lot of files, into the google_fonts
folder.
I just added a variable font to my app and it appears to be working properly.
Edit - doesn't look like bold is being picked up.
I have been able to load the font but see no way to actually set the weight apart from the levels defined by FontWeight
. For instance, I can't set the weight to 450.
I found that just leaving the weight out of pubspec.yaml worked for me with a font ending with -VariableFont_wght.ttf
p.s. Apparently fonts from fonts.google.com lose "Font Features", perhaps to save space.
https://medium.com/flutter-community/font-features-in-flutter-320222fc171d
Any update on this? Or instructions for how to use a fontweight like 450?
Up ?