2 text-item.cc -- implement Text_item
4 source file of the GNU LilyPond music typesetter
6 (c) 1998--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "text-item.hh"
12 #include "molecule.hh"
13 #include "paper-def.hh"
17 Text_item::do_brew_molecule_p () const
19 SCM style = get_elt_property ("style");
20 String st = gh_string_p (style) ? ly_scm2string (style) : "";
22 Molecule a= paper_l ()->lookup_l(0)->text (st, text_str_, paper_l ());
24 return new Molecule (a);
28 Text_item::do_print () const
30 DEBUG_OUT << "text= " << text_str_;