|
From: | Saul Tobin |
Subject: | Re: Change text font size globally |
Date: | Sun, 1 Sep 2024 18:58:11 -0400 |
I suppose it would make sense to have an additional main section in the Docs
explaining how LilyPond (the software) works, as opposed to LilyPond (the
description language).
This could feature things like $, #, #@ and whatever, how the parser works,
how translation and engravers work and such stuff.
> > \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.
>
>
> It would be nice to have this at least as a snippet...
Don’t know ... it won‘t really matter anymore with 2.26, and it does probably
not in the most cases to what you’d want it to do (as it will affect a lot of
stuff you probably do not want it to affect).
> > #(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).
>
> This is great! Again, it would be great to have this documented
> somewhere – or having it available as a snippet.
To some extent we have this in
https://lilypond.org/doc/v2.24/Documentation/notation/file-structure.html
although that one only mentions `toplevel-score-handler`, `toplevel-book-
handler` and `toplevel-music-handler`. It does not really talk about the other
function hooks there are. And it neither goes into detail, nor does it really
make sense to explain this here.
I suppose it would make sense to have an additional main section in the Docs
explaining how LilyPond (the software) works, as opposed to LilyPond (the
description language).
This could feature things like $, #, #@ and whatever, how the parser works,
how translation and engravers work and such stuff.
Cheers,
Valentin
[Prev in Thread] | Current Thread | [Next in Thread] |