lilypond-devel
[Top][All Lists]
Advanced

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

Re: Finding Century fonts


From: address@hidden
Subject: Re: Finding Century fonts
Date: Mon, 20 Aug 2012 09:54:08 -0400

On 20 août 2012, at 05:13, address@hidden wrote:

> 
> On 19 août 2012, at 21:20, address@hidden wrote:
> 
>> 
>> On 19 août 2012, at 20:58, John Mandereau <address@hidden> wrote:
>> 
>>> Il giorno dom, 19/08/2012 alle 20.28 -0400, address@hidden ha
>>> scritto:
>>>> Nothing to do with iosnoop, but I did some snooping in the code base and I 
>>>> can't figure out why LilyPond wouldn't raise an error if it doesn't find a 
>>>> font.  In all-font-metrics.cc, there is:
>>> 
>>> [snip]
>>> 
>>>> So it must find the font, but it doesn't print it (see the attached PDF).
>>>> 
>>>> Any ideas?
>>> 
>>> My wild guess is that it is Ghostscript which doesn't find the font(s)
>>> when convering from PS to PDF.  As I'm quite ignorant in font search and
>>> selection in GS, I can't give further hint, unfortunately, other than
>>> looking at GS errors or warning in the logs.
>>> 
>>> John
>>> 
>>> 
>> 
>> I just checked the generated PS files and it looks like a LilyPond and not 
>> GS problem.  The beginning of my PS file is:
>> 
>> %!PS-Adobe-3.0
>> %%Creator: LilyPond 2.17.0
>> %%Pages: 1
>> %%PageOrder: Ascend
>> %%Orientation: Portrait
>> %%DocumentMedia: a4 595.28 841.89 80 () ()
>> %%DocumentSuppliedResources: font BitstreamVeraSans-Roman
>> %%DocumentSuppliedResources: font Emmentaler-20
>> %%EndComments
>> %%BeginProlog
>> 
>> A normal LilyPond PS file generated from my input should read:
>> 
>> %!PS-Adobe-3.0
>> %%Creator: LilyPond 2.17.0
>> %%Pages: 1
>> %%PageOrder: Ascend
>> %%Orientation: Portrait
>> %%DocumentMedia: a4 595.28 841.89 80 () ()
>> %%DocumentSuppliedResources: font CenturySchL-Roma
>> %%DocumentSuppliedResources: font Emmentaler-20
>> %%EndComments
>> %%BeginProlog
>> 
>> So somewhere it is substituting CenturySchL for Bitstream.  I'll try to do a 
>> step by step comparison to find out where this happens...
>> 
>> Cheers,
>> MS
> 
> I was incorrect in a previous e-mail about All_font_metrics::find_font - it's 
> not called for Pango fonts.  Will do more snooping...
> 
> Cheers,
> MS

Figured out the problem - on Mac OS X, I had to install the Century fonts in a 
mac-y location for them to be found.

This seems buggy, as lilypond_datadir correctly points to a directory where the 
.otf font is hanging out.

It may be worth it for someone who knows more about fontconfig than I to check 
if font-config.cc is correctly adding the path.  In the meanwhile, I'll post a 
patch w/ more useful warning messages.

Cheers,
MS




reply via email to

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