3 afm.hh -- declare Adobe_font_metric
5 source file of the GNU LilyPond music typesetter
7 (c) 1998--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
17 #include "dictionary.hh"
18 #include "font-metric.hh"
19 #include "parse-afm.hh"
21 struct Adobe_font_metric : Font_metric
23 AFM_Font_info * font_inf_;
25 virtual int count () const;
26 virtual Box get_char (int) const;
27 AFM_CharMetricInfo const *find_char_metric (String name, bool warn=true) const;
28 AFM_CharMetricInfo const *find_ascii_metric (int, bool warn=true) const;
31 ~Adobe_font_metric ();
32 static SCM make_afm (AFM_Font_info*, unsigned);
34 unsigned int checksum_;
36 Array<int> ascii_to_metric_idx_;
37 Dictionary<int> name_to_metric_dict_;
39 virtual Molecule find_by_name (String) const;
41 Adobe_font_metric (AFM_Font_info*);
44 SCM read_afm_file (String fn);
45 Box afm_bbox_to_box (AFM_BBox bb);