[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set-global-staff-size undoes define fonts
From: |
David F. |
Subject: |
Re: set-global-staff-size undoes define fonts |
Date: |
Sat, 26 Jan 2019 22:30:10 -0700 |
On Jan 26, 2019, at 8:52 PM, David F. <address@hidden> wrote:
> I can specify the font for my score to use with #(define fonts … ), but
> calling #(set-global-staff-size) undoes the font definition.
>
> In the snippet below, Times New Roman will be used as the font for the whole
> document. But if line 6 is uncommented, the font reverts to the default of
> New Century Schoolbook. (These fonts are easily distinguished by the letter
> Q—hence the title.)
>
> Any suggestion on how I can both set the font to TNR and set the staff size
> (in that order)?
>
> =======
> \version "2.19"
>
> \paper {
> #(define fonts (make-pango-font-tree "Times New Roman" "" "" 1))
> }
> % #(set-global-staff-size 20)
>
> \header {
> title = "QQQ"
> }
>
> \relative c' {
> c c c c
> }
> =======
Using the new 2.19 syntax for setting fonts has the same problem. I’m using
2.19.82 on macOS 10.13.6.
\paper {
#(define fonts (set-global-fonts #:roman "Times New Roman"))
}
David