How to silence "variable fonts are not currently supported" warning?

I like and use STIX Two fonts. With the latest commit, Typst throws the following warning:

warning: variable fonts are not currently supported and may render incorrectly
hint: try installing a static version of "stix two text" instead

I understand and acknowledge Typst not supporting variable fonts. However, my document renders beautifully with the regular version of STIX Two Text. Is there a way to silence this specific warning?

1 Like

Hello @Mathieu ,

In general:

For this specific case, this seems to be intended:

1 Like

im sorry :cry: (i made the warning PR). but variable fonts are very broken in typst right now; it might look fine now but it could break once you change your formatting. you should probably get the static versions, e.g. from here.

4 Likes