The value of 0x0FFFFFFF is assigned to a PangoGlyph if the current
character has zero width, so skip the glyph lookup stage for these
characters.
Note that 0xFFFFFFFF is used for invalid characters, so the error
messages for these cases are accurate.
PangoGlyph pg = pgi->glyph;
PangoGlyphGeometry ggeo = pgi->geometry;
PangoGlyph pg = pgi->glyph;
PangoGlyphGeometry ggeo = pgi->geometry;
+ /*
+ Zero-width characters are valid Unicode characters,
+ but glyph lookups need to be skipped.
+ */
+ if (!(pg ^ PANGO_GLYPH_EMPTY))
+ continue;
+
glyph_name[0] = '\0';
if (has_glyph_names)
{
glyph_name[0] = '\0';
if (has_glyph_names)
{