]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/scaled-font-metric.hh
2b27d71b4ded48624180204db56391828ecf97e8
[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--2004 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   virtual Offset get_indexed_wxwy (int) const;
25   virtual int name_to_index (String) const;
26 protected:
27   virtual Box get_indexed_char (int)const;
28   virtual Box get_ascii_char (int)const;
29   Font_metric *orig_;
30   Real magnification_;
31   
32   Scaled_font_metric (Font_metric*,Real);
33 };
34 #endif