]> 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)
committerDavid Kastrup <dak@gnu.org>
Fri, 19 Oct 2012 10:28:07 +0000 (12:28 +0200)
Missing glyphs are not programming errors...

lily/pango-font.cc

index 32e7a89c024677b2473fb6443364b5840d7f6236..70810b5e27ecff6b49231bd8bf1cd05d0585f7d5 100644 (file)
@@ -180,6 +180,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)
         {