]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/pango-font.cc
use freetype_error_string in more places.
[lilypond.git] / lily / pango-font.cc
index f91eafb9844743dd1a6ae89904e5c48ebb0f81b8..10cca5bfaf7734cec57c6f039043ee4f853a6f8f 100644 (file)
@@ -163,7 +163,9 @@ Pango_font::pango_item_string_stencil (PangoItem const *item, string str,
        {
          int errorcode = FT_Get_Glyph_Name (ftface, pg, glyph_name, GLYPH_NAME_LEN);
          if (errorcode)
-           programming_error ("FT_Get_Glyph_Name returns error");
+           programming_error (_f ("FT_Get_Glyph_Name() error: %s",
+                                  freetype_error_string (errorcode).c_str()
+                                  ));
        }
 
       SCM char_id = SCM_EOL;