]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/all-font-metrics.hh
* lily/all-font-metrics.cc (find_font): Add "lm" to try-AFM-first
[lilypond.git] / lily / include / all-font-metrics.hh
1 /*   
2   all-fonts.hh -- declare All_font_metrics
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef ALL_FONTS_HH
11 #define ALL_FONTS_HH
12
13 #include "file-path.hh"
14 #include "font-metric.hh"
15
16 /**
17    Interface to all .afm files living in the filesystem.
18  */
19 class All_font_metrics
20 {
21   Scheme_hash_table *afm_p_dict_;
22   Scheme_hash_table *tfm_p_dict_;
23   File_path search_path_;
24
25 public:
26   All_font_metrics (String search_path);
27   ~All_font_metrics ();
28   
29   Adobe_font_metric *find_afm (String name);
30   Tex_font_metric *find_tfm (String);
31   Font_metric *find_font (String name);  
32   SCM font_descriptions () const;
33 };
34
35 extern All_font_metrics *all_fonts_global;
36
37 #endif /* ALL_FONTS_HH */
38