lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: different font size settings for instrumentName and shortInstrumentN


From: Pierre Perol-Schneider
Subject: Re: different font size settings for instrumentName and shortInstrumentName
Date: Wed, 21 Sep 2016 18:47:05 +0200

Or even:

\version "2.19.48"

longInstrumeentNameFontSize = 6
shortInstrumeentNameFontSize = -3

\layout {
    \context {
    \Staff
    \override InstrumentName.after-line-breaking = #(lambda (grob)
       (ly:grob-set-property! grob 'long-text
          (markup #:fontsize longInstrumeentNameFontSize (ly:grob-property grob 'long-text)))                                             
      (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'' }

Cheers,
Pierre

2016-09-21 18:28 GMT+02:00 Pierre Perol-Schneider <address@hidden>:
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'' }
%%%%%%%%

Cheers,
Pierre

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]