lilypond-user
[Top][All Lists]
Advanced

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

RE: Changing text fonts


From: James Lowe
Subject: RE: Changing text fonts
Date: Thu, 10 Mar 2011 15:00:29 +0000

Hello,

)-----Original Message-----
)From: address@hidden
)[mailto:address@hidden On
)Behalf Of Hannes Kuhnert
)Sent: 10 March 2011 12:07
)To: address@hidden
)Subject: Changing text fonts
)
)Hello,
)
)what needs to be done for changing fonts in general?
)
)I tried things like
) \override Score.ChordNames #'font-family = #'roman but it didn’t work.
)
)I’m pretty sure, that
) \override … #'font-family = #'sans
)etc. makes sense, but how can I find out, how the objects that have the
)font property are named?
)

There are a few ways you can do this.

For instance if you want an explicit font for a specific markup you can use

\markup {  \override #'(font-name . "Optima") "hello" }

If you wanted to override the font on a 'TextSpanner' you can use something like

\override TextSpanner #'(font-name) = "Baskerville"

So you can use the same method to choose a font for chord markups.

Also see:

http://lilypond.org/doc/v2.13/Documentation/notation/fonts#entire-document-fonts

Where you can set the entire document so that \sans or anything that uses 
'sans' as its value will use whatever font you need to use.

As to finding out what your PC has in terms of fonts and what names to use

Also see:

http://lilypond.org/doc/v2.13/Documentation/notation/fonts#fonts-explained

There is a lilypond command at the end of the section that you can run on the 
CLI to list out.

I hope this helps.

James




reply via email to

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