Le dimanche 19 mars 2023 à 03:00 +0200, Dimitri Sykias a écrit :
> Lilypond v. “2.24.1”. I use “oddHeaderMarkup” and “evenHeaderMarkup”. I want 
> to change the font size of header, but “\fontsize #-1.0” does nothing. How 
> can I achieve this? Thanks!
> 
> oddHeaderMarkup = \markup  
>   \fill-line {  
>     " "  
>     \on-the-fly #part-not-first-page \fontsize #-1.0 \fromproperty 
> #'header:subtitle  
>     \if \should-print-page-number \fromproperty #'page:page-number-string  
>   }  
>   evenHeaderMarkup = \markup  
>   \fill-line {  
>     \if \should-print-page-number \fromproperty #'page:page-number-string  
>     \on-the-fly #part-not-first-page \fontsize #-1.0 \fromproperty 
> #'header:subtitle  
>     " "  
>   }

For me, this works just fine:

```
\version "2.24.1"

\paper {
  oddHeaderMarkup = \markup
    \fill-line {
      " " 
      \unless \on-first-page-of-part \fontsize #-1 \fromproperty 
#'header:subtitle
      \if \should-print-page-number \fromproperty #'page:page-number-string
    }
  evenHeaderMarkup = \markup
    \fill-line { 
      \if \should-print-page-number \fromproperty #'page:page-number-string
      \unless \on-first-page-of-part \fontsize #-1 \fromproperty 
#'header:subtitle
      " "
    }
}


\header {
  subtitle = "ABC"
}

{ c' \pageBreak c' }
```

Note that in the example you give, you are mixing 2.22 syntax (`\on-the-fly 
#part-not-first-page`, which should be `\on-the-fly #not-part-first-page` by 
the way) with 2.24 syntax (`\if \should-print-page-number`).

Regards,

Jean

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to