]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/pango-font.hh
* flower/file-path.cc (find): try to open directly as well, so we
[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   SCM subfonts_;
28 public:
29   virtual SCM sub_fonts () const;
30   SCM font_file_name () const;
31   virtual void derived_mark () const;
32   void register_font_file (String, String);
33   Stencil text_stencil (String) const;
34   Pango_font (PangoFT2FontMap *,
35               int dpi, 
36               Direction leftright,
37               PangoFontDescription *);
38   ~Pango_font ();
39 };
40 PangoFontDescription* 
41 symbols_to_pango_font_description(SCM family,
42                                   SCM style,
43                                   SCM variant,
44                                   SCM weight,
45                                   SCM stretch,
46                                   Real size);
47
48 Font_metric *
49 select_pango_font (Output_def *layout, SCM chain);
50
51 #endif
52 #endif /* PANGO_FONT_HH */
53