| [ << New for musical notation ] | [Top][Contents] | [ New for specialist notation >> ] |
| [ < Editorial annotation improvements ] | [ Up : New for musical notation ] | [ New for specialist notation > ] |
Text and font improvements
-
The syntax for customizing text and music fonts has been changed.
Instead of
\paper { #(define fonts (set-global-fonts #:music "Name of music font" #:brace "Name of music brace font" #:roman "Name of roman font" #:sans "Name of sans-serif font" #:typewriter "Name of typewriter font")) }or
\paper { #(define fonts (make-pango-font-tree "Name of roman font" "Name of sans-serif font" "Name of typewriter font" factor)) }the new syntax is
\paper { fonts.music = "Name of music font" fonts.roman = "Name of roman font" fonts.sans = "Name of sans-serif font" fonts.typewriter = "Name of typewriter font" }Unlike the previous syntax, the new syntax does not interfere with font sizes, which should be set separately using
set-global-staff-sizeorlayout-set-staff-size.There is no
bracekey in the fonts alist; braces glyphs now always default to the music font. However, it is still possible to override this by using an extra font family, as shown in this example (which requires the LilyJAZZ font):\paper { fonts.music-alt = "lilyjazz" } \layout { \context { \Score \override SystemStartBrace.font-family = #'music-alt } } \new PianoStaff << \new Staff { c' } \new Staff { c' } >> \markup \override #'(font-family . music-alt) \left-brace #20 -
The
\lookupmarkup command can now only be used for braces; for other glyphs, use the\musicglyphcommand. Instead of\lookup, it is also generally recommended to use\left-brace. -
In markup, when a music font is used (such as for dynamic markings), a
glyph absent from the music font was previously rendered in a normal
text font. This is no longer the case; a warning about the missing glyph
is output instead. In order to use a text font, use the
\textmarkup command. For example:dolceP = #(make-dynamic-script #{ \markup { \text \normal-weight dolce p } #}) { c'\dolceP }
-
Small caps are now achieved by overriding
font-varianttosmall-capsinstead of overridingfont-shapetocaps. Sincefont-shapeis primarily for achieving italics, this change makes it possible to use small caps and italics at the same time. -
The
font-seriesproperty is now more flexible and allows to specify values such assemiboldandlightinstead of onlynormalandbold.The
mediumvalue is now an intermediate value betweennormalandboldrather than an equivalent ofnormal. Accordingly, the\mediummarkup command has been renamed to\normal-weight. -
The new
font-stretchproperty allows selecting a condensed or expanded font. -
The text of a
VoltaBracketgrob, as set by\override Score.VoltaBracket.text = …or\set Score.repeatCommands = …, is no longer automatically typeset in a music font; use the\volta-numbermarkup command on those parts that need to be. For example, convert\set Score.repeatCommands = #'((volta "2, 5"))
to
\set Score.repeatCommands = #`((volta ,#{ \markup { \concat { \volta-number 2 , } \volta-number 5 } #}))
| [ << New for musical notation ] | [Top][Contents] | [ New for specialist notation >> ] |
| [ < Editorial annotation improvements ] | [ Up : New for musical notation ] | [ New for specialist notation > ] |
![[image of music]](../28/lily-2a86c9aa.png)
![[image of music]](../d0/lily-8c16f094.png)