]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/all-font-metrics.hh
release: 1.3.6
[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--1999 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 "lily-guile.hh"
18
19 /**
20    Interface to all .afm files living in the filesystem.
21  */
22 class All_font_metrics
23 {
24   Dictionary<Adobe_font_metric*> afm_p_dict_;
25   Dictionary<Tex_font_metric*> tfm_p_dict_;
26   Dictionary<Scaled_font_metric*> scaled_p_dict_;
27   File_path search_path_;
28 public:
29   
30   Adobe_font_metric *find_afm (String name);
31   Tex_font_metric *find_tfm (String);
32   Font_metric *find_font (String name);  
33   Scaled_font_metric* find_scaled (String , int);
34   
35   All_font_metrics (String search_path);
36   
37   SCM font_descriptions () const;
38 };
39
40
41
42
43 #endif /* ALL_FONTS_HH */
44