bug-lilypond
[Top][All Lists]
Advanced

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

Re: abort in framework-ps.scm


From: Han-Wen Nienhuys
Subject: Re: abort in framework-ps.scm
Date: Tue, 28 Mar 2006 12:48:00 +0200
User-agent: Thunderbird 1.5 (X11/20060313)

Werner LEMBERG wrote:
I just upgraded to Fedora 5, and now I get CJK problems too.  What
do you suggest as a solution? A font is accessed as CIDFont if the
font doesn't support glyphnames.

Two issues.

  . If we include a TrueType font as Type 42, it must contain a
    /CharStrings dictionary which assigns glyph names to all glyphs.
    With other words, there are always glyph names.  Since lilypond
    builds the Type 42 by itself, it should automatically have access
    to this data.  Such a font is to be accessed with the default
    `findfont' interface, AFAIK.

How do I get the Unicode codepoints for a TT glyph from freetype? In pango-font.cc we only get a glyph index. Also, on windows there are further problems with fonts being embedded in duplicate (blowing up PDF file sizes) if we embed type42 fonts, which is why the windows platform uses GS' loadfontfile routine by default.

    Looking into xiao-haizi-guai-guai.ps I see that the /CharStrings
    dictionary is empty for the CJK fonts.  This is a bug, but the
    solution is simple: Just convert the data in the font's Unicode
    `cmap' table to

      /CharStrings XXX dict dup begin
/.notdef 0 def /uniXXXX 1 def
        /uniXXXX 2 def
        ....

    Using `/uniXXXX' is recommended to make the ToUnicode feature of
    PDFs work correctly while converting from PS to PDF.


  . Accessing CID-keyed fonts (this is, fonts which come as PS CIDfont
    resources, not wrapped as an OTF) is not supported yet, right?  It

I guess not, we just make GS read the resource, and hope everything works.

--

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

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