Skip to content

Wrong text rendered when inside pattern in PDF #5428

@nivkner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpdfRelated to PDF export or PDF embedding.visualizeRelated to the visualize category, which is about drawing and illustrating

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions