]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/sustain-pedal.cc
*** empty log message ***
[lilypond.git] / lily / sustain-pedal.cc
index 30658d7bf386c6d3d4bdc2bc0d048ca0a1ba9364..fa81ff3bd811b4ffa95fc6f68a01033c59c110c5 100644 (file)
@@ -7,9 +7,8 @@
   
  */
 #include "grob.hh"
-#include "molecule.hh"
+#include "stencil.hh"
 #include "font-interface.hh"
-#include "string.hh"
 
 // update comment --hwn 
 /*
 
 */
 
+
+/*
+  FIXME. Need to use markup. 
+ */
 struct Sustain_pedal
 {
 public:
@@ -40,16 +43,16 @@ Sustain_pedal::print (SCM smob)
 {
   Grob * e = unsmob_grob (smob);
   
-  Molecule mol;
-  SCM glyph = e->get_grob_property ("text");
-  if (!gh_string_p (glyph))
+  Stencil mol;
+  SCM glyph = e->get_property ("text");
+  if (!scm_is_string (glyph))
     return mol.smobbed_copy ();
   
   String text = ly_scm2string (glyph);
 
   for (int i = 0; i < text.length (); i++)
     {
-      String idx ("pedal-");
+      String idx ("pedal.");
       if (text.cut_string (i, 3) == "Ped")
        {
          idx += "Ped";
@@ -57,7 +60,7 @@ Sustain_pedal::print (SCM smob)
        }
       else
        idx += String (&text.to_bytes ()[i], 1);
-      Molecule m = Font_interface::get_default_font (e)->find_by_name (idx);
+      Stencil m = Font_interface::get_default_font (e)->find_by_name (idx);
       if (!m.is_empty ())
        mol.add_at_edge (X_AXIS, RIGHT, m, 0, 0);
     }