]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/font-metric.hh
* VERSION (MY_PATCH_LEVEL): make 1.7.0
[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 Molecule get_char_molecule (int ascii) const;
28   virtual Box text_dimension (String)  const;
29   virtual Molecule find_by_name (String) const;
30   DECLARE_SMOBS (Font_metric,);
31 private:
32   Font_metric (Font_metric const&); // no copy.
33 protected:
34   virtual void derived_mark () const;
35
36   Font_metric ();
37 };
38
39 DECLARE_UNSMOB(Font_metric, metrics);
40
41 #endif /* FONT_METRIC_HH */
42