]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/afm.hh
release: 1.0.13
[lilypond.git] / lily / include / afm.hh
1 /*   
2   afm.hh -- declare Adobe_font_metric
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef AFM_HH
11 #define AFM_HH
12
13 #include "string.hh"
14 #include "box.hh"
15 #include "array.hh"
16
17 struct Adobe_font_char_metric {
18   int C_;
19   Real WX_;
20   String N_;
21   Box B_;
22   Box &bbox();
23   String &name();
24   Real &width();
25   int  &code ();
26   
27   String str () const;
28   Adobe_font_char_metric ();
29 };
30
31 struct Adobe_font_metric {
32   String  FontName_;
33   String FullName_;
34   String FamilyName_;
35   String Weight_;
36   Real ItalicAngle_;
37   bool IsFixedPitch_;
38   Box FontBBox_;
39   Real UnderlinePosition_;
40   Real UnderlineThickness_;
41   String Version_;
42   String Notice_;
43   String EncodingScheme_;
44   Array<Adobe_font_char_metric> char_metrics_;
45
46   Adobe_font_char_metric find_char (String name, bool warn=true) const;
47   String str () const;
48   Adobe_font_metric ();
49 };
50
51 Adobe_font_metric read_afm (String fn);
52
53
54
55 #endif /* AFM_HH */
56