2 scaled-font-metric.hh -- declare Font_metric
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef SCALED_FONT_METRIC_HH
11 #define SCALED_FONT_METRIC_HH
13 #include "font-metric.hh"
15 /* Perhaps junk this, and move this to paper_def as interface? */
16 struct Modified_font_metric : public Font_metric
19 Box text_dimension (String);
22 static SCM make_scaled_font_metric (SCM, Font_metric*, Real);
23 virtual int count () const;
24 virtual Offset get_indexed_wxwy (int) const;
25 virtual int name_to_index (String) const;
26 virtual String coding_scheme () const;
28 virtual Font_metric * original_font () const;
35 SCM coding_description_;
36 friend SCM ly_font_encoding_alist (SCM);
38 virtual Real design_size () const;
39 virtual void derived_mark () const;
40 virtual Box get_indexed_char (int) const;
41 virtual int index_to_ascii (int) const;
42 virtual Box get_ascii_char (int) const;
45 String coding_scheme_;
48 Modified_font_metric (String, Font_metric*, Real);
49 Box tex_kludge (String) const;
52 #endif /* SCALED_FONT_METRIC_HH */