2 pango-font.hh -- declare Pango_font
4 source file of the GNU LilyPond music typesetter
6 (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
16 #include <pango/pango.h>
17 #include <pango/pangoft2.h>
18 #include "font-metric.hh"
20 #include "open-type-font.hh"
22 class Pango_font : public Font_metric
24 PangoContext *context_;
25 PangoFontDescription *pango_description_;
26 PangoAttrList *attribute_list_;
29 SCM physical_font_tab_;
30 Direction text_direction_;
32 SCM physical_font_tab () const;
33 Pango_font (PangoFT2FontMap *,
34 PangoFontDescription *,
38 SCM font_file_name () const;
39 void register_font_file (String, String);
40 Stencil text_stencil (String) const;
41 Stencil pango_item_string_stencil (PangoItem const *, String) const;
43 virtual void derived_mark () const;
46 PangoFontDescription *
47 symbols_to_pango_font_description (SCM family,
54 select_pango_font (Output_def *layout, SCM chain);
56 const int PANGO_RESOLUTION = 1200;
57 PangoFontDescription *properties_to_pango_description (SCM chain, Real text_size);
59 #endif /* HAVE_PANGO16 */
60 #endif /* PANGO_FONT_HH */