[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing font of "Table of Contents"
From: |
Carl D. Sorensen |
Subject: |
Re: Changing font of "Table of Contents" |
Date: |
Sat, 25 Apr 2009 21:40:59 -0600 |
On 4/25/09 5:38 PM, "Nick Payne" <address@hidden> wrote:
> I'm putting together a book of pieces, and using a particular font for
> headers, footers, titles, subtitles, etc. The one place where I haven't
> figured out how to get that font used is for the header text for the table
> of contents that Lilypond creates. Each tocItem has the font I want by using
> \override #'(font-name etc, but how do I change the font for the actual text
> "Table of Contents" that Lilypond inserts corresponding to the \markuplines
> \table-of-contents in the ly source.
>
> I tried using
>
> \markuplines {
> \override #'(font-name . "SpectrumMT SC")
> \table-of-contents
> }
>
> In the same way as inside \markup blocks, but that doesn't parse correctly
> and gives errors.
>
> Nick
If you look at ly/toc-init.ly, you'll see tocTitleMarkup. You'll want to
add font override to that markup.
Unfortunately, I haven't yet found out how to fix it from a lilypond file.
When I make a similar change in the lilypond file, the one in toc-init.ly
seems to override it.
Carl