]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/all-font-metrics.hh
release: 1.3.33
[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--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef ALL_FONTS_HH
11 #define ALL_FONTS_HH
12
13 #include "dictionary.hh"
14 #include "file-path.hh"
15 #include "lily-proto.hh"
16 #include "font-metric.hh"
17 #include "scm-hash.hh"
18
19 /**
20    Interface to all .afm files living in the filesystem.
21  */
22 class All_font_metrics
23 {
24   Scheme_hash_table afm_p_dict_;
25   Scheme_hash_table tfm_p_dict_;
26   Scheme_hash_table scaled_p_dict_;
27   
28   File_path search_path_;
29 public:
30   
31   Adobe_font_metric *find_afm (String name);
32   Tex_font_metric *find_tfm (String);
33   Font_metric *find_font (String name);  
34   Scaled_font_metric* find_scaled (String , int);
35   
36   All_font_metrics (String search_path);
37   
38   SCM font_descriptions () const;
39 };
40
41 Font_metric * find_font (String name);
42
43 #endif /* ALL_FONTS_HH */
44