Skip to content

Copying different characters that use the same glyph results in copying the same character #5654

Closed as not planned

Description

@MDLC01

Description

Feel free to propose a better name for this issue as the current one isn't great.

When two different characters use the same glyph, copying them in the generated PDF results in copying the same character twice, instead of the two different characters.

Minimal reproduction:

#text(features: ("smcp", "c2sc"))[Test]

Copying the text "Test" actually copies "TesT".

For reference, smcp ("Small Capitals") turns lowercase letters into small capitals, while c2sc ("Small Capitals From Capitals") turns uppercase letters into small capitals.

Tested on 0.12.0 and main.

Reproduction URL

No response

Operating system

Windows

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Jan 4, 2025
  2. laurmaedje commented on Jan 6, 2025

    @laurmaedje
    Member

    Duplicate of #526. (I have renamed that issue to be more general since it's fundamentally the same problem, but the issue was previously phrased more specifically.)

  3. added
    duplicate
    on Jan 6, 2025
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

    bugduplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions