> Le 28 juil. 2022 à 17:14, Simon Bailey <[email protected]> a écrit :
>
> Hi,
>
> it seems layout-set-staff-size overwrites any custom
> font-configuration that has been made.
>
> This input gives the attached output, where the titles have the
> correct font, but the TextScripts in the score that uses
> layout-set-staff-size have the default fonts.
> What's the correct way to work around this?
>
> \paper {
> #(define fonts
> (make-pango-font-tree "Kepler Std"
> "Cronos Pro"
> "monofur"
> (/ staff-height pt 20)))
> print-all-headers = ##t
> bookTitleMarkup = ""
> }
> \header {
> title = \markup \sans "Cronos Title"
> subtitle = \markup \italic "Kepler subtitle"
> dedication = \markup \typewriter "monofur dedication"
> }
> \score {
> \relative { c''1^\markup\sans "Cronos" c^"Kepler"
> c^\markup\typewriter"monofur" }
> }
>
> \score {
> \relative { c''1^\markup\sans "Cronos" c^"Kepler"
> c^\markup\typewriter"monofur" }
> \layout {
> #(layout-set-staff-size 20)
> }
> }
>
> Thanks, kind regards,
> sb
This is a known issue (although I can’t find it in the tracker right now, maybe
I missed it, or maybe it should be created). You need to use #(define fonts …)
again just after layout-set-staff-size, in the same layout block.
Regards,
Jean