Bug 691623

Summary: TrueType for CIDFont substitution not correct
Product: Ghostscript Reporter: Ken Sharp <ken.sharp>
Component: Font APIAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P2    
Version: master   
Hardware: PC   
OS: Windows Vista   
Customer: 780 Word Size: ---
Attachments: Patch for the fix.

Description Ken Sharp 2010-09-17 08:23:15 UTC
Created attachment 6733 [details]
example file

The file (attached) uses Arial and Arial,Bold, declared as CIDFonts, but not embedded in the document. Both use an Identity-H CMap. When using the Windows Arial TrueType font as a substitute by defining it in cidfmap the rendered result is incorrect.

cidfmap entry:

/Arial <<
/FileType /TrueType
/SubfontID 0
/Path (/windows/fonts/arial.ttf)
/CSI [(Identity) 0]
>> ;

/Arial,Bold <<
/FileType /TrueType
/SubfontID 0
/Path (/windows/fonts/arialbd.ttf)
/CSI [(Identity) 0]
>> ;

Oridinarily I would suspect that the font used to create the document was different from the substitute font, but Acrobat is able to display the document correctly using the same system font.
Comment 1 Ken Sharp 2010-09-17 08:24:39 UTC
P2 for customer issue.
Comment 2 Chris Liddell (chrisl) 2010-09-24 13:25:29 UTC
Fixed in r11742.
Comment 3 Chris Liddell (chrisl) 2010-09-24 13:26:35 UTC
Created attachment 6755 [details]
Patch for the fix.