DeveloperPaul123 / modern-cv

A modern resume template written in Typst, inspired by Awesome-CV
Other
207 stars 34 forks source link

FA icons are not displayed #6

Closed JKRhb closed 5 months ago

JKRhb commented 5 months ago

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
DeveloperPaul123 commented 5 months ago

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!

DeveloperPaul123 commented 5 months ago

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

JKRhb commented 5 months ago

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! :)

DeveloperPaul123 commented 5 months ago

No problem! Thanks for reporting the issue :)

Joelius300 commented 4 months ago

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?

JKRhb commented 4 months ago

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

Joelius300 commented 4 months ago

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 :)