*/
#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:
{
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";
}
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);
}