[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Title font and font size change
From: |
Kieren MacMillan |
Subject: |
Re: Title font and font size change |
Date: |
Tue, 5 Mar 2013 16:19:02 -0500 |
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 }
>>
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Title font and font size change,
Kieren MacMillan <=