|
From: | Pierre Perol-Schneider |
Subject: | Re: different font size settings for instrumentName and shortInstrumentName |
Date: | Wed, 21 Sep 2016 18:47:05 +0200 |
PierreCheers,Hi Kieren,How about:
%%%%%%%%
\version "2.19.48"
shortInstrumeentNameFontSize = -3
\layout {
\context {
\Staff
\override InstrumentName.after-line-breaking = #(lambda (grob)
(ly:grob-set-property! grob 'text
(markup #:fontsize shortInstrumeentNameFontSize (ly:grob-property grob 'text))))
}
}
\new Staff
\with {
instrumentName = "Flute"
shortInstrumentName = "Fl."
}
{ c''1 \break c'' }
%%%%%%%%2016-09-21 16:08 GMT+02:00 Kieren MacMillan <address@hidden> :Hello all,
Has anyone elegantly solved the problem of having different font settings (size, in particular) for instrumentName and shortInstrumentName? I know I could write a music function, and then use
instrumentName = “long name”
shortInstrumentName = \myfunction ”short name”
or even just use
instrumentName = “long name”
shortInstrumentName = \markup \fontsize #-2 ”short name”
etc., but I’d prefer a global solution that can be set as a context override.
Thanks!
Kieren.
________________________________
Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |