quarto-ext / fontawesome

Use Font Awesome icons in HTML and PDF documents.
https://quarto-ext.github.io/fontawesome/
MIT License
107 stars 10 forks source link

How to access "regular" fontawesome icons? #25

Closed pglpm closed 1 year ago

pglpm commented 1 year ago

Some fontawesome icons appear in two styles, one of which is called "regular", and takes a [regular] optional argument in LaTeX. For example, \faIcon{square} is a filled square, whereas \faIcon[regular]{square} is an empty square. In HTML the two are differentiated by the class "far" vs "fas".

I searched through the documentation of this extension, but I don't find how to access these variants. Following the example of the size specification I tried adding style="regular" or regular=true and various other combinations. I was wondering if it is possible to access these variants and how.

Thank you so much for this awesome extension, it makes a world of difference!

pglpm commented 1 year ago

I found out that the explanation is implicit at the beginning of the extension documentation: {{< fa square regular >}} gives what I was looking for. Sorry for the bother! :)