FB extenders use the extent of the hidden figure grob, so extenders
of different figures might stop at different positions. Ideally, the
note of the associated staff should be retrieved and used as the
position to stop the extender. However, FB can also exist standalone
without any attached staff.
So, as a workaround, this patch simply sets the text of all hidden
figures to 0, so they all have the same extent and all extenders will
stop at the same position.
--- /dev/null
+\version "2.13.41"
+
+\header {
+ texidoc = "Figured bass extender for figures of different width (e.g. with
+alteration or two-digit figures) should still stop at the same position."
+
+}
+
+\figures {
+ \set useBassFigureExtenders = ##t
+ \set figuredBassAlterationDirection = #RIGHT
+ <6 5+ 3>4.
+ <6 5+ 2>4.
+ r4
+ <12 5>4.
+ <12 5>4.
+ r4
+}
\ No newline at end of file
{
/*
UGH should connect to the bass staff, and get the note heads.
+ For now, simply set the hidden figure to a default value to
+ ensure the extenders of different figures always end at the same
+ position, e.g. in <12 5> <12 5>
*/
group.figure_item_->set_property ("transparent", SCM_BOOL_T);
+ group.figure_item_->set_property ("text", ly_string2scm ("0"));
group.continuation_line_->set_bound (RIGHT, group.figure_item_);
}