with default font, empty lines have different height to non-empty lines

Bug #1879417 reported by Andy Owen
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Pango
Fix Released
Unknown
gedit
Fix Released
Unknown
pango1.0 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

I suspect this bug is not a gedit bug, but a font bug, however I'm not sure.

Steps to reproduce:

1) Ensure font is the default "Use the system fixed width font (Ubuntu Mono 13)" is checked.

2) Create two tabs, in one tab write:

1
2
3
4

In the other tab, write:

<blank>
<blank>
<blank>
4

Switch between the tabs and observer that line 4 is in a different location in each tab.

Using a different font "Monospace Regular 12" makes the problem go away, hence I suspect the problem is the font.

Changed in gedit (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gedit (Ubuntu):
status: New → Confirmed
Revision history for this message
Harm van Bakel (hvbakel) wrote :

There is a similar issue in e.g. gnome calculator. When typing a character after starting a new instance the input box will change size. This only seems to happen with certain combinations of fonts and sizes. Wonder if it may be linked to hidpi scaling, though haven't been able to check if the same issue occurs on standard screens.

Revision history for this message
Andy Owen (the-new-andy) wrote :

Yes, I can confirm it happens for me with the gnome calculator too. Also, I'm running at 2560x1440 with scale=100% on one affected machine and 3200x1800 with scale=200% on another, which I think means that it isn't hidpi or scaling related.

Revision history for this message
Harm van Bakel (hvbakel) wrote :

The underlying issue appears to be in pango, tracked upstream at: https://gitlab.gnome.org/GNOME/pango/-/issues/421

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Harm, thanks for the upstream bug reference!

Changed in gedit (Ubuntu):
status: Confirmed → Triaged
affects: gedit (Ubuntu) → pango1.0 (Ubuntu)
Changed in gedit:
status: Unknown → Fix Released
Changed in pango:
status: Unknown → Fix Released
Changed in pango1.0 (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.