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 <kieren_macmil...@sympatico.ca>:

> 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: i...@kierenmacmillan.info
>
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to