[pango/visible-things-2: 2/16] layout: Use pango_shape_with_options
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/visible-things-2: 2/16] layout: Use pango_shape_with_options
- Date: Wed, 10 Jul 2019 19:23:53 +0000 (UTC)
commit 8029dc526bb15b527d3ee1640f9cf4e86a899cc1
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 2b07954e..108226a8 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]