Repository navigation
Add FontFlags exceptions for Libertinus fonts - #9048
Conversation
|
I'm not a huge fan of adding more hacks like this to the detection. I wanted to try to move into the opposite direction down the road. How about we extend the font exception mechanism ( |
e1d4a24 to
6f1479d
Compare
|
I didn't know exceptions existed, I agree that is much much better, thanks! |
FontFlags exceptions for Libertinus fonts
|
Nice :) |
|
Hi! By flipping a font flag of the default font, this PR also changes how Typst selects fallback fonts. Previously, fonts without For example, on my machine, the CJK/Han fallback font changes from KaiTi to LXGW WenKai GB. (I don't know how significant the impact is, so I'm just putting a small warning here for now.) Footnotes
|
Some tests changed because a different fallback font is now selected.
Sadly, some fonts likeLibertinus Mathare still not detected as serif. For instance, in testissue-2214-baseline-math, one of the "W" characters changed fromLibertinus MathtoIBM Plex Math, which is not ideal, but I don't see a good way around this.