diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-07 12:55:03 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-12 09:31:56 -0400 |
commit | abd8b670b32d0939f5e950aef81fbafea94d94e4 (patch) | |
tree | d7bac42a10cddbff595a4fc3fa0d30effb4f2d68 | |
parent | 54468d5ab191f12496df34cb2239e823e77e1c1c (diff) | |
download | pango-abd8b670b32d0939f5e950aef81fbafea94d94e4.tar.gz |
layout: Use pango_shape_with_options
This will let us pass shaping options in the future.
-rw-r--r-- | pango/pango-layout.c | 7 |
1 files 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) { |