Discussion:
[gs-code-review] CET 23-13-04, Font dictionary differences
Alex Cherepanov
2007-02-19 19:49:28 UTC
Permalink
Require resource category to be a name in the findresource operator.
Convert 1st operand to a name when it's a string.
Partly fix CET 23-13-04.

Differences:
None: no CET or comparefiles differences.

The content of Courier font directory is still different.
Ghostscript has /.Alias and /PathLoad
Tek has /FontType 14, /CharOffsets, /GlyphData
Distiller 5 has /CharOffsets, /DistillID
PhotoPrint has /CharOffsets

The values of UniqueID, XUID, the length of CharStrings and Private
is different too.

Please review my decision to consider there differences as acceptable.

-------------- next part --------------
Index: gs/lib/gs_res.ps
===================================================================
--- gs/lib/gs_res.ps (revision 7709)
+++ gs/lib/gs_res.ps (working copy)
@@ -204,7 +204,12 @@
def
/findresource {
% See above re .errorexec.
- 1 .argindex pop % catch stackunderflow
+ 1 .argindex % also catch stackunderflow
+ dup type /stringtype eq { cvn } if % for CET 23-13-04
+ 3 1 roll exch pop
+ dup type /nametype ne {
+ /findresource .systemvar /typecheck signalerror
+ } if
/findresource cvx //.findresource .errorexec
} odef

Index: gs/doc/pscet_status.txt
===================================================================
--- gs/doc/pscet_status.txt (revision 7713)
+++ gs/doc/pscet_status.txt (working copy)
@@ -4439,12 +4439,13 @@
23-13-3 DIFF Device Dependent: GS has different Resource Categories and also
has different number of columns. Assign: Ray for further analysis

-23-13-4 DIFF GS has different Font dict entries: .Alias only in GS, no CharOffsets
- string, .OrigFont instead of OrigFont. GS has PathLoad. Later GS
- shows (Oh*) instead of /Oh*. GS loads a font from (/Name (Font) findresource)
- Special Test A, GS shows --findresource-- instead of findresource.
- (.OrigFont issue should be fixed in r7156, other issues not reanalyzed yet - Raph)
- assign alex
+23-13-4 AOK All differences except the content of Courier font dictionary match
+ the test. Rev 7716 - Alex
+ -
+ Ghostsscript has /.Alias and /PathLoad
+ Tek has /FontType 14, /CharOffsets, /GlyphData
+ Distiller 5 has /CharOffsets, /DistillID
+ PhotoPrint has /CharOffsets

23-13-5 OK Fixed by rev 7442.
Leonardo
2007-02-20 17:01:14 UTC
Permalink
Alex,

The mentioned font dictionary keys are not important
because PLRM reads that implementations may add
specific keys to font dictionary.
Please close with AOK and appropriate comment.

Leo.


----- Original Message -----
From: "Alex Cherepanov" <***@quadnet.net>
To: "gs-code-review" <gs-code-***@ghostscript.com>
Sent: Tuesday, February 20, 2007 12:54 AM
Subject: [gs-code-review] CET 23-13-04, Font dictionary differences
Post by Alex Cherepanov
Require resource category to be a name in the findresource operator.
Convert 1st operand to a name when it's a string.
Partly fix CET 23-13-04.
None: no CET or comparefiles differences.
The content of Courier font directory is still different.
Ghostscript has /.Alias and /PathLoad
Tek has /FontType 14, /CharOffsets, /GlyphData
Distiller 5 has /CharOffsets, /DistillID
PhotoPrint has /CharOffsets
The values of UniqueID, XUID, the length of CharStrings and Private
is different too.
Please review my decision to consider there differences as acceptable.
--------------------------------------------------------------------------------
Post by Alex Cherepanov
Index: gs/lib/gs_res.ps
===================================================================
--- gs/lib/gs_res.ps (revision 7709)
+++ gs/lib/gs_res.ps (working copy)
@@ -204,7 +204,12 @@
def
/findresource {
% See above re .errorexec.
- 1 .argindex pop % catch stackunderflow
+ 1 .argindex % also catch stackunderflow
+ dup type /stringtype eq { cvn } if % for CET 23-13-04
+ 3 1 roll exch pop
+ dup type /nametype ne {
+ /findresource .systemvar /typecheck signalerror
+ } if
/findresource cvx //.findresource .errorexec
} odef
Index: gs/doc/pscet_status.txt
===================================================================
--- gs/doc/pscet_status.txt (revision 7713)
+++ gs/doc/pscet_status.txt (working copy)
@@ -4439,12 +4439,13 @@
23-13-3 DIFF Device Dependent: GS has different Resource Categories and
also
has different number of columns. Assign: Ray for further analysis
-23-13-4 DIFF GS has different Font dict entries: .Alias only in GS, no
CharOffsets
- string, .OrigFont instead of OrigFont. GS has PathLoad. Later GS
- shows (Oh*) instead of /Oh*. GS loads a font from (/Name (Font)
findresource)
- Special Test A, GS shows --findresource-- instead of findresource.
- (.OrigFont issue should be fixed in r7156, other issues not reanalyzed
yet - Raph)
- assign alex
+23-13-4 AOK All differences except the content of Courier font
dictionary match
+ the test. Rev 7716 - Alex
+ -
+ Ghostsscript has /.Alias and /PathLoad
+ Tek has /FontType 14, /CharOffsets, /GlyphData
+ Distiller 5 has /CharOffsets, /DistillID
+ PhotoPrint has /CharOffsets
23-13-5 OK Fixed by rev 7442.
--------------------------------------------------------------------------------
Post by Alex Cherepanov
_______________________________________________
gs-code-review mailing list
http://www.ghostscript.com/mailman/listinfo/gs-code-review
Loading...