2 all-fonts.hh -- declare All_font_metrics
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
12 #include "file-path.hh"
13 #include "font-metric.hh"
17 #include <pango/pango.h>
18 #include <pango/pangoft2.h>
23 Interface to all .afm files living in the filesystem.
25 class All_font_metrics
27 Scheme_hash_table *otf_dict_;
28 File_path search_path_;
31 PangoFT2FontMap *pango_ft2_fontmap_;
32 Scheme_hash_table *pango_dict_;
36 map<string, Index_to_charcode_map > filename_charcode_maps_map_;
38 All_font_metrics (All_font_metrics const &);
41 Index_to_charcode_map const *get_index_to_charcode_map (string filename, FT_Face face);
43 All_font_metrics (string search_path);
47 Pango_font *find_pango_font (PangoFontDescription *description,
52 Font_metric *find_font (string name);
53 Open_type_font *find_otf (string name);
54 SCM font_descriptions () const;
57 extern All_font_metrics *all_fonts_global;
58 SCM ly_reset_all_fonts ();
60 #endif /* ALL_FONTS_HH */