Next: Fingering instructions, Up: Inside the staff
The font size of notation elements may be altered. It does not change the size of variable symbols, such as beams or slurs.
| Note: For font sizes of text, see Selecting font and font size. |
\huge
c4.-> d8---3
\large
c4.-> d8---3
\normalsize
c4.-> d8---3
\small
c4.-> d8---3
\tiny
c4.-> d8---3
\teeny
c4.-> d8---3
Internally, this sets the fontSize property. This in turn
causes the font-size property to be set in all layout
objects. The value of font-size is a number indicating the
size relative to the standard size for the current staff height.
Each step up is an increase of approximately 12% of the font size.
Six steps is exactly a factor of two. The Scheme function
magstep converts a font-size number to a scaling
factor. The font-size property can also be set directly,
so that only certain layout objects are affected.
\set fontSize = #3
c4.-> d8---3
\override NoteHead #'font-size = #-4
c4.-> d8---3
\override Script #'font-size = #2
c4.-> d8---3
\override Stem #'font-size = #-5
c4.-> d8---3
Font size changes are achieved by scaling the design size that is
closest to the desired size. The standard font size (for
font-size = #0) depends on the standard staff height.
For a 20pt staff, a 10pt font is selected.
The font-size property can only be set on layout objects
that use fonts. These are the ones supporting the
font-interface layout interface.
\teeny,
\tiny,
\small,
\normalsize,
\large,
\huge.
Snippets: Editorial annotations.
Internals Reference: font-interface.
Diese Seite ist für LilyPond-2.11.58 (Entwicklungszweig).
Fehler bitte an http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs melden.
Ihre Vorschläge für die Dokumentation sind willkommen.