From: Patrick McCarty Date: Sun, 13 Dec 2009 09:52:48 +0000 (-0800) Subject: Pango: Skip glyph lookups for zero-width characters. X-Git-Tag: release/2.13.10-1~192 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=58b80fee00d63ee50d629de6ad3bc9a3f079d07a;p=lilypond.git 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). --- 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) {