Skip to content

Superscript rendering broken for Helvetica Neue #8005

Closed as not planned
Closed as not planned

Description

@diktomat

Description

Superscript in text using font: Helvetica Neue, is displayed tiny and too low. I tried both Preview and Chrome's builtin pdf viewer to rule out a viewer bug. Same text in pdf files produced using other tools (Pages) looks proper.

Reproduce:

#text(font: "Helvetica Neue")[Helvetica Neue#super(typographic: true)[1]]\
#text(font: "Helvetica Neue")[Typographic off#super(typographic: false)[1]]\
#text(font: "Helvetica")[Helvetica#super[1]]\
Default#super[1]
Image

Operating system

macOS

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Mar 20, 2026
  2. MDLC01 commented on Mar 20, 2026

    @MDLC01
    Collaborator

    I suspect this is because the font file has incorrect script metrics. Could you provide a link to the font file so that I can check?

  3. added
    text
    needs-investigation
    on Mar 20, 2026
  4. diktomat commented on Mar 22, 2026

    @diktomat
    Author

    It's stock with macOS (/System/Library/Fonts/HelveticaNeue.ttc), but I uploaded it nontheless: https://www.swisstransfer.com/d/2051c563-28a4-4896-ac76-bca767fd14ea

  5. removed
    needs-investigation
    on Mar 22, 2026
  6. MDLC01 commented on Mar 22, 2026

    @MDLC01
    Collaborator

    The regular font has a x-height of 517 but a ySuperscriptYOffset of 286 and a ySuperscriptYSize of 204, so the result you get seems consistent with the incorrect metrics provided by the font file.

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

    bugtext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions