Hi Gabriel,
Am 05.07.26 um 15:33 schrieb Gabriel Ellsworth:
On a related note, would it be easy to get the LilyPond Log to tell me
what the font size (in points) of a given markup in a given \fontsize is?
I never really sat down to understand the mechanism of size selection,
but reading the definition of \abs-fontsize backwards, I obtain:
\version "2.26"
#(define-markup-command (show-abs-fontsize layout props content) (markup?)
(ly:message
"Using absolute font size ~a for markup ~a"
(* (magstep (chain-assoc-get 'font-size props 0))
(ly:output-def-lookup layout 'text-font-size 12))
(markup->string content))
(interpret-markup layout props content))
\markup {
\show-abs-fontsize Test
\abs-fontsize #20 \show-abs-fontsize Obladi
\fontsize #1 \show-abs-fontsize Oblada
}
This should log the absolute font size being used for the argument of
\show-abs-fontsize.
Lukas