lilypond-user
[Top][All Lists]
Advanced

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

Re: How does lilypond choose fonts?


From: Werner LEMBERG
Subject: Re: How does lilypond choose fonts?
Date: Mon, 07 Nov 2011 15:18:49 +0100 (CET)

> I have set up my lilypond files to use fonts I like in \paper:
>
>   #(define fonts
>     (make-pango-font-tree "Centaur MT"
>                           "ITC Eras"
>                           "Prestige Elite"
>                            (/ myStaffSize 20)))
>
> And this works exactly as expected, so long as I use standard ASCII
> characters. Once I add Cyrillic (e.g., "Был у Хри -- ста, мла -- ден
> -- ца сад,"), lilypond starts using Verdana.
>
> I think I understand why -- the three old PFB fonts I selected don't
> support Unicode.  But I can't figure out how lilypond figured out
> that it needed to override my font choice or how it chose the font
> it did (Verdana).  I would like to convince lilypond to use Times New
> Roman or Garamond.

Fallback fonts, this is, fonts not exactly set up by LilyPond, are
handled by the FontConfig library.  It seems that FontConfig's
searching algorithm finds Verdana before Times New Roman.

Two solutions:

  . Define a command, say, \russian, which sets up the proper font in
    Lilypond.  This is what I recommend.

  . Fix FontConfig's configuration files.


      Werner



reply via email to

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