2 pango-font.hh -- declare Pango_font
4 source file of the GNU LilyPond music typesetter
6 (c) 2004--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
16 #include <pango/pango.h>
17 #include <pango/pangoft2.h>
19 #include "font-metric.hh"
21 class Pango_font : public Font_metric
23 PangoContext *context_;
24 PangoFontDescription *pango_description_;
25 PangoAttrList *attribute_list_;
28 SCM physical_font_tab_;
29 Direction text_direction_;
32 SCM physical_font_tab () const;
33 Pango_font (PangoFT2FontMap *,
34 PangoFontDescription const *,
38 string description_string () const;
39 SCM font_file_name () const;
40 void register_font_file (string, string);
41 Stencil text_stencil (string, bool tight) const;
43 Stencil pango_item_string_stencil (PangoItem const *, string, bool tight) const;
45 virtual Stencil word_stencil (string) const;
46 virtual Stencil text_stencil (string) const;
47 virtual void derived_mark () const;
50 PangoFontDescription *
51 symbols_to_pango_font_description (SCM family,
58 select_pango_font (Output_def *layout, SCM chain);
60 const int PANGO_RESOLUTION = 1200;
61 PangoFontDescription *properties_to_pango_description (SCM chain, Real text_size);
63 #endif /* HAVE_PANGO16 */
64 #endif /* PANGO_FONT_HH */