duskmoon314 / typst-fontawesome

A Typst library for Font Awesome icons through the desktop fonts.
https://typst.app/universe/package/fontawesome
MIT License
20 stars 0 forks source link

How to use Solid style icons in fontawesome #3

Closed xjasonlyu closed 1 year ago

xjasonlyu commented 1 year ago

In fontawesome package, how can we specify solid style icons instead of regular style?

duskmoon314 commented 1 year ago

Currently, a way to use solid style icons is by specifying the fa-set parameter. Like Font Awesome 6 Brands, solid style icons belong to Font Awesome 6 Free Solid. Thus, an example could be:

// Only one icon
#fa-chess-queen(fa-set: "Free Solid")

// All icons
FA_SET.update("Free Solid")
#fa-chess-queen()
...

A better way to achieve this is needed. But I am still trying to figure out how to implement this for now.