From 58b80fee00d63ee50d629de6ad3bc9a3f079d07a Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Sun, 13 Dec 2009 01:52:48 -0800 Subject: [PATCH] Pango: Skip glyph lookups for zero-width characters. This silences warnings when a Unicode bidirectional character is found in an input file, or any other zero-width character (for example, U+200D zero-width joiner). --- lily/pango-font.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lily/pango-font.cc b/lily/pango-font.cc index 644c21c433..ead47963e2 100644 --- a/lily/pango-font.cc +++ b/lily/pango-font.cc @@ -175,6 +175,10 @@ Pango_font::pango_item_string_stencil (PangoItem const *item, PangoGlyph pg = pgi->glyph; PangoGlyphGeometry ggeo = pgi->geometry; + /* For zero-width characters, do not perform a glyph lookup */ + if (!ggeo.width) + continue; + glyph_name[0] = '\0'; if (has_glyph_names) { -- 2.39.5