Font styles return to default when font size changed
Originally created by: PhilEHol...@googlemail.com
When default fonts are changed using make-pango-font-tree and the font size for the score is then changed using the layout-set-staff-size command, the fonts return to their default values. This behaviour is undesireable, but at the least should be documented.
Test example using a really horrible font (which may not exist on non Windows machies):
\paper {
% change fonts to non default
#(define fonts
(make-pango-font-tree "Comic Sans MS"
"Nimbus Sans"
"Luxi Mono"
(/ 20 20)))
}
\score {
<<
\new Voice = "cantus" { \clef "G_8" c8 d e f }
\new Lyrics
\lyricsto "cantus" { \lyricmode { Al -- le -- lu -- ia. } }
>>
\layout { }
}
%%%%%%%%%%%%% Bigger Score - inadvertedly get default font
\score {
<<
\new Voice = "cantus" { \clef "G_8" c8 d e f }
\new Lyrics
\lyricsto "cantus" { \lyricmode { Al -- le -- lu -- ia. } }
>>
\layout {
#(layout-set-staff-size 30)
}
}
Original URL: https://sourceforge.net/p/testlilyissues/issues/1129