#Typst does not recognize some font variants

3 messages · Page 1 of 1 (latest)

idle leaf
#

Hi everyone! I’m new to this community, and I’m a Japanese person learning English (sorry if my English isn’t good). I have a question regarding an issue I’ve encountered with Typst.

I’m writing a TTRPG in Japanese, but some of the text that should be bold is displayed in normal weight. I ran the command "typst fonts --variants" (output shown below) and found that the variants of my font (Noto Serif JP) are not recognized. My computer has 8 variants of the font, but Typst only recognizes the normal weight.

Noto Serif JP
- Style: Normal, Weight: 200, Stretch: FontStretch(1000)
- Style: Normal, Weight: 200, Stretch: FontStretch(1000)

I explored the GitHub repository and found some issues, but I couldn't troubleshoot the problem just by reading them.
I’m using macOS Sonoma 14.5 and Typst 0.12.0 (installed via Homebrew). I also have a Windows PC, and this issue only occurs on MacOS.

wicked plume
#

can you copy the fonts in the project directory and use typst fonts --font-path '.' --ignore-system-fonts --variants

viscid lion
#

Is it a variable font? Typst does not properly support those (you'll only ever get the default weight)