4 #include "pango-font.hh"
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}.")
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);
14 SCM scm_str = scm_makfrom0str (str);
16 pango_font_description_free (pfd);