X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpango-select-scheme.cc;h=6c8bcd42cdbbad8b7958ceecc690ce73c5e770b2;hb=c1aed27c7fc6f9315d2d617e39a3dddabfae491a;hp=52ead4644fb38b5e2a8c7c1c7e5c60c3a95a5c51;hpb=5d1ddaf889233f8e5c32a118f9e843e1becca2d2;p=lilypond.git diff --git a/lily/pango-select-scheme.cc b/lily/pango-select-scheme.cc index 52ead4644f..6c8bcd42cd 100644 --- a/lily/pango-select-scheme.cc +++ b/lily/pango-select-scheme.cc @@ -1,20 +1,29 @@ +/* + pango-select-scheme.cc -- implement Pango descr <-> string bindings + + source file of the GNU LilyPond music typesetter + + (c) 2005--2007 Han-Wen Nienhuys +*/ + #include "config.hh" #if HAVE_PANGO_FT2 #include "pango-font.hh" -LY_DEFINE(ly_make_pango_description_string, "ly:make-pango-description-string", - 2, 0, 0, (SCM chain, SCM size), - "Make a PangoFontDescription string for the property alist @var{chain} at size @var{size}.") +LY_DEFINE (ly_make_pango_description_string, "ly:make-pango-description-string", + 2, 0, 0, (SCM chain, SCM size), + "Make a @code{PangoFontDescription} string for the property" + " alist @var{chain} at size @var{size}.") { - SCM_ASSERT_TYPE(scm_is_number (size), size, SCM_ARG1, __FUNCTION__, "number"); + LY_ASSERT_TYPE (scm_is_number, size, 1); PangoFontDescription *pfd = properties_to_pango_description (chain, scm_to_double (size)); char *str = pango_font_description_to_string (pfd); - SCM scm_str = scm_makfrom0str (str); + SCM scm_str = scm_from_locale_string (str); g_free (str); pango_font_description_free (pfd); return scm_str; } - + #endif