[Regression] Right-aligned text has a new gap in 1.4.4

Summary:

In 1.4.3 right-aligned text appeared all the way at the right end of the text box, in 1.4.4 there's a gap for all lines that have a "line" after them, even if it's only a newline character.

Steps to reproduce:

  • Open Inkscape
  • Create a text box (T tool) that is tall and skinnyish
  • Set alignment to right-aligned
  • Type 1, 2, 3, 4 on separate lines

What happened?

The text is correctly positioned until the enter key is hit, then it moves to the left.

What should have happened?

The text should stay all the way to the right as it did in 1.4.3

Sample attachments:

image

SVG example: right-align.svg

Version info


Inkscape 1.4.4 (dcaf3e7, 2026-05-05)

                      Compile  (Run)
    GLib version:     2.86.3
    GTK version:      3.24.51 (3.24.51)
    glibmm version:   2.66.8
    gtkmm version:    3.24.10
    libxml2 version:  2.15.1
    libxslt version:  1.1.45
    Cairo version:    1.18.4 (1.18.4)
    Pango version:    1.56.4 (1.56.4)
    HarfBuzz version: 12.2.0 (12.2.0)

    OS version:       Windows 10 22H2
Edited by Alastair McBain