[pango/visible-things: 2/13] layout: Use pango_shape_with_options
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/visible-things: 2/13] layout: Use pango_shape_with_options
- Date: Sun, 7 Jul 2019 18:30:20 +0000 (UTC)
commit 390c48d1bf46c05f36ef587e4ad0fcdc87cedb0e
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 baf81bd4..c956f97c 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -3310,6 +3310,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);
@@ -3320,9 +3321,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]