X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ffont-metric-scheme.cc;h=bcb034174e6561ee1e7e840fe948bb303dffb3c6;hb=c043944a17dce34b2e539982e7e43b6cbc74b632;hp=6b7c606423662bba1ff131bbfeddaea8fb45f5c2;hpb=58bcc84c9480dae1b21bc24d8396b91fe19e0131;p=lilypond.git diff --git a/lily/font-metric-scheme.cc b/lily/font-metric-scheme.cc index 6b7c606423..bcb034174e 100644 --- a/lily/font-metric-scheme.cc +++ b/lily/font-metric-scheme.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2005 Han-Wen Nienhuys + (c) 2005--2006 Han-Wen Nienhuys */ #include "stencil.hh" @@ -117,13 +117,13 @@ LY_DEFINE (ly_font_name, "ly:font-name", Font_metric *fm = unsmob_metrics (font); SCM_ASSERT_TYPE (fm, font, SCM_ARG1, __FUNCTION__, "font-metric"); - return scm_makfrom0str (fm->font_name ().to_str0 ()); + return scm_makfrom0str (fm->font_name ().c_str ()); } LY_DEFINE (ly_font_magnification, "ly:font-magnification", 1, 0, 0, (SCM font), "Given the font metric @var{font}, return the " - "magnification, relative to the current outputscale.") + "magnification, relative to the current outputs-cale.") { Font_metric *fm = unsmob_metrics (font); SCM_ASSERT_TYPE (fm, font, SCM_ARG1, __FUNCTION__, "font-metric"); @@ -133,10 +133,10 @@ LY_DEFINE (ly_font_magnification, "ly:font-magnification", 1, 0, 0, LY_DEFINE (ly_font_design_size, "ly:font-design-size", 1, 0, 0, (SCM font), "Given the font metric @var{font}, return the " - "design size, relative to the current outputscale.") + "design size, relative to the current output-scale.") { Font_metric *fm = unsmob_metrics (font); SCM_ASSERT_TYPE (fm, font, SCM_ARG1, __FUNCTION__, "font-metric"); - return scm_make_real (fm->design_size ()); + return scm_from_double (fm->design_size ()); }