[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems with ly:font-load
From: |
Werner LEMBERG |
Subject: |
Re: problems with ly:font-load |
Date: |
Wed, 10 Dec 2008 17:50:32 +0100 (CET) |
> for some reason I can't figure out how to make it work. Would you
> have an example file to send me?
> I've tried
> #(ly:font-config-add-font
> "./Documents/chemoelectric_-_Goudy_Bookletter_1.otf")
>
> or
> #(ly:font-config-add-directory "./Documents/")
>
> and then
>
> c-\markup{ \override #'(font-name . "Goudy Bookletter") text }
>
> But this doesn't work (more surprisingly, it doesn't display any
> message during the compilation??).
What message do you expect? You get something if you add command line
option `-V' to lilypond.
> Before you ask, I have also removed the fontconfig cache before
> compiling the .ly file.
This is irrelevant. Fonts added by the two new functions are not
cached in the cache file.
Let's assume that you have a subdirectory `f', and the font in this
directory is `pala.ttf'. Try this (in file `f.ly'):
#(ly:font-config-add-directory "./f")
#(ly:font-config-display-fonts)
\relative {
c-\markup{ \override #'(font-name . "Palatino") "text" }
}
with
lilypond f.ly 2> f.log
Hmm, this doesn't work; it's not the right font. Looking into the log
file, I see that this font is not called `Palatino' but `Palatino
Linotype'. Fixing this, I get the desired result.
Werner