]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/pango-font.hh
de97e0bf5799dcaa1fec466d20464705985ef11d
[lilypond.git] / lily / include / pango-font.hh
1
2 /*
3   pango-font.hh -- declare Pango_font
4
5   source file of the GNU LilyPond music typesetter
6
7   (c) 2004 Han-Wen Nienhuys <hanwen@xs4all.nl>
8
9 */
10
11 #ifndef PANGO_FONT_HH
12 #define PANGO_FONT_HH
13
14 #include "config.hh"
15
16 #ifdef HAVE_PANGO16
17
18 #include <pango/pango.h>
19 #include <pango/pangoft2.h>
20 #include "font-metric.hh"
21
22 struct Pango_font : Font_metric
23 {
24   PangoContext *context_;
25   PangoAttrList *attribute_list_;
26   Real scale_;
27 public:
28   Stencil text_stencil (String) const;
29   Pango_font (PangoFT2FontMap *,
30               int dpi, 
31               Direction leftright,
32               PangoFontDescription *);
33   ~Pango_font ();
34 };
35 PangoFontDescription* 
36 symbols_to_pango_font_description(SCM family,
37                                   SCM style,
38                                   SCM variant,
39                                   SCM weight,
40                                   SCM stretch,
41                                   SCM size);
42
43 #endif
44 #endif /* PANGO_FONT_HH */
45