Bug 690110

Summary: Can't use OTF/CFF fonts for cidfont substitution
Product: Ghostscript Reporter: leonardo <leonardo>
Component: ResourceAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: CONFIRMED ---    
Severity: enhancement CC: alexepico, christinedelight.top85, henry.stiles, sphinx.pinastri
Priority: P2    
Version: master   
Hardware: PC   
OS: Windows NT   
Customer: Word Size: ---

Description leonardo 2008-10-07 07:13:57 UTC
The cidfmap included below causes a failure when loading the fonts like this :

/Ryumin-Light /CIDFont findresource

The cidfmap file is :

/Ryumin-Light << /FileType /TrueType /Path (C:/Windows/Fonts/KozGoPro-
Light.otf) /SubfontID 0 /CSI [(Japan1) 2] >> ;
/GothicBBB-Medium << /FileType /TrueType /Path (C:/Windows/Fonts/KozGoPro-
Medium.otf) /SubfontID 0 /CSI [(Japan1) 2] >> ;

The fonts may be found inj attachments 4427, 4428 to bug 689893.

Runnin g with -dTTFDEBUG one can see that the fonts don't include a TT data. 
They include a CFF instead. zbuildfont11 fails in ln 304 due to file_table_pos 
is not an array.
Comment 1 leonardo 2008-10-07 07:16:06 UTC
Passing to Alex because the problem is is Resource/Init/gs_ttf.ps . With this 
OTF it must create FontType 9 rather than FontType 11.
Comment 2 leonardo 2008-10-07 07:18:19 UTC
Bumping the prioority because I believe it is important. Our Support may edit 
it.
Comment 3 Alex Cherepanov 2008-10-12 17:00:41 UTC
Leo, what would you prefer: extend the cidfmap syntax or auto-detect
the font type ?
Comment 4 leonardo 2008-10-13 08:27:51 UTC
Well now I see : the cidfmap record requires True Type (i.e. FontType 11) and 
the font supplies a CID font (font Type 9).

The bottom of the problkem is : when the cidfmap syntax was developed there 
were not TT-like fonts that supply a CFF.

I think the right resolution for the test case is to print error message.

I think the right way is to specify /FileType /OpenType and then recognize 
what font type does it supply.
Comment 5 Henry Stiles 2011-06-01 14:18:39 UTC
This looks like it should be assigned to the font group.
Comment 6 Chris Liddell (chrisl) 2015-05-14 01:59:17 UTC
*** Bug 695989 has been marked as a duplicate of this bug. ***
Comment 7 Peter Cherepanov 2021-01-03 21:16:13 UTC
These fonts still cannot be loaded.