]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/font-metric.hh
e9f5598ece3893260e1c6eff8630e2bff3936c05
[lilypond.git] / lily / include / font-metric.hh
1 /*   
2   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 FONT_METRIC_HH
11 #define FONT_METRIC_HH
12
13 #include "box.hh"
14 #include "lily-guile.hh"
15 #include "smobs.hh"
16 #include "lily-proto.hh"
17 #include "string.hh"
18
19 struct Font_metric
20 {
21 public:
22   SCM description_;
23   String path_;
24   
25   virtual int count () const;
26   virtual Box get_char (int ascii) const;
27   virtual Box text_dimension (String)  const;
28   virtual Molecule find_by_name (String) const;
29
30   DECLARE_SMOBS (Font_metric,);
31 private:
32   Font_metric (Font_metric const&); // no copy.
33 protected:
34   Font_metric ();
35 };
36
37 DECLARE_UNSMOB(Font_metric, metrics);
38
39 #endif /* FONT_METRIC_HH */
40