Issue 6968 - compilation to postscript fails due to fields in fonts
Summary: compilation to postscript fails due to fields in fonts
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: current
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 1.1 Beta
Assignee: ulf.stroehler
QA Contact: issues@gsl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-13 18:36 UTC by wouter
Modified: 2003-03-13 11:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
desription of the problem with the generated postscript (from a ghostscript-developer) (4.06 KB, text/plain)
2002-10-16 18:03 UTC, wouter
no flags Details
This font makes ps 'FontName' fail (48.32 KB, application/octet-stream)
2003-01-17 00:58 UTC, wouter
no flags Details
This font makes ps 'FontName' fail (18.02 KB, application/octet-stream)
2003-01-17 00:59 UTC, wouter
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description wouter 2002-08-13 18:36:47 UTC
For some fonts, the compilation to postscript fails because of fonts with
irregular characters or spaces in internal fields (ttf's).

As a result, printing fails without any warning.

[cocaine:~] cat uhm | gs -sDEVICE=pbmraw -sPAPERSIZE=a4 -q -dNOPAUSE -r600
-sOutputFile=uhm.processed -
Error: /undefined in StempelkastenHSet1
Operand stack:
   FontName   Alexandras
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1   3   %oparray_pop   .runexec2 
 --nostringval--   --nostringval--   --nostringval--   2   %stopped_push  
--nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:918/1241(G)--   --dict:0/20(G)--   --dict:61/200(L)--   --dict:3/30(L)--
Current allocation mode is local
Current file position is 668549
GNU Ghostscript: Unrecoverable error, exit code 1
[cocaine:~] _

This is only an openoffice bug by proxy, but I think it's important enough to
mention (there are lots of invalid ttf fonts out there).

If this issue wasn't known (hard to see how it couldn't have been), it might
solve some 'nothing happens when trying to print'-issues.
Comment 1 wouter 2002-10-16 18:03:05 UTC
Created attachment 3199 [details]
desription of the problem with the generated postscript (from a ghostscript-developer)
Comment 2 wouter 2002-10-16 18:17:12 UTC
Moving to gsl, since postscript generation seems to be their
responsability.

Testcases with faulty postscript (and the TTF's that cause it) are
available on request.
Comment 3 philipp.lohmann 2002-10-25 16:36:13 UTC
assigning to real project lead
Comment 4 christof.pintaske 2002-11-04 12:03:07 UTC
will fix
Comment 5 christof.pintaske 2003-01-16 15:49:54 UTC
Wouter, 
please provide a testcase (ttf font)

Comment 6 wouter 2003-01-17 00:58:43 UTC
Created attachment 4324 [details]
This font makes ps 'FontName' fail
Comment 7 wouter 2003-01-17 00:59:29 UTC
Created attachment 4325 [details]
This font makes ps 'FontName' fail
Comment 8 wouter 2003-01-17 01:11:18 UTC
'black.ttf' makes the generated postscript compilation fail because of
a space in the field, and 'blaiHand.ttf' because of the colon or
slashes (it's an url, for some reason).

It can be argued that most of these ttf fonts have invalid fields in
them that should be fixed. However, we're talking about many of them,
so it's probably better and definitely more feasable to escape or
rename the fieldnames in the generated postscript. Perhaps solving
this will also solve some other bug reports related to 'OO not
printing', at least on a *nix platform.

I have more examples, if needed.
Comment 9 christof.pintaske 2003-01-17 10:15:39 UTC
thanks for the bugdoc,

will be fixed in 1.1beta,

psprint/printergfx/common_gfx.cxx 1.10.6.1
psprint/printergfx/glyphset.cxx 1.15.6.1
psprint/fontsubset/sft.c 1.18.6.1
Comment 10 philipp.lohmann 2003-01-17 15:36:36 UTC
fixed in CWS vcl03
Comment 11 philipp.lohmann 2003-01-17 15:39:08 UTC
fixed
Comment 12 ulf.stroehler 2003-01-17 16:22:09 UTC
verified in cws vcl-03.
Comment 13 michael.bemmer 2003-03-13 11:13:52 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details.