Fonts not updating for old Typst projects?

I’m now testing out Typst 0.15 and one particular thing I decided to look at the updated NewCM calligraphic font, see the changelog:

  • Updated New Computer Modern fonts to version 8.1.0 Link Link Link Link Link
    • This update changes the default look of calligraphic letterforms in the math font; the previous style can be restored through typ show math.equation: set text(stylistic-set: 6)

However, looking at some old projects, writing just $cal(P)$ still produces the Euler script instead of the Knuthian script. If I make a new project, the font updates appropriately.

For my Mac machine, I have to use the flag --ignore-system-fonts in order to get the updated font, so I can only assume whatever system font I have hasn’t been updated.

Is there something wrong with the Typst web app? I checked that the compiler being used is 0.15.

So it works as expected locally but not in the web app? I just tried and it works fine for me in the web app too. Can you share a web app project that shows the problem?

I tested some more and I think it actually has to do with the unequivocal-ams – Typst Universe template. A bunch of my web app projects use that template, so when I was getting that issue, it was on those projects. Commenting out those show rules fixes it.

It’s a bit weird though, because that template does use the New Computer Modern font.

Oh that’s weird: is seems to come from this line in the unequivocal-ams template:

show math.equation: set text(weight: 400)

For some reason this causes the other calligraphic style to be used. Not sure if it’s a problem with Typst or the font. Could you file an issue on GitHub?

2 Likes

I’d have to make a Github account before submitting an issue.

I’ve filed an issue here.

2 Likes

Thanks for doing that.