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: Sun, 19 Aug 2012 20:28:07 -0400

On 19 août 2012, at 09:26, Werner LEMBERG <address@hidden> wrote:

> 
>>  501 87297 W 840990920 221184   lilypond ??/bidouillage/bar.ps
>>  501 87298 W 840991352  32768         gs ??/bidouillage/bar.pdf
>>  501 87298 W 840991432  28672         gs ??/T/gs_Rm4DT4
>>  501 87298 W 840991432  32768         gs ??/T/gs_UASlO9
>>  501 87298 W 840991432   4096         gs ??/T/gs_WuxQaK
>> 
>> is what i get - not usre what to make of it.
> 
> Hmm.  Have you read the man page?
> 
>  
> http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/iosnoop.1m.html
> 
> There seem to be some useful options, and I can't believe that you
> only get five I/O events for a lilypond run...
> 
> 
>    Werner

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:

Font_metric *
All_font_metrics::find_font (string name)
{
  Font_metric *f = find_otf (name);

  if (!f)
    {
      error (_f ("cannot find font: `%s'", name.c_str ()));
    }

  return f;
}

This function is what's called eventually by:

(define-public (make-century-schoolbook-tree factor)
  (make-pango-font-tree
    "Century Schoolbook L"
    "sans-serif" "monospace" factor))

So it must find the font, but it doesn't print it (see the attached PDF).

Any ideas?

Cheers,
MS

Attachment: bar.pdf
Description: Adobe PDF document


reply via email to

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