]> git.donarmstrong.com Git - lilypond.git/blob - lily/pango-select-scheme.cc
* scm/music-functions.scm (has-request-chord): don't use
[lilypond.git] / lily / pango-select-scheme.cc
1 #include "config.hh"
2
3 #if HAVE_PANGO_FT2
4 #include "pango-font.hh"
5
6 LY_DEFINE(ly_make_pango_description_string, "ly:make-pango-description-string",
7           2, 0, 0, (SCM chain, SCM size),
8           "Make a PangoFontDescription string for the property alist @var{chain} at size @var{size}.")
9 {
10   SCM_ASSERT_TYPE(scm_is_number (size), size, SCM_ARG1, __FUNCTION__, "number");
11   PangoFontDescription *pfd = properties_to_pango_description (chain, scm_to_double (size));
12   char *str = pango_font_description_to_string (pfd);
13
14   SCM scm_str = scm_makfrom0str (str);
15   g_free (str);
16   pango_font_description_free (pfd);
17   return scm_str;
18 }
19           
20 #endif