4

Is it possible to specify the style for font awesome:? For example, \faAlignJustify has three different styles:

https://origin.fontawesome.com/icons/align-justify?style=light

https://origin.fontawesome.com/icons/align-justify?style=regular

https://origin.fontawesome.com/icons/align-justify?style=solid

0

1 Answer 1

6

The fontawesome5 package offers the possibility to specify solid or regular as an optional argument, solid is the default:

\documentclass{article}

\usepackage{fontawesome5}

\begin{document}

  \faFile

  \faFile*

  \faFile[regular]

  \faFile*[regular]

  \faFile[solid]

  \faFile*[solid]  
\end{document}

enter image description here


According to the documentation, the light style is also available in the with the pro version of the package (only compatible with xelatex or lualatex)

3
  • Thank you. It seems I was using an older fontawesome version. Actually am having some issues trying to install it in my debian.
    – Rod
    Dec 2, 2018 at 18:34
  • 1
    @Rod If you ditch the texlive version from debian and install the one available from tug.org you will the newest version of all packages
    – book
    Dec 2, 2018 at 18:35
  • I'm migrating my container to Debian sid, it seems it includes the newest versions. If I could not get it to work easily, certainly, I will use your approach and get the newest from tug.org Again, many thanks.
    – Rod
    Dec 2, 2018 at 19:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .