ChHecker / unify

Format numbers, units, and ranges in Typst correctly.
MIT License
23 stars 17 forks source link

Change font used in numbers #27

Open TheHanziChauvanist opened 5 months ago

TheHanziChauvanist commented 5 months ago

Good package, but need way to change the font used so that it may jibe well with the rest of the document.

Alex-Muirhead commented 5 months ago

I agree with this, even just having it be able to adapt to the surrounding text modifiers (i.e. bold or italics) would be extremely useful.

MarkusFF commented 4 months ago

Unify seems to use the maths font. You can change it:

#show math.equation: set text(font: "Fira Math", fallback:true)

However this is not a great workaround since most of the time (for me at least) values with units live in text world, and the choice of fonts in math world is significantly restricted. As far as I can tell, currently unify will produce jarring results if the text font is too different from available maths fonts.