lilypond-user
[Top][All Lists]
Advanced

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

Re: Font for SustainPedal


From: Noeck
Subject: Re: Font for SustainPedal
Date: Thu, 6 Apr 2017 20:16:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Hi Manuela,

the trick is to define a music font with a different name (I called it
emm) in addition to the global font. Then it depends if you want to use
markup for the pedal marks or the \sustainOn and \sustainOff commands.


\version "2.19.56"

\paper {
  #(define fonts
     (set-global-fonts
      #:music "ross"
      #:brace "gonville"
      ))
  % define music font in addition to global font
  #(add-music-fonts fonts 'emm "emmentaler" "emmentaler"
     feta-design-size-mapping (/ staff-height pt 20))
}

% change font in markup
\relative {
  c'4-\markup {
    \override #'(font-family . emm)
    \musicglyph #"pedal.Ped"
  }
}

% change font of sustain pedal
\relative {
  \override Staff.SustainPedal.font-family = #'emm
  c'\sustainOn c c c\sustainOff
}


Does that help?

Cheers,
Joram



reply via email to

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