]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/modified-font-metric.hh
Remove tex and texstr backends (part 1).
[lilypond.git] / lily / include / modified-font-metric.hh
1 /*
2   modified-font-metric.hh -- declare Font_metric
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1999--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef MODIFIED_FONT_METRIC_HH
10 #define MODIFIED_FONT_METRIC_HH
11
12 #include "font-metric.hh"
13
14 /* Perhaps junk this, and move this to layout_def as interface? */
15 struct Modified_font_metric : public Font_metric
16 {
17 public:
18   Box text_dimension (string) const;
19   Box word_dimension (string) const;
20   Stencil text_stencil (string) const;
21
22   static SCM make_scaled_font_metric (Font_metric *fm, Real magnification);
23   size_t count () const;
24   Offset get_indexed_wxwy (size_t) const;
25   Offset attachment_point (string) const;
26   size_t name_to_index (string) const;
27   size_t index_to_charcode (size_t) const;
28   Font_metric *original_font () const;
29
30 protected:
31   Font_metric *orig_;
32   Real magnification_;
33
34   Modified_font_metric (Font_metric *fm, Real magnification);
35   SCM sub_fonts () const;
36   string font_name () const;
37   Real design_size () const;
38   void derived_mark () const;
39   Box get_indexed_char (size_t) const;
40   size_t index_to_ascii (size_t) const;
41   Box get_ascii_char (size_t) const;
42 };
43
44 #endif /* MODIFIED_FONT_METRIC_HH */