]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/pango-font.cc
(pango_item_string_stencil): only use cmap
[lilypond.git] / lily / pango-font.cc
index a79c237013d44f4f3e71511da316d352fb9f7d35..63029b3bbcd4593b9ca55ed320669ce9f8c68e45 100644 (file)
@@ -173,7 +173,8 @@ Pango_font::pango_item_string_stencil (PangoItem const *item, string str,
 
          /* Ugh should ask FreeType about font type. */
          && (file_name.find (".ttf") != NPOS
-             || file_name.find (".TTF") != NPOS))
+             || file_name.find (".TTF") != NPOS)
+         && cmap->find (pg) != cmap->end ())
        {
          FT_ULong char_code = cmap->find (pg)->second;
          get_unicode_name (glyph_name, char_code);