]> git.donarmstrong.com Git - lilypond.git/blob - lily/text-item.cc
release: 1.3.29
[lilypond.git] / lily / text-item.cc
1 /*   
2   text-item.cc -- implement Text_item
3
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #include "text-item.hh"
11 #include "debug.hh"
12 #include "molecule.hh"
13 #include "paper-def.hh"
14 #include "lookup.hh"
15
16 Molecule 
17 Text_item::do_brew_molecule () const
18 {
19   SCM style = get_elt_property ("style");
20   String st = gh_string_p (style) ?  ly_scm2string (style) : "";
21   SCM txt = get_elt_property ("text");
22   String t = gh_string_p (txt) ? ly_scm2string (txt) : "";
23   
24   return paper_l ()->lookup_l(0)->text (st, t, paper_l ());
25 }
26
27