- Real h = height + 2 * arc_height;
- Box b (Interval (0, 1.5), Interval (-h / 2, h / 2));
- Stencil mol (b, at);
- mol.align_to (X_AXIS, CENTER);
- return mol;
+Stencil
+System_start_delimiter::text (Grob *me_grob, Real h)
+{
+ (void) h;
+
+ Spanner *me = dynamic_cast<Spanner*> (me_grob);
+ SCM t = me->get_property ("text");
+ if (me->get_break_index () == 0)
+ t = me->get_property ("long-text");
+
+
+ SCM chain = Font_interface::text_font_alist_chain (me);
+
+ SCM scm_stencil = Text_interface::is_markup (t)
+ ? Text_interface::interpret_markup (me->layout ()->self_scm (), chain, t)
+ : SCM_EOL;
+
+
+ if (Stencil *p = unsmob_stencil (scm_stencil))
+ {
+ SCM align_y = me_grob->get_property ("self-alignment-Y");
+ if (scm_is_number (align_y))
+ p->align_to (Y_AXIS, robust_scm2double (align_y, 0.0));
+ return *p;
+ }
+ return Stencil();