- Score_element * e = unsmob_element (smob);
-
- Molecule mol;
- SCM glyph = e->get_elt_property ("text");
- if (!gh_string_p (glyph))
- return mol.create_scheme();
- String text = ly_scm2string (glyph);
+ Grob *e = unsmob_grob (smob);
+
+ Stencil mol;
+ SCM glyph = e->get_property ("text");
+ if (!scm_is_string (glyph))
+ return mol.smobbed_copy ();