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"
21 virtual SCM description () const;
22 virtual Box get_char (int ascii, bool warn) const;
23 virtual ~Font_metric ();
24 virtual Box text_dimension (String) const;
26 DECLARE_SIMPLE_SMOBS(Font_metric,);
28 Font_metric (Font_metric const&); // no copy.
34 struct Scaled_font_metric : public Font_metric
36 virtual SCM description () const;
37 virtual Box text_dimension (String) const;
39 static SCM make_scaled_font_metric (Font_metric*, int);
44 Scaled_font_metric (Font_metric*,int);
47 Font_metric * unsmob_metrics (SCM s);
49 #endif /* FONT_METRIC_HH */