lilypond-user
[Top][All Lists]
Advanced

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

Re: setting a text font


From: Mats Bengtsson
Subject: Re: setting a text font
Date: Thu, 04 Aug 2005 13:38:24 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

Normally, when you set an object property, you set it
within the current context (for example within the current
Lyrics context). So if you want to set the font-name for a
specific line of lyrics, you can do

\score{
<<
  ...
  \new Lyrics{ \override LyricText  #'font-name = #"Gentium" ... }
  ...
>>
...
}

You can also set a property at a higher level in the context hierarchy,
by explicitly specifying for example that the setting should apply to
all contexts of the score by
\override Score . LyricText #'font-name = #"Gentium"

Note that I added a space around the period. The reason is that
within lyrics mode, the frontend of LilyPond would otherwise treat
"Score." as a single word. This is a silly limitation of the program.
I'm sure it used to be described in the Manual some years ago, but
for some reason that information seems to have disappeared.

Finally, you can do the setting in a \layout{...} block if you
want it to apply the full score, see "9.1.4 Layout tunings within contexts". Note the difference to \override Score . xxxx ..., where
you can do the setting, say, in bar 25 of the piece to apply it only
from bar 25 on (but for all staves, lyrics, ... of the score).

Notice that I have only talked about the syntax in my answer, I haven't
taken the time to make up an example file and try the actual font
setting. You will always have a better chance of getting an accurate
answer if you include a small (but complete) example of the LilyPond
input that you have tried.

   /Mats


fiëé visuëlle wrote:
Hi there! (this is LilyPond 2.6 on MacOSX)

I still try to typeset my lyrics in another font.

While I can't find the right place for
\override Lyrics.LyricText  #'font-name = #"Gentium"
(it doesn't complain within Staff context, but does nothing - is Lyrics.LyricText right?)

I checked if it works with ChordNames:
\override ChordNames.ChordName  #'font-name = #"Arial Black"

At least I get an error message:

Layout output to `mysong.ps'.../Applications/Sound/LilyPond.app/ Contents/Resources/share/lilypond/current/scm/framework-ps.scm: 303:13: In expression (ly:warn (_ "Couldn't extract file matching ~a from ~a") name ...): /Applications/Sound/LilyPond.app/Contents/Resources/share/lilypond/ current/scm/framework-ps.scm:303:13: Unbound variable: ly:warn

I guess that means that LilyPond can't find the font (but it is listed in the font cache!), but the error message is not really understandable...

Any hints?

Greetlings from Lake Constance
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net
http://angerweit.tikon.ch/lieder/



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

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

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