1\version "2.21.0" 2 3\header { 4 texidoc = "Changing @code{global-staff-size} between consecutive 5 @code{\\book}s must not impair font spacing. 6 While the Pango fonts stay the same and may be re-used, 7 the internal LilyPond scaling factor will not be correct 8 any more. Not only @code{\\abs-fontsize}, but even 9 @code{\\fontsize} (in extreme cases) will be affected. 10 The following output shows a 10pt book after a standard 11 20pt book:" 12} 13\paper { indent = 0 left-margin = 10 line-width = 75 } 14\header { 15 title = \markup \abs-fontsize #10 "Changing global staff size" 16 subtitle = \markup \abs-fontsize #10 "from 20pt to 10pt in the 2nd book" 17 tagline = ##f 18} 19testMusic = { 20 c'4_\markup \abs-fontsize #10 "\abs-fontsize #10 text" 21 _\markup \abs-fontsize #10 \line { "\abs-fontsize #10 22 \dynamic" \dynamic "fff" } 23 ^\markup \fontsize #0 "\fontsize #0" 24 ^\markup \fontsize #6 "\fontsize #6" 25 d' e' f' 26} 27 28 29#(set-global-staff-size 20) 30#(define output-suffix "1") 31\book { \score { \testMusic } } 32 33% This book will be shown in the regression tests/collated files: 34#(set-global-staff-size 10) 35#(define output-suffix #f) 36\book { \score { \testMusic } } 37