Skip to content

Wrong text rendered when inside pattern in PDF #5428

Closed

Description

@nivkner

Description

when compiling the following typst code:

#figure(rect(fill: pattern("1234567890")))

i get a repeating 1234567890 as expected.

however, when i instead compile

#figure(rect(fill: pattern("1234567890")))
 
singing sing-along songs.

i instead get the text sing -alo. repeated.
(just wanted to highlight the character dedup in case that helps pinpoint the issue,
seems to depend on whether there are repetitions in the pattern text)

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Nov 15, 2024
  2. LaurenzV commented on Nov 15, 2024

    @LaurenzV
    Collaborator

    Seems to be a PDF-specific issue, because it works fine for PNG export.

  3. added
    pdf
    on Nov 15, 2024
  4. added
    visualize
    on Nov 16, 2024
  5. changed the title [-]wrong text rendered when inside pattern[/-] [+]Wrong text rendered when inside pattern in PDF[/+] on Nov 24, 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

    bugpdfvisualize

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions