Import print/ghostscript9-agpl-base version 9.16_2
[dports.git] / print / ghostscript9-agpl-base / files / patch-Resource-Init-gs_ttf.ps
1 --- Resource/Init/gs_ttf.ps.orig        2011-05-24 04:46:01.000000000 +0900
2 +++ Resource/Init/gs_ttf.ps     2011-05-24 04:46:22.000000000 +0900
3 @@ -1029,10 +1029,21 @@
4    } ifelse
5                 % Stack: ... /FontInfo mark key1 value1 ...
6    post //null ne {
7 -    /ItalicAngle first_post_string 4 gets32 65536.0 div
8 -    /isFixedPitch first_post_string 12 getu32 0 ne
9 -    /UnderlinePosition first_post_string 8 gets16 upem div
10 -    /UnderlineThickness first_post_string 10 gets16 upem div
11 +%    /ItalicAngle first_post_string 4 gets32 65536.0 div
12 +%    /isFixedPitch first_post_string 12 getu32 0 ne
13 +%    /UnderlinePosition first_post_string 8 gets16 upem div
14 +%    /UnderlineThickness first_post_string 10 gets16 upem div
15 +    post type /arraytype eq {
16 +      % this post table is a big table. /post should be [(...) ...]
17 +      % data we actually need here should be first one in array.
18 +      /posttable post 1 get def
19 +    } {
20 +      /posttable post def
21 +    } ifelse
22 +    /ItalicAngle posttable 4 gets32 65536.0 div
23 +    /isFixedPitch posttable 12 getu32 0 ne
24 +    /UnderlinePosition posttable 8 gets16 upem div
25 +    /UnderlineThickness posttable 10 gets16 upem div
26    } if
27    counttomark 0 ne { .dicttomark } { pop pop } ifelse
28    /XUID [orgXUID 42 curxuid]