DeveloperPaul123/modern-cv

FA icons are not displayed

Closed this issue ยท 7 comments

Hi! Thank you for the awesome (no pun intended) template! :)

While trying out the template in the web app via Typst universe, I noticed that the font awesome icons are currently not being rendered:

image

Hello! Thanks for using it!

This is likely due to fontawesome not being installed. Do you have those fonts installed? You only need the free version found here https://fontawesome.com/download

If you don't want to install them, you can also set the font directory for typst when you compile your *.typ files with

typst --font-path <font directory> compile resume.typ

Internally, the template is using this package to show font awesome icons https://typst.app/universe/package/fontawesome.

Hope that helps!

Just pushed some updates to the README that hopefully will make all this more clear.

Ah, thank you! I was just trying it out via the web app and expected the icons to just show up โ€“ makes sense that you need to have Font Awesome installed first :) Thank you for updating the README, that makes things a lot clearer! :)

No problem! Thanks for reporting the issue :)

I'm having the same issue. I installed the fonts and it seems that Typst recognizes them. Running typst fonts --variants and scrolling up to the Font Awesome fonts gives shows the following.

Font Awesome 5 Brands
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
Font Awesome 5 Free
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
Font Awesome 5 Free Solid
- Style: Normal, Weight: 900, Stretch: FontStretch(1000)

What am I missing?

Hmm, could it be that the template only works with Font Awesome 6 and not with version 5?

Hm maybe. You got it to work right? Could you show me your output of typst fonts --variants? I installed fontawesome through texlive-fontsextra as opposed to manual installation, maybe that only installed outdated versions.

Ps. I just reinstalled texlive-fontsextra to make sure I'm not missing any fonts I might have removed prior and now the output is the following but compilation still doesn't show the icons.

Font Awesome 5 Brands
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
Font Awesome 5 Free
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)
Font Awesome 5 Free Solid
- Style: Normal, Weight: 900, Stretch: FontStretch(1000)
- Style: Normal, Weight: 900, Stretch: FontStretch(1000)
FontAwesome
- Style: Normal, Weight: 400, Stretch: FontStretch(1000)

Update: Manual installation of Font Awesome 6 worked. Thanks :)