[pango/line-underline: 53/59] layout: Handle new underline values



commit 215b1ed9b72fe5b1c55b42bf0440bf1ba045cf84
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 19 23:53:35 2019 +0200

    layout: Handle new underline values

 pango/pango-layout.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 898a6a1c..d598680e 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -4978,6 +4978,7 @@ pango_layout_run_get_extents_and_height (PangoLayoutRun *run,
            }
        }
 
+<<<<<<< HEAD
       if (properties.uline_low)
         run_ink->height += 2 * underline_thickness;
       if (properties.uline_single)
@@ -5873,15 +5874,18 @@ pango_layout_get_item_properties (PangoItem      *item,
             case PANGO_UNDERLINE_NONE:
               break;
             case PANGO_UNDERLINE_SINGLE:
+            case PANGO_UNDERLINE_SINGLE_LINE:
               properties->uline_single = TRUE;
               break;
             case PANGO_UNDERLINE_DOUBLE:
+            case PANGO_UNDERLINE_DOUBLE_LINE:
               properties->uline_double = TRUE;
               break;
             case PANGO_UNDERLINE_LOW:
               properties->uline_low = TRUE;
               break;
             case PANGO_UNDERLINE_ERROR:
+            case PANGO_UNDERLINE_ERROR_LINE:
               properties->uline_error = TRUE;
               break;
             default:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]