[pango/line-underline: 2/3] layout: Handle new underline values
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/line-underline: 2/3] layout: Handle new underline values
- Date: Mon, 19 Aug 2019 22:14:27 +0000 (UTC)
commit 19b8bed77c22aca7cda243a4ee38289a360ae1c8
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Aug 19 23:53:35 2019 +0200
layout: Handle new underline values
pango/pango-layout.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 67db57bb..0ac3a8cd 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -4945,14 +4945,17 @@ pango_layout_run_get_extents_and_height (PangoLayoutRun *run,
switch (properties.uline)
{
case PANGO_UNDERLINE_ERROR:
+ case PANGO_UNDERLINE_ERROR_LINE:
run_ink->height = MAX (run_ink->height,
3 * underline_thickness - underline_position - run_ink->y);
break;
case PANGO_UNDERLINE_SINGLE:
+ case PANGO_UNDERLINE_SINGLE_LINE:
run_ink->height = MAX (run_ink->height,
underline_thickness - underline_position - run_ink->y);
break;
case PANGO_UNDERLINE_DOUBLE:
+ case PANGO_UNDERLINE_DOUBLE_LINE:
run_ink->height = MAX (run_ink->height,
3 * underline_thickness - underline_position - run_ink->y);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]