lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change text font size globally


From: Valentin Petzel
Subject: Re: Change text font size globally
Date: Tue, 27 Aug 2024 16:30:20 +0200

Am Dienstag, 27. August 2024, 08:45:17 MESZ schrieb Werner LEMBERG:
> Setting the default staff size is straightforward, but I no longer can
> remember how to set the default text size in the 2.24.x series (and I
> didn't succeed in looking it up in the `lilypond-user` archive).

You can at the very least do

\paper {
  text-font-defaults = #(acons 'font-size 6 text-font-defaults)
}

This one has the effect of effectively prefixing any markup with \fontsize #6 
(or 
whatever). It will affect a lot of stuff though.

But if I understand you, Dimitri, correctly, you want to have all standalone 
\markups increased in size, while everything else remains the same. What you 
can do is to change the procedure toplevel-text-handler, which is responsible 
for handling such markups (and if you use books or bookparts also book-text-
handler, bookpart-text-handler):

#(define toplevel-text-handler
   (lambda (mups)
     (collect-scores-for-book
      (map (lambda (mup) (markup #:abs-fontsize 20 mup)) mups))))

This will use the same action for all toplevel markups, but will add a \abs-
fontsize ... in front of the markup(list).

Cheers,
Valentin

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]