]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/scaled-font-metric.hh
9bf35f619d179448aa1f400474584da86c52ba57
[lilypond.git] / lily / include / scaled-font-metric.hh
1 /*   
2   scaled-font-metric.hh -- declare Font_metric
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1999--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef SCALED_FONT_METRIC_HH
11 #define SCALED_FONT_METRIC_HH
12
13 #include "font-metric.hh"
14
15 /*
16   Perhaps junk this, and move this to paper_def as interface? 
17  */
18 struct Scaled_font_metric : public Font_metric
19 {
20   virtual Box text_dimension (String) const;
21   virtual Molecule find_by_name (String) const;
22   static SCM make_scaled_font_metric (Font_metric*, Real);
23   virtual int count () const;
24 protected:
25   virtual   Box get_char (int)const;
26   Font_metric *orig_;
27   Real magnification_;
28   
29   Scaled_font_metric (Font_metric*,Real);
30 };
31 #endif