/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2004--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 2004--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
SCM
Ottava_bracket::print (SCM smob)
{
- Spanner *me = dynamic_cast<Spanner *> (unsmob_grob (smob));
+ Spanner *me = dynamic_cast<Spanner *> (Grob::unsmob (smob));
Interval span_points;
Grob *common = me->get_bound (LEFT)->common_refpoint (me->get_bound (RIGHT), X_AXIS);
SCM markup = me->get_property ("text");
Stencil text;
if (Text_interface::is_markup (markup))
- text = *unsmob_stencil (Text_interface::interpret_markup (layout->self_scm (),
+ text = *Stencil::unsmob (Text_interface::interpret_markup (layout->self_scm (),
properties, markup));
Drul_array<Real> shorten = robust_scm2interval (me->get_property ("shorten-pair"),
else
span_points[d] = ext[d];
+
+ span_points[d] -= d * shorten[d];
}
/*
Y_AXIS, Offset (bracket_span_points.length (), 0),
edge_height,
empty,
- flare, shorten);
+ flare, Drul_array<Real> (0, 0));
/*
- The vertical lines should not take space, for the following scenario:
-
- 8 -----+
- o |
- |
- |
-
-
- Just a small amount, yes. In tight situations, it is even
- possible to center the `8' directly below the note, dropping the
- ottava line completely...
-
+ * The vertical lines should not take space, for the following scenario:
+ *
+ * 8 -----+
+ * o |
+ * |
+ * |
+ *
+ * Just a small amount, yes. In tight situations, it is even
+ * possible to center the `8' directly below the note, dropping the
+ * ottava line completely...
*/
b = Stencil (Box (b.extent (X_AXIS),