Changing Chord Name Font Size

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Changing Chord Name Font Size

KKLL00B
I've been using LilyPond for a couple of weeks now and I would like to know how to change the font size of the chord names when using the \chordmode command.  I would like the chord names to be a little larger and print in bold.

Any suggestions are greatly appreciated.

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Changing Chord Name Font Size

Carl Sorensen
Dear KKLL00B,

Thanks for your question.  This is a question that is best asked on the
lilypond-user list, which is where questions by new *users* are handled.

The frogs list is for new *developers*, that is, for people who are trying
to eliminate bugs from LilyPond.

Anyway, to answer your question:

The general ways to modify things in LilyPond are described in the Notation
Reference, Chapter 5.  As you look there, you may find better explanations
of what I'm going to tell you below.

If you look at the LilyPond Internals reference, under section 3.1.24,
you'll see all the properties of the ChordName object.  It has a font-size
property, which is currently set at 1.5.  It has a font-series property,
currently set as sans.  It doesn't show any property that appears to govern
bold or regular.

At the bottom of the page, there is a link for font-interface, which
ChordName supports.  Clicking on that link shows the user-settable
properties for the font interface, which include font-size and font-series.

So, you'll want to do something like the following:

\new ChordNames \chordmode {
  \override ChordName #'font-size=#2
  \override ChordName #'font-series=#'bold
   ... your chords go here
}

Alternatively, in your \layout{} block, you can do this:

\layout {
  \context { \ChordNames
     \override ChordName #'font-size = #2
     \override ChordName #'font-series = #'bold
  }
}

This will have the effect of changing the properties in all ChordNames
contexts, not just one (of course, there's generally only one ChordNames
context, so it doesn't really matter).

HTH,

Carl



On 11/15/09 10:25 AM, "KKLL00B" <[hidden email]> wrote:

>
>
> I've been using LilyPond for a couple of weeks now and I would like to know
> how to change the font size of the chord names when using the \chordmode
> command.  I would like the chord names to be a little larger and print in
> bold.
>
> Any suggestions are greatly appreciated.
>
> Thanks.
> --
> View this message in context:
> http://n2.nabble.com/Changing-Chord-Name-Font-Size-tp4008276p4008276.html
> Sent from the LilyPond Frogs mailing list archive at Nabble.com.
>
> ---
> ----
> Join the Frogs!
>


---
----
Join the Frogs!