-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Weight" parameter is not supported #6
Comments
It looks like |
After digging a little bit it looks like fontmake from Google supports generating variable font icons, which would allow to control both weight and optical size.
UFO sounds like the most reasonable candidate for an intermediate format, because it was the easiest to find information about it and it also looks like the most "open" file format. I'm not a font designer though, so if anyone wants to stop me it's the best time for that. The workflow update that I can imagine for that is:
For supported weights, I would go for values supported by Material Symbols and add one additional weight value.
For supported optical sizes, I would also start with Material's defaults and maybe add more in the future.
One consideration is that the library will probably grow quite a bit, but as it's a Flutter-specific implementation and Flutter removes unused icons it shouldn't be much of a problem. After doing all of that, it should be supported natively in Flutter. Icon(
LucideIcons.bot,
color: Colors.black,
size: 24,
// Now supports customizing `weight` and `opticalSize` 🎉
weight: 400,
opticalSize: 24,
) If everything goes smoothly, it may be implemented faster than for the official icon set in Flutter https://www.github.com/flutter/flutter/issues/102560 |
Icon
widgets allows developers to customize a bunch of properties. One of them isweight
which currently has no effect. According to the documentation:I will investigate how fonts are generated and see whether I can make it work.
The text was updated successfully, but these errors were encountered: