freebsd-ports/print/ghostscript8/files/patch-Resource-Init-gs_ttf.ps
Hiroki Sato b5a670a4ad Update to 8.64. Changes include:
- Improvements to overprint and spot color support in documents with
  transparency, improvements to PDF and PS output, proper handling of
  PDF-specific text rendering modes and support for reading
  AES-encrypted PDF documents.

- Improved handling of CJK text, especially in vertical writing modes.

- Improved memory footprint processing some files at high resolution.

- The handling of color spaces has been moved from PostScript code to
  C.

- A number of the included printer drivers and cups wrappers have been
  updated to support a PDF-based workflow. Also fixed are several
  long-standing bugs in the pcl drivers with respect to duplex,
  resolution and paper tray selection.
2009-03-28 20:05:52 +00:00

24 lines
982 B
PostScript

--- Resource/Init/gs_ttf.ps.orig Tue Feb 6 20:07:48 2007
+++ Resource/Init/gs_ttf.ps Sat Mar 24 16:15:49 2007
@@ -997,10 +997,17 @@
} ifelse
% Stack: ... /FontInfo mark key1 value1 ...
post null ne {
- /ItalicAngle first_post_string 4 gets32 65536.0 div
- /isFixedPitch first_post_string 12 getu32 0 ne
- /UnderlinePosition first_post_string 8 gets16 upem div
- /UnderlineThickness first_post_string 10 gets16 upem div
+ post type /arraytype eq {
+ % this post table is a big table. /post should be [(...) ...]
+ % data we actually need here should be first one in array.
+ /posttable post 1 get def
+ } {
+ /posttable post def
+ } ifelse
+ /ItalicAngle posttable 4 gets32 65536.0 div
+ /isFixedPitch posttable 12 getu32 0 ne
+ /UnderlinePosition posttable 8 gets16 upem div
+ /UnderlineThickness posttable 10 gets16 upem div
} if
counttomark 0 ne { .dicttomark } { pop pop } ifelse
/XUID [orgXUID 42 curxuid]