2005-06-02 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/dynamic-engraver.cc (acknowledge_grob): only center on
+ parent if we have a notehead. Fixes incorrect offsets when
+ Paper_column is very wide in the X direction.
+
* input/regression/font-family-override.ly (Module): new file.
* scm/font.scm (make-pango-font-tree): new function.
#include "side-position-interface.hh"
#include "staff-symbol-referencer.hh"
#include "warn.hh"
+#include "self-alignment-interface.hh"
/*
TODO:
finished_line_spanner_ = line_spanner_;
line_spanner_ = 0;
}
+
typeset_all ();
if (cresc_ && !cresc_->get_bound (LEFT))
{
SCM head = scm_last_pair (info.grob ()->get_property ("note-heads"));
if (scm_is_pair (head))
- script_->set_parent (unsmob_grob (scm_car (head)), X_AXIS);
+ {
+ script_->set_parent (unsmob_grob (scm_car (head)), X_AXIS);
+ script_->add_offset_callback (Self_alignment_interface::centered_on_parent_proc,
+ X_AXIS);
+
+ }
}
if (cresc_)
. (
(Y-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
(print-function . ,Text_interface::print)
- (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self
- ,Self_alignment_interface::centered_on_parent))
+ (X-offset-callbacks . (,Self_alignment_interface::aligned_on_self))
(self-alignment-X . 0)
(no-spacing-rods . #t)
(script-priority . 100)