2 all-fonts.hh -- declare All_font_metrics
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 #include "file-path.hh"
14 #include "font-metric.hh"
18 #include <pango/pango.h>
19 #include <pango/pangoft2.h>
23 Interface to all .afm files living in the filesystem.
25 class All_font_metrics
27 Scheme_hash_table *afm_dict_;
28 Scheme_hash_table *tfm_dict_;
29 Scheme_hash_table *otf_dict_;
30 File_path search_path_;
33 PangoFT2FontMap *pango_ft2_fontmap_;
34 Scheme_hash_table *pango_dict_;
38 All_font_metrics (All_font_metrics const&);
40 All_font_metrics (String search_path);
44 Pango_font *find_pango_font (PangoFontDescription*description,
49 Adobe_font_metric *find_afm (String name);
50 Tex_font_metric *find_tfm (String);
51 Font_metric *find_font (String name);
52 Open_type_font *find_otf (String name);
53 SCM font_descriptions () const;
56 extern All_font_metrics *all_fonts_global;
58 #endif /* ALL_FONTS_HH */