3 #include "text-spanner.hh"
6 #include "paper-def.hh"
11 Text_spanner::set_support(Directional_spanner*d)
17 Text_spanner::Text_spanner()
22 IMPLEMENT_STATIC_NAME(Text_spanner);
25 Text_spanner::do_print() const
31 Text_spanner::do_post_processing()
33 switch(spec.align_i_) {
35 text_off_ = support->center() +
36 Offset(0,support->dir_i_ * paper()->internote() * 4); // todo
45 Text_spanner::brew_molecule_p() const
47 Atom tsym (spec.create_atom());
48 tsym.translate(text_off_);
50 Molecule*output = new Molecule;
56 Text_spanner::do_pre_processing()
58 right_col_l_ = support->right_col_l_;
59 left_col_l_ = support->left_col_l_;
60 assert(left_col_l_ && right_col_l_);
61 spec.pdef_l_ = paper();
65 Text_spanner::height()const
67 return brew_molecule_p()->extent().y;
71 Text_spanner::do_break_at(PCol*c1, PCol*c2)const
73 return new Text_spanner(*this); // todo