[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: layout-set-staff-size overrides font configuration
From: |
Jean Abou Samra |
Subject: |
Re: layout-set-staff-size overrides font configuration |
Date: |
Thu, 28 Jul 2022 22:49:33 +0200 |
> Le 28 juil. 2022 à 17:14, Simon Bailey <binabik@gmail.com> 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