2 afm.hh -- declare Adobe_font_metric
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
16 #include "dictionary.hh"
17 #include "font-metric.hh"
19 struct Adobe_font_char_metric : Character_metric {
31 Adobe_font_char_metric ();
33 Box dimensions () const;
36 struct Adobe_font_metric : Font_metric {
44 Real UnderlinePosition_;
45 Real UnderlineThickness_;
48 String EncodingScheme_;
49 Array<Adobe_font_char_metric> char_metrics_;
50 Array<int> ascii_to_metric_idx_;
51 Dictionary<int> name_to_metric_dict_;
53 Adobe_font_char_metric const &find_char (String name, bool warn=true) const;
54 Adobe_font_char_metric const &find_ascii (int ascii,bool warn) const;
57 void read_char_metrics (Data_file &input, int size);
60 Character_metric *get_char (int, bool) const;
63 Adobe_font_metric read_afm_file (String fn);