From 6c58f52269a368160a7c21fe38b81a775587c3bf Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 2 Nov 2019 01:45:49 +0200 Subject: =?UTF-8?q?Don=E2=80=99t=20use=20underline=20position=20in=20overl?= =?UTF-8?q?ines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This matches what web browsers do. Fixes https://gitlab.gnome.org/GNOME/pango/issues/432 --- pango/pango-layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pango/pango-layout.c') diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 2c069269..df47f0f6 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -4983,8 +4983,8 @@ pango_layout_run_get_extents_and_height (PangoLayoutRun *run, if (properties.oline_single) { - run_ink->y -= underline_thickness - underline_position; - run_ink->height += underline_thickness - underline_position; + run_ink->y -= underline_thickness; + run_ink->height += underline_thickness; } if (properties.uline_low) -- cgit v1.2.1