]> git.donarmstrong.com Git - lilypond.git/blob - src/textdef.cc
release: 0.0.21
[lilypond.git] / src / textdef.cc
1 #include "debug.hh"
2 #include "lookup.hh"
3 #include "paper.hh"
4 #include "molecule.hh"
5 #include "textdef.hh"
6
7 Text_def::Text_def()
8 {   
9     align = 1;                  // right
10     style = "roman";
11 }
12
13 Atom
14 Text_def::create(Paperdef*p) const
15 {
16     return p->lookup_->text(style, text, -align);
17 }
18
19 void
20 Text_def::print() const
21 {
22     mtor << "Text `" << text << "\', style " <<
23         style << "align " <<align<<'\n';
24 }