Hello Robin, thank you for your reply. The problem here is that \fontsize is never called. The font-size is entirely handled by the grob callback ly:text-interface::print. My problem is that at Position where the markup is defined the fontsize is in fact not known. I’ve solved the issue for the time being by using a on-the-fly call to modify the baseline-skip. So now we are somewhere here.
Cheers, Valentin Am Montag, 1. März 2021, 10:50:28 CET schrieb Robin Bannister: > Valentin Petzel wrote: > > Does anyone of you have an idea how one can set baseline-skip to be > > proportional to the font-size? > > Well, when the markup command \fontsize changes the font size, it > changes the baseline-skip too, to keep it proportional. > > But this means that if you are overriding the baseline-skip, you need to > take care where you place the override wrt \fontsize. See example 4. > > > \version "2.20.0" > > \markup \line { > \column { A B C 1 } > \override #(cons 'baseline-skip 1.2) \column { A B C 2 } > \fontsize #-6 "..." > \fontsize #-6 \column { A B C 3 } > \fontsize #-6 \override #(cons 'baseline-skip 1.2) \column { A B C 4 } > \override #(cons 'baseline-skip 1.2) \fontsize #-6 \column { A B C 5 } > } > > > > Cheers, > Robin
Ohne Titel2.pdf
Description: Adobe PDF document
signature.asc
Description: This is a digitally signed message part.