2 modified-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>
9 #ifndef MODIFIED_FONT_METRIC_HH
10 #define MODIFIED_FONT_METRIC_HH
12 #include "font-metric.hh"
14 /* Perhaps junk this, and move this to layout_def as interface? */
15 struct Modified_font_metric : public Font_metric
18 Box text_dimension (String);
20 static SCM make_scaled_font_metric (Font_metric *fm, Real magnification,
21 SCM font_encoding, SCM input_encoding);
22 virtual int count () const;
23 virtual Offset get_indexed_wxwy (int) const;
24 virtual Offset attachment_point (String) const;
25 virtual int name_to_index (String) const;
26 virtual unsigned index_to_charcode (int) const;
27 virtual String coding_scheme () const;
28 virtual Font_metric *original_font () const;
34 SCM coding_description_;
37 String input_encoding_;
38 friend SCM ly_font_encoding_alist (SCM);
40 Modified_font_metric (Font_metric *fm, Real magnification,
41 String font_encoding, String input_encoding);
42 virtual SCM sub_fonts () const;
43 virtual Real design_size () const;
44 virtual void derived_mark () const;
45 virtual Box get_indexed_char (int) const;
46 virtual int index_to_ascii (int) const;
47 virtual Box get_ascii_char (int) const;
48 Box tex_kludge (String) const;
51 #endif /* MODIFIED_FONT_METRIC_HH */