Skip to content

Superscript citations use the wrong font #4203

Closed as not planned
Closed as not planned

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

Activity

  1. added
    bug
    on May 21, 2024
  2. Coekjan commented on May 21, 2024

    @Coekjan
    Contributor

    This could be relative to #4006

  3. Enivex commented on May 21, 2024

    @Enivex
    Collaborator

    This could be relative to #4006

    It's indeed the exact same root cause.

    OP, you may want to disable the typographic option.

  4. added
    duplicate
    and removed
    bug
    on May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions