bigbadbob2003 / flutter_tabler_icons

The Tabler Icons (https://github.com/tabler/tabler-icons) pack available as a set of Flutter Icons.
MIT License
20 stars 9 forks source link

Icons stroke width #4

Open carlosriveroib opened 2 years ago

carlosriveroib commented 2 years ago

In tabler icons website (https://tabler-icons.io/), it's possible to choose the stroke width in the library? Seems like they have a default 1 stroke, would be really nice a way to change that. Thank you very much

agil3st commented 7 months ago

@bigbadbob2003 is there any plan to work on this feature?

bigbadbob2003 commented 7 months ago

@agil3st I've had a look but i'm not sure there is much i can do.

Flutter uses font files for icons, it does support variable fonts which would allow you set set the icon weight https://api.flutter.dev/flutter/widgets/Icon/weight.html

However from what i can see i don't believe the Tabler Icons project exports a variable font in either ttf or oft, just fonts with a static weight of 400.

If you could convince them to generate a variable font i'll happily swap to using that.

Or if someone wants to work on a converter that can take the Tabler svgs and generate the font for us in github actions i can plug it into the pipeline that builds the flutter_tabler_icons package.

lukepighetti commented 2 months ago

what about individual fonts for 0.5px, 1px, 1.5px, 2px, 2.5px, and 3px