2 font-metric.hh -- declare Font_metric
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef FONT_METRIC_HH
11 #define FONT_METRIC_HH
14 #include "lily-guile.hh"
16 #include "lily-proto.hh"
23 virtual Box get_char (int ascii) const;
24 virtual Box text_dimension (String) const;
25 virtual Molecule find_by_name (String) const;
27 DECLARE_SMOBS(Font_metric,);
29 Font_metric (Font_metric const&); // no copy.
36 Perhaps junk this, and move iface to paper_def?
38 struct Scaled_font_metric : public Font_metric
40 virtual Box text_dimension (String) const;
41 virtual Molecule find_by_name (String) const;
42 static SCM make_scaled_font_metric (Font_metric*, Real);
45 Real magnification_f_;
47 Scaled_font_metric (Font_metric*,Real);
50 Font_metric * unsmob_metrics (SCM s);
52 #endif /* FONT_METRIC_HH */