lilypond-user
[Top][All Lists]
Advanced

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

Re: change font name of just lyrics?


From: Nathan Ho
Subject: Re: change font name of just lyrics?
Date: Tue, 26 May 2015 10:49:58 -0700

On Tue, May 26, 2015 at 10:34 AM, Joshua Nichols <address@hidden> wrote:
I've looked for a hack, but I haven't found one yet. I was wondering if y'all could expedite my question:

I'd like to be able to change the default lyric font to a different font within the same font family. I have an expert font that has many different weights and a condensed form, and I'm not quite sure how to tweak just the lyrics.


Here's the hack:

#(define ((force-font font-name) grob)
   (grob-interpret-markup
         grob
         (markup
          #:override (cons 'font-name font-name)
           (ly:grob-property grob 'text))))

\new Staff {
  c'4 d'4 e'2
} \addlyrics {
  \override LyricText.stencil = #(force-font "Ubuntu")
  Li -- ly -- Pond

Regards,
Nathan

reply via email to

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