Hi,

Here's another option (credit to Mike S.), using a function which is perhaps a 
little simpler and more widely-applicable (i.e. to any grob with a text 
portion, not just LyricText).

Hope this helps!
Kieren.
___________________

\version "2.17.13"

#(define ((set-abs-fontsize n) grob)
 (grob-interpret-markup grob
   (markup #:abs-fontsize n (ly:grob-property grob 'text))))

\layout {
  \context {
    \Lyrics
    \override LyricText #'stencil = #(set-abs-fontsize 12)
  }
}

theMusic = \relative c' {
  c4 d e f g1
}

theWords = \lyricmode {
  Lyr -- ics in fixed size!
}

staffSize = #(define-music-function (parser location new-size) (number?)
#{
 \set Staff.fontSize = #new-size
 \override Staff.StaffSymbol #'staff-space = #(magstep new-size)
 \override Staff.StaffSymbol #'thickness = #(magstep new-size)
#})

\score {
  <<
    \new Staff \with { \staffSize #-16 } \theMusic
    \addlyrics { \theWords }
    \new Staff \with { \staffSize #-10 } \theMusic
    \addlyrics { \theWords }
    \new Staff \with { \staffSize #-2 } \theMusic
    \addlyrics { \theWords }
    \new Staff \with { \staffSize #2 } \theMusic
    \addlyrics { \theWords }
    \new Staff \with { \staffSize #10 } \theMusic
    \addlyrics { \theWords }
    \new Staff \with { \staffSize #16 } \theMusic
    \addlyrics { \theWords }
  >>
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to