Skip to content

Unexpected overhang in justified RTL text #7168

@EpicEricEE

Description

@EpicEricEE

Description

There can be some weird overhang on the right of the paragraph with right-to-left text containing other inline elements. For example

#set text(dir: rtl)
#set par(justify: true)
#set page(paper: "a9", height: auto)

Hello World#super[123] this is some text

(this should expectedly be aligned on the right edge)

0.13.1 0.14-rc1
Image Image

The same happens when the superscript is replaced by e.g. a #box(width: 9pt), as long as it's connected to the "World" without a space.

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglayoutRelated to layout, positioning, etc.regressionSomething that did work before stopped working.urgentShould be fixed before the next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions