summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-20 16:21:32 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-20 23:16:48 -0400
commit585a90214a9207ffd6969e515f85d13f0f472771 (patch)
treebc58ce90443953e9e77dc582c6835155d438148f /pango/pango-layout.c
parent0f9c6cabaa660b2c1c9dda75af40db17ea0d993b (diff)
downloadpango-585a90214a9207ffd6969e515f85d13f0f472771.tar.gz
layout: Use pango_shape_item
Use the new API, and pass our log attrs along.
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c9
1 files 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)
{