]> git.donarmstrong.com Git - lilypond.git/commitdiff
Pango: Skip glyph lookups for zero-width characters.
authorPatrick McCarty <pnorcks@gmail.com>
Sun, 13 Dec 2009 09:52:48 +0000 (01:52 -0800)
committerPatrick McCarty <pnorcks@gmail.com>
Sun, 13 Dec 2009 09:56:55 +0000 (01:56 -0800)
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

index 644c21c433361d3b6a2b05b7ec0f3cd132132a7c..ead47963e29c6703850502ecc78f0df7a3f15c90 100644 (file)
@@ -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)
        {