[gs-bugs] [Bug 692535] PS to PCL transformation fails with "Error: invalidaccess; OffendingCommand: put"
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Sat Sep 24 20:42:28 UTC 2011
http://bugs.ghostscript.com/show_bug.cgi?id=692535
Alex Cherepanov <alex.cherepanov at artifex.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|alex.cherepanov at artifex.com |marcos.woehrmann at artifex.co
| |m
--- Comment #1 from Alex Cherepanov <alex.cherepanov at artifex.com> 2011-09-24 20:42:27 UTC ---
This is not a Ghostscript bug.
The problem is caused by an assumption made by the sample PS program
that findfont always returns a global font when the current allocation
mode is global. This is not the case when TrueType fonts are loaded by
Ghostscript.
The program should be modified as
/pa_ReEncode {
pa_reencsmalldict begin
/glob currentglobal def % remember the global flag
% ...
/basefontdict basefontname findfont
dup gcheck setglobal % set the matching global mode
def
% ...
glob setglobal % restore the global flag
end
} def
The user can also upgrade to v. 9.00 and higher.
New versions load TrueType fonts differently, and the font matches the
assumption. However, it is still possible to construct a font
(e.g. Type 3) that will fail the sample PS file.
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list