[pango/text-transform-3: 4/5] layout: Use pango_shape_item




commit af5f82f2fd23fa77616801e92fcb71553c485728
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 20 16:21:32 2021 -0400

    layout: Use pango_shape_item
    
    Use the new API, and pass our log attrs along.

 pango/pango-layout.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 8caea4d0..bf7a97e7 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -3540,10 +3540,11 @@ shape_run (PangoLayoutLine *line,
                             state->properties.shape_ink_rect, state->properties.shape_logical_rect,
                             glyphs);
       else
-        pango_shape_with_flags (layout->text + item->offset, item->length,
-                                layout->text, layout->length,
-                                &item->analysis, glyphs,
-                                shape_flags);
+        pango_shape_item (item,
+                          layout->text, layout->length,
+                          layout->log_attrs + state->start_offset,
+                          glyphs,
+                          shape_flags);
 
       if (state->properties.letter_spacing)
         {


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