Bug 690110 - Can't use OTF/CFF fonts for cidfont substitution
Summary: Can't use OTF/CFF fonts for cidfont substitution
Status: CONFIRMED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Resource (show other bugs)
Version: master
Hardware: PC Windows NT
: P2 enhancement
Assignee: Chris Liddell (chrisl)
URL:
Keywords:
: 695989 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-07 07:13 UTC by leonardo
Modified: 2021-01-03 21:16 UTC (History)
4 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.