summaryrefslogtreecommitdiff
path: root/pango/pango-glyph-item.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-05-09 01:31:58 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-05-09 01:31:58 +0000
commit4dcd060cc51c0ff954db365f06ac117d90c0443b (patch)
tree287afc250eabf5c188b3f8c4e8b42347acb9e159 /pango/pango-glyph-item.c
parent73b46b04c724335ad73534cc69955baa2388b861 (diff)
parent5f2a5bbc95363ba25a6a7c107cd7daf260167e8b (diff)
downloadpango-1-44.tar.gz
Merge branch 'pango-1-44' into 'pango-1-44'pango-1-44
[1.44] Cherry pick various upstream fixes See merge request GNOME/pango!321
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 eb880608..a9f26aeb 100644
--- a/pango/pango-glyph-item.c
+++ b/pango/pango-glyph-item.c
@@ -751,7 +751,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 */
{