[pango/visible-things: 43/57] layout: Use pango_shape_with_options



commit abd8b670b32d0939f5e950aef81fbafea94d94e4
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jul 7 12:55:03 2019 -0400

    layout: Use pango_shape_with_options
    
    This will let us pass shaping options in the future.

 pango/pango-layout.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 97beccc8..6a44916c 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -3312,6 +3312,7 @@ shape_run (PangoLayoutLine *line,
 {
   PangoLayout *layout = line->layout;
   PangoGlyphString *glyphs = pango_glyph_string_new ();
+  PangoShapeFlags flags = PANGO_SHAPE_FLAGS_NONE;
 
   if (layout->text[item->offset] == '\t')
     shape_tab (line, glyphs);
@@ -3322,9 +3323,9 @@ shape_run (PangoLayoutLine *line,
                            state->properties.shape_ink_rect, state->properties.shape_logical_rect,
                            glyphs);
       else
-       pango_shape_full (layout->text + item->offset, item->length,
-                         layout->text, layout->length,
-                         &item->analysis, glyphs);
+        pango_shape_with_options (layout->text + item->offset, item->length,
+                                  layout->text, layout->length,
+                                  &item->analysis, flags, glyphs);
 
       if (state->properties.letter_spacing)
        {


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