3.1.26 CenteredBarNumber

A centered bar number; see also CenteredBarNumberLineSpanner. Ordinary bar numbers are managed with BarNumber grobs.

CenteredBarNumber objects are created by the following engraver(s): Bar_number_engraver.

Standard settings:

extra-spacing-width (pair of numbers):
'(+inf.0 . -inf.0)

In the horizontal spacing problem, we pad each item by this amount (by adding the ‘car’ on the left side of the item and adding the ‘cdr’ on the right side of the item). In order to make a grob take up no horizontal space at all, set this to (+inf.0 . -inf.0).

font-size (number):

0

The font size, compared to the ‘normal’ size. 0 is style-sheet’s normal size, -1 is smaller, +1 is bigger. Each step of 1 is approximately 12% larger; 6 steps are exactly a factor 2 larger. If the context property fontSize is set, its value is added to this before the glyph is printed. Fractional values are allowed.

self-alignment-X (number):

0

Specify alignment of an object. The value -1 means left aligned, 0 centered, and 1 right-aligned in X direction. Other numerical values may also be specified - the unit is half the object width. If not a number, align on the object’s reference point.

stencil (stencil):

ly:text-interface::print

The symbol to print.

X-offset (number):

centered-spanner-interface::calc-x-offset

The horizontal amount that this object is moved relative to its X-parent.

Note that many objects have special positioning considerations, which cause any setting of X-offset to be ignored or modified, even though the object supports the self-alignment-interface.

This object supports the following interface(s): bar-number-interface, centered-bar-number-interface, centered-spanner-interface, font-interface, grob-interface, spanner-interface and text-interface.

This object is of class Spanner (characterized by spanner-interface).


LilyPond Internals Reference v2.25.22 (development-branch).