%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************



\paper {
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}





% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "/home/gub/NewGub/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.22/input/regression/book-change-global-staffsize-abs-fonts.ly"
\sourcefileline 0
\version "2.21.0"

\header {
  texidoc = "Changing @code{global-staff-size} between consecutive
             @code{\\book}s must not impair font spacing.
             While the Pango fonts stay the same and may be re-used,
             the internal LilyPond scaling factor will not be correct
             any more.  Not only @code{\\abs-fontsize}, but even
             @code{\\fontsize} (in extreme cases) will be affected.
             The following output shows a 10pt book after a standard
             20pt book:"
}
\paper { indent = 0 left-margin = 10 line-width = 75 }
\header {
  title = \markup \abs-fontsize #10 "Changing global staff size"
  subtitle = \markup \abs-fontsize #10 "from 20pt to 10pt in the 2nd book"
  tagline = ##f
}
testMusic = {
  c'4_\markup \abs-fontsize #10 "\abs-fontsize #10 text"
     _\markup \abs-fontsize #10 \line { "\abs-fontsize #10
                                        \dynamic" \dynamic "fff" }
     ^\markup \fontsize #0 "\fontsize #0"
     ^\markup \fontsize #6 "\fontsize #6"
  d' e' f'
}


#(set-global-staff-size 20)
#(define output-suffix "1")
\book { \score { \testMusic } }

% This book will be shown in the regression tests/collated files:
#(set-global-staff-size 10)
#(define output-suffix #f)
\book { \score { \testMusic } }



% ****************************************************************
% end ly snippet
% ****************************************************************
