]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add warning message for unknown characters (2889).
authorWerner Lemberg <wl@gnu.org>
Mon, 15 Oct 2012 06:34:09 +0000 (08:34 +0200)
committerWerner Lemberg <wl@gnu.org>
Mon, 15 Oct 2012 06:34:09 +0000 (08:34 +0200)
Missing glyphs are not programming errors...

lily/pango-font.cc

index a1d3024abbd6c3e6628d505bf7f2344217dcf0c2..e4a07a9fd5ca8bd719c83f4bd084dc442998650e 100644 (file)
@@ -240,6 +240,13 @@ Pango_font::pango_item_string_stencil (PangoGlyphItem const *glyph_item) const
       if (!(pg ^ PANGO_GLYPH_EMPTY))
         continue;
 
+      if (pg & PANGO_GLYPH_UNKNOWN_FLAG)
+        {
+          warning (_f ("no glyph for character U+%0X in font `%s'",
+                       pg & ~PANGO_GLYPH_UNKNOWN_FLAG, file_name.c_str ()));
+          continue;
+        }
+
       glyph_name[0] = '\0';
       if (has_glyph_names)
         {