X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fall-font-metrics.cc;h=344d3a3e7548023c9b7a16b52f187f9fc61674d6;hb=7bec331188c446b8cc0777e1199f8a86bbb2f218;hp=2deea75cdae8d0bad956c7609b7392c3458c5f27;hpb=e344ae579fa1d81fc6c6f3049494697872fd39f9;p=lilypond.git diff --git a/lily/all-font-metrics.cc b/lily/all-font-metrics.cc index 2deea75cda..344d3a3e75 100644 --- a/lily/all-font-metrics.cc +++ b/lily/all-font-metrics.cc @@ -3,11 +3,12 @@ source file of the GNU LilyPond music typesetter - (c) 1999--2008 Han-Wen Nienhuys + (c) 1999--2009 Han-Wen Nienhuys */ #include "all-font-metrics.hh" +#include "string-convert.hh" #include "international.hh" #include "main.hh" #include "open-type-font.hh" @@ -17,13 +18,16 @@ Index_to_charcode_map const * -All_font_metrics::get_index_to_charcode_map (string filename, FT_Face face) +All_font_metrics::get_index_to_charcode_map (string filename, + int face_index, + FT_Face face) { - if (filename_charcode_maps_map_.find (filename) + string key = filename + String_convert::int_string (face_index); + if (filename_charcode_maps_map_.find (key) == filename_charcode_maps_map_.end ()) - filename_charcode_maps_map_[filename] = make_index_to_charcode_map (face); + filename_charcode_maps_map_[key] = make_index_to_charcode_map (face); - return &filename_charcode_maps_map_[filename]; + return &filename_charcode_maps_map_[key]; } @@ -76,7 +80,7 @@ All_font_metrics::find_pango_font (PangoFontDescription const *description, if (!pango_dict_->try_retrieve (key, &val)) { if (be_verbose_global) - progress_indication ("[" + string (pango_fn)); + progress_indication ("\n[" + string (pango_fn)); Pango_font *pf = new Pango_font (pango_ft2_fontmap_, description, @@ -115,7 +119,7 @@ All_font_metrics::find_otf (string name) return 0; if (be_verbose_global) - progress_indication ("[" + file_name); + progress_indication ("\n[" + file_name); val = Open_type_font::make_otf (file_name);