Skip to content

Suboptimal error message when math text contains more than one glyph #7294

Closed

Description

@MDLC01

Description

Consider this (U+0332 is Combining Low Line):

#let arreq = symbol("↔\u{0332}")
$arreq$

This produces the following error message when using arreq:

Shaping the text "↔\u{332}" yielded more than one glyph

This error message could probably be improved (for a regular user, this doesn't explain the problem and how to solve it). Ideally, I tend to think it should be a warning, and all the glyphs should be displayed.

Reproduction URL

No response

Operating system

No response

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    diagnostics
    math
    on Nov 3, 2025
  2. laurmaedje commented on Nov 3, 2025

    @laurmaedje
    Member

    See #6929

  3. MDLC01 commented on Nov 3, 2025

    @MDLC01
    CollaboratorAuthor

    To be clear, this is only related and won't solve this issue, right?

    Also, is this issue actually a duplicate of #1524? I feel like #1524 should be closed as we support combining accents if the font supports them.

  4. mkorje commented on Nov 3, 2025

    @mkorje
    Collaborator

    To be clear, this is only related and won't solve this issue, right?

    I think it should fix this.

    Also, is this issue actually a duplicate of #1524? I feel like #1524 should be closed as we support combining accents if the font supports them.

    That uses the shaper instead of math layout to position them, and I think the latter should be the 'correct' behaviour.

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

    diagnosticsmath

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions