Bug 690162 - Mingliu has some broken glyphs with the reduced truetype interpreter
Summary: Mingliu has some broken glyphs with the reduced truetype interpreter
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: 8.63
Hardware: PC Linux
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-08 04:42 UTC by Stanley Wong
Modified: 2010-06-05 21:03 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
Broken characters (18.25 KB, application/pdf)
2008-11-08 04:46 UTC, Stanley Wong
Details
sample output from Freetype integrated GS (1.66 KB, image/png)
2010-05-03 16:55 UTC, Chris Liddell (chrisl)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stanley Wong 2008-11-08 04:42:21 UTC
The following chinese characters

碼杰蘇駿駒

when rendered by Ghostscript in a PDF or a PS file using the Mingliu font,
it always results in a broken character.
Using freetype-2.3.7 with unpatented bytecode interpreter, it renders correctly.

I'm not sure if any other characters are affected.
Comment 1 Stanley Wong 2008-11-08 04:46:33 UTC
Created attachment 4586 [details]
Broken characters

The broken characters in a PDF file
Comment 2 Hin-Tak Leung 2009-01-13 15:36:22 UTC
mingliu (and kaiu) are known problematic fonts. It appears that xpdf (linked to
freetype 2.3.7) can't render the pdf correctly either, unlike acroread.
Comment 3 Stanley Wong 2009-03-15 09:27:41 UTC
Freetype 2.3.9 has FT_FACE_FLAG_TRICKY, which forces hinting when mingliu is used.
Even xpdf shows the correct glyphs now.

Almost all Traditional Chinese PDFs on the net use Mingliu, so it is rather annoying
to see a PDF rendered properly on the screen, but become a mess on the paper.
It prevents me from using the Linux box for printing PDFs.

Would anyone take a look at this?
Comment 4 Ken Sharp 2009-03-15 14:16:36 UTC
The issue is on my list, so it will get looked at, but has a P4 priority so 
not soon. 

I'm currently working on the FreeType bridge in GS, which has a number of 
problems I'm hoping to resolve soon (eg 689826). Once that is done you could 
simply use FreeType as the font rasteriser if required.
Comment 5 Chris Liddell (chrisl) 2010-05-03 16:55:56 UTC
Created attachment 6251 [details]
sample output from Freetype integrated GS

The output from Ghostscript with Freetype integrated for font rendering produces what looks to me like good output. But not knowing the language it's hard for me to be sure, so I've attached example output.
Comment 6 Hin-Tak Leung 2010-06-05 21:03:53 UTC
The sample output looks good to me. Also tried r11340 with tt interpreter enabled as well. (assume we'll enable it for the next release).