3 #include "textspanner.hh"
8 NAME_METHOD(Text_spanner
);
11 Text_spanner::set_support(Directional_spanner
*d
)
17 Text_spanner::Text_spanner()
23 Text_spanner::do_print() const
29 Text_spanner::do_post_processing()
31 switch(spec
.align_i_
) {
33 text_off_
= support
->center() +
34 Offset(0,support
->dir_i_
* paper()->internote() * 4); // todo
43 Text_spanner::brew_molecule_p() const
45 Atom
tsym (spec
.create_atom(paper()));
46 tsym
.translate(text_off_
);
48 Molecule
*output
= new Molecule
;
54 Text_spanner::do_pre_processing()
56 right
= support
->right
;
58 assert(left
&& right
);
62 Text_spanner::height()const
64 return brew_molecule_p()->extent().y
;
68 Text_spanner::do_break_at(PCol
*c1
, PCol
*c2
)const
70 return new Text_spanner(*this); // todo