[pango/line-underline] layout: Handle new underline value
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/line-underline] layout: Handle new underline value
- Date: Mon, 19 Aug 2019 23:20:06 +0000 (UTC)
commit 2261fb902dfe4a0dc71747ab76a7d71beb43e901
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Aug 20 01:18:32 2019 +0200
layout: Handle new underline value
pango/pango-layout.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 0ac3a8cd..d5f823ff 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -4962,6 +4962,10 @@ pango_layout_run_get_extents_and_height (PangoLayoutRun *run,
case PANGO_UNDERLINE_LOW:
run_ink->height += 2 * underline_thickness;
break;
+ case PANGO_UNDERLINE_OVER_LINE:
+ run_ink->y -= underline_thickness - underline_position;
+ run_ink->height += underline_thickness - underline_position;
+ break;
case PANGO_UNDERLINE_NONE:
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]