lilypond-user
[Top][All Lists]
Advanced

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

Re: override font name for lyrics


From: Phil Holmes
Subject: Re: override font name for lyrics
Date: Sat, 14 Jun 2014 15:25:06 +0100

Works fine for me, Windows Vista, 2.18.2.
 
I'd suggest you experiment with fonts that are definitely on your system: Arial if it's a Windows machine, for example.  If they work, then it's not the syntax that's the problem.

--
Phil Holmes
 
 
----- Original Message -----
Sent: Saturday, June 14, 2014 3:08 PM
Subject: override font name for lyrics

Hi everyone!

I just downloaded Lilypond 2.18.2-1— previously, I worked with 2.12.3-1. With that version, when I wanted a font on the system to use with the lyrics what used work with this:
LyricGaramond =   \override LyricText #'font-name = #”Garamond Premier Pro"

doesn’t work anymore, i.e, the file processes except that I don’t get the Garamond font. I have found the place in the documentation that speaks of “entire document fonts”, suggesting:

\paper  {
  #(define fonts
    (make-pango-font-tree "Times New Roman"
                          "Nimbus Sans"
                          "Luxi Mono"
                          (/ staff-height pt 20)))


But I can’t seem to make it work. It just keeps the default font in place. Here’s a sample of what I’m doing (with XeLaTeX):


\layout {
 \context {
     \Score 
     \remove "Bar_number_engraver"
     }

     \context {
     \Staff
     \remove "Time_signature_engraver"
     }
     }


TimeKey = {\key f \major}
Music   = \relative c' {  \set Score.timing = ##f
                          \set autoBeaming = ##f
f8 g a4 a8 a  bes bes a4 \bar"|" f8 g  a4 a  \bar"|"\break
bes8 bes a4 g \bar"|" g8 g f g  a4 a8 g  f2 \bar"|." }

LyricGaramond =   \override LyricText #'font-name = #"Garamond Premier Pro"
StanzaGaramond =   \override StanzaNumber #'font-name = #"Garamond Premier Pro"



VerseOne   = \lyricmode { \LyricGaramond \StanzaGaramond
\set fontSize = #1.2     \set stanza = "All: " “I am tru -- ly the Bread of Life, who will grant you 
life e -- ter -- nal, if you eat my Bo -- dy in
faith.”
 }
\score {
      \new Staff <<
      \new Voice = "Monks"  { \voiceOne \TimeKey \Music }
      \new Lyrics  \lyricsto "Monks" { 
                \override LyricText #'font-name = #"Garamond Premier Pro" 
                \VerseOne   }
>>
}



Any help is greatly appreciated — I’ll pray for you!



United in adoration of Jesus,




fr. michael gilmary, mma


Maronite Monks of Adoration
Most Holy Trinity Monastery
67 Dugway Road
Petersham, MA 01366-9725



_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

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