typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
13 stars 0 forks source link

Warning or fix for fonts that don't support italic #356

Open feldroop opened 6 months ago

feldroop commented 6 months ago

Description

Hey, I am a bit unsure whether this is more of a compiler or web app issue and whether it is more of a bug or feature request.

I am using the web app and set my font to Cantarell. The emph function now silently does not work. It just does not change the text to italic. When I change the font back to the default, it works as expected. I assume this is because the font does not support italic.

First of all, I think it would be nice to have a warning for this. This is my first project in typst and it took a while to figure out what's going on. (this is probably more of a compiler issue)

Secondly, it would be super awesome if you could add the support for italic to all of the available fonts on the web app, to completely avoid this issue. Or at least, until someone brings their own font.

Use Case

It would improve the user experience for people who run into this issue.

Enivex commented 6 months ago

Cantrell has italic, so I think this is either a case of missing variants in the web app, or a bug.