X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftext-engraver.cc;h=0f222daab1bd2f1d6022c20729ed0fe437647a96;hb=d3c90f63573d53cfb191cc48f8f6ee672a5ca37a;hp=6d23595fe483c5329409ea6ce12249c556900978;hpb=bb36bac02a64770871780231ecc709cb18b20932;p=lilypond.git diff --git a/lily/text-engraver.cc b/lily/text-engraver.cc index 6d23595fe4..0f222daab1 100644 --- a/lily/text-engraver.cc +++ b/lily/text-engraver.cc @@ -6,8 +6,8 @@ (c) 1998--2000 Han-Wen Nienhuys */ -#include "dimension-cache.hh" +#include "dimension-cache.hh" #include "engraver.hh" #include "side-position-interface.hh" #include "text-item.hh" @@ -30,7 +30,7 @@ protected: virtual bool do_try_music (Music* m); virtual void do_pre_move_processing (); virtual void do_post_move_processing (); - virtual void do_process_requests (); + virtual void do_process_music (); virtual void acknowledge_element (Score_element_info); }; @@ -72,7 +72,7 @@ Text_engraver::acknowledge_element (Score_element_info i) } void -Text_engraver::do_process_requests () +Text_engraver::do_process_music () { for (int i=0; i < reqs_.size (); i++) { @@ -81,7 +81,7 @@ Text_engraver::do_process_requests () Text_item *text = new Text_item; Side_position_interface stafy (text); - SCM axisprop = get_property ("scriptHorizontal",0); + SCM axisprop = get_property ("scriptHorizontal"); if (to_boolean (axisprop)) { stafy.set_axis (X_AXIS); @@ -102,11 +102,9 @@ Text_engraver::do_process_requests () if (r->style_str_.length_i ()) text->set_elt_property ("style", ly_str02scm (r->style_str_.ch_C())); - SCM empty = get_property ("textEmptyDimension", 0); - if (to_boolean (empty)) - { - text->set_empty (X_AXIS); - } + SCM empty = get_property ("textNonEmpty"); + if (!to_boolean (empty)) + text->set_extent_callback (0, X_AXIS); announce_element (Score_element_info (text, r)); texts_.push (text); @@ -118,6 +116,7 @@ Text_engraver::do_pre_move_processing () { for (int i=0; i < texts_.size (); i++) { + side_position (texts_[i]).add_staff_support (); typeset_element (texts_[i]); } texts_.clear ();