Bug 692488 - ps2write doesn't handle multiple master fonts properly
Summary: ps2write doesn't handle multiple master fonts properly
Status: IN_PROGRESS
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Writer (show other bugs)
Version: master
Hardware: PC Linux
: P4 enhancement
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-04 09:25 UTC by Chris Liddell (chrisl)
Modified: 2011-09-23 10:09 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Liddell (chrisl) 2011-09-04 09:25:04 UTC
An input file such as tpc2.ps sees ps2write emit a Type 1 font (an "instance" of a multiple master font, but not a MM font itself), in which the charstrings still contain MM font operations. This causes glyph interpretation to error out.
Comment 2 Ken Sharp 2011-09-23 10:09:25 UTC
Commit: 237f153545faec22782b64016b5f14dabb4cf6ed adds code which parses an MM
font and removes the extra (blending) parameters and calls to MM OtherSubrs.

This works around the problem but is not an ideal solution. The only full solution
is to write a complete interpreter which converts the font into a non-MM font.
See the large comment in gdevpsf1.c immediately before CheckSubrsForMM and the
commit log for further details.

It would be preferable to write the full interpreter using
'psf_convert_type1_to_type2' as a template, so I'm leaving this bug open but 
altering to an enhancement.