2 font-metric.hh -- declare Font_metric
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef FONT_METRIC_HH
11 #define FONT_METRIC_HH
14 #include "lily-guile.hh"
17 struct Character_metric
19 virtual Box dimensions () const;
20 virtual ~Character_metric ();
29 virtual SCM description () const;
30 virtual Character_metric const *get_char (int ascii, bool warn) const;
31 virtual ~Font_metric ();
32 virtual Box text_dimension (String) const;
36 Font_metric (Font_metric const&); // no copy.
40 struct Scaled_font_metric : public Font_metric
45 Scaled_font_metric (Font_metric*, int);
46 virtual SCM description () const;
47 virtual Box text_dimension (String) const;
50 Font_metric * unsmob_metrics (SCM s);
53 #endif /* FONT_METRIC_HH */