Skip to content

Superscript citations use the wrong font #4203

@jkunimune

Description

@jkunimune

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.
imagen

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

Non-superscript: numbers match brackets and comma.
imagen

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions