summaryrefslogtreecommitdiff
path: root/pango/pango-glyph-item.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-05-09 01:32:53 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-05-09 01:32:53 +0000
commit7570667d08c7bb968316a8a40c6e65cee9c4b35b (patch)
tree582ae0983ef4fb5857e652c4d4ef36d1b210709d /pango/pango-glyph-item.c
parent99f4661a4f19802ba122fae09668a0b0e1cb7ca0 (diff)
parent00e222ab045f0956c16621aaadab4c76248f9bdb (diff)
downloadpango-7570667d08c7bb968316a8a40c6e65cee9c4b35b.tar.gz
Merge branch 'pango-1-46' into 'pango-1-46'pango-1-46
[1.46] Cherry pick various upstream fixes See merge request GNOME/pango!322
Diffstat (limited to 'pango/pango-glyph-item.c')
-rw-r--r--pango/pango-glyph-item.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/pango/pango-glyph-item.c b/pango/pango-glyph-item.c
index 326ae37f..e38de730 100644
--- a/pango/pango-glyph-item.c
+++ b/pango/pango-glyph-item.c
@@ -753,7 +753,16 @@ pango_glyph_item_letter_space (PangoGlyphItem *glyph_item,
have_cluster = pango_glyph_item_iter_next_cluster (&iter))
{
if (!log_attrs[iter.start_char].is_cursor_position)
- continue;
+ {
+ if (glyphs[iter.start_glyph].geometry.width == 0)
+ {
+ 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_left;
+ }
+ continue;
+ }
if (iter.start_glyph < iter.end_glyph) /* LTR */
{