summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2019-11-02 01:45:49 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2019-11-02 01:45:49 +0200
commit6c58f52269a368160a7c21fe38b81a775587c3bf (patch)
treef630c4dc9acd6267aeb009fe722a0ac3e4477048 /pango/pango-layout.c
parent2099fcf52b4f33da77c9fe11210ee3c2c927c449 (diff)
downloadpango-6c58f52269a368160a7c21fe38b81a775587c3bf.tar.gz
Don’t use underline position in overlines
This matches what web browsers do. Fixes https://gitlab.gnome.org/GNOME/pango/issues/432
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c4
1 files changed, 2 insertions, 2 deletions
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)