Re: dia 0.90: printing Japanese using --enable-freetype ?



Le Wed, Jun 05, 2002, à 04:37:20PM +0200, Mike Fabian a écrit:


    [... snip ...]

     /xi /xi /xi /xi /xi /xi /xi /xi /xi /xi /xi /xi /xi /xi /xi /xi
    ] /e0 exch def

Can you unsnip the complete array ?

The problem is not only that one cannot print the Asian glyphs, one
cannot print anything correctly when using these fonts, not even a
simple ASCII string like "xyz". If this problem is solved, I guess
printing will work for east Asian languages when '--enable-freetype'
is used.

Does it work, in your experience, when --disable-freetype ?

Which locale are you using ?
 
Looking into the above postscript file, I see that in both cases the
"xyz" is encoded as "( !")", i.e. only one byte is used for each
character. How is this supposed to work for a font which has much more
than 256 characters? Is the font split up in smaller portions? Does
/OmegaSerif88591_e0 specify a subset of the /OmegaSerif88591 font?

Yes:

    /Kochi-Mincho_e0 undefinefont
    /Kochi-Mincho_e0
      /Kochi-Mincho findfont
      dup length dict begin
      {1 index /FID ne {def} {pop pop} ifelse} forall
      /Encoding e0 def
      currentdict end
    definefont pop

Unfortunately, this doesn't work as well in practice for non-latinN as I
originally thought it would. Proper solution will require talking CID and
doing some font matching (which is best done by Pango).

        -- Cyrille

-- 
Grumpf.




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