-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Superscript citations use the wrong font #4203
Description
Description
When the citation is a superscript number, it uses a different font from the rest of the document. Either that or it gets squished vertically. This is noticeable when there is a prefix or suffix on the citation layout, because that uses the correct font and thus visibly doesn't match the number. It's subtle but quite ugly in my opinion once you notice it.
Strangely, if the prefix and suffix are moved from the layout tag to the inner text tag, the number changes to have the correct font.
Here are illustrative screenshots.
Superscript layout with prefix/suffix on outer layout: numbers are noticeably shorter than brackets and float above comma.

Prefix/suffix on individual texts: numbers match brackets and comma.

Non-superscript: numbers match brackets and comma.

Reproduction URL
No response
Operating system
Web app
Typst version
- I am using the latest version of Typst