]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/font-metric.cc
* lily/text-item.cc (text_to_molecule): new function
[lilypond.git] / lily / font-metric.cc
index 20776e444a6e97c8fc980ca4e9c070b903f518ab..c3374a4b026b95ad5e86dad31117f724c44c5c68 100644 (file)
@@ -146,8 +146,8 @@ Font_metric::find_by_name (String) const
 
 LY_DEFINE(ly_find_glyph_by_name, "ly:find-glyph-by-name", 2 , 0, 0,
          (SCM font, SCM name),
-         "This function retrieves a Molecule for the glyph named @var{name} in
-@var{font}.  The font must be available as an AFM file.")
+         "This function retrieves a Molecule for the glyph named @var{name} in "
+"@var{font}.  The font must be available as an AFM file.")
 {
   Font_metric *fm = unsmob_metrics (font);
   SCM_ASSERT_TYPE(fm, font, SCM_ARG1, __FUNCTION__, "font-metric");
@@ -159,9 +159,9 @@ LY_DEFINE(ly_find_glyph_by_name, "ly:find-glyph-by-name", 2 , 0, 0,
 
 LY_DEFINE(ly_text_dimension,"ly:text-dimension", 2 , 0, 0,
          (SCM font, SCM text),
-         "Given the font metric in @var{font} and the string @var{text}, compute
-the extents of that text in that font. The return value is a pair of
-number-pairs.")
+         "Given the font metric in @var{font} and the string @var{text}, compute "
+"the extents of that text in that font. The return value is a pair of "
+"number-pairs.")
 {
   Box b;
   Font_metric *fm = unsmob_metrics (font);
@@ -180,7 +180,6 @@ number-pairs.")
 Molecule
 Font_metric::get_char_molecule (int code)  const
 {
-  Molecule  m ;
   SCM at = scm_list_n (ly_symbol2scm ("char"), gh_int2scm (code),
                       SCM_UNDEFINED);
   at = fontify_atom (this, at);