[pango/line-underline: 2/3] layout: Handle new underline values



commit 835bc997b87db2a9d6c8d4ba7740848882f70ad9
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]