-void
-Volta_spanner::do_post_processing ()
-{
- if (bar_arr_.size())
- translate_axis (bar_arr_[0]->extent (Y_AXIS)[UP], Y_AXIS);
+ /*
+ ugh: should build from line segments.
+ */
+ SCM at = (gh_list (ly_symbol2scm ("volta"),
+ gh_double2scm (h),
+ gh_double2scm (w),
+ gh_double2scm (t),
+ gh_int2scm (no_vertical_start),
+ gh_int2scm (no_vertical_end),
+ SCM_UNDEFINED));
+
+ Box b (Interval (0, w), Interval (0, h));
+ Molecule mol (b, at);
+ SCM text = me->get_grob_property("text");
+ SCM properties = gh_list (me->mutable_property_alist_, me->immutable_property_alist_,SCM_UNDEFINED);
+ Molecule num = Text_item::text2molecule (me, text, properties);
+
+ mol.add_at_edge (X_AXIS, LEFT, num, - num.extent (X_AXIS).length ()
+ - 1.0);
+ mol.translate_axis (left, X_AXIS);
+ return mol.smobbed_copy ();