[pango/fix-letterspacing] fixup! Improve letterspacing with marks
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/fix-letterspacing] fixup! Improve letterspacing with marks
- Date: Fri, 19 Mar 2021 12:30:37 +0000 (UTC)
commit c020014d66669b26f037e070c2b914ea72aa73e4
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Mar 19 08:30:22 2021 -0400
fixup! Improve letterspacing with marks
Handle non-spacing marks in rtl too
pango/pango-glyph-item.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/pango/pango-glyph-item.c b/pango/pango-glyph-item.c
index d1d44189..685fd9b6 100644
--- a/pango/pango-glyph-item.c
+++ b/pango/pango-glyph-item.c
@@ -763,7 +763,10 @@ pango_glyph_item_letter_space (PangoGlyphItem *glyph_item,
{
if (glyphs[iter.start_glyph].geometry.width == 0)
{
- glyphs[iter.start_glyph].geometry.x_offset -= space_right;
+ if (iter.start_glyph < iter.end_glyph) /* LTR */
+ glyphs[iter.start_glyph].geometry.x_offset -= space_right;
+ else
+ glyphs[iter.start_glyph].geometry.x_offset += space_right;
}
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]