From 6ee0081670195823addc3d80e6078acb92d581e1 Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Sun, 25 Jul 2004 14:40:42 +0000 Subject: - Add a patch to fix a bug which prevents rendering multibyte TrueType fonts from working. - A file cidfmap now includes entries for Ryumin-Light and GothicBBB-Medium. They points japanese/kochi-ttfonts by default (but this port does not depend on it). Approved by: linimon (mentor) --- print/ghostscript-gpl/files/patch-lib::cidfmap | 41 ++++++++++++++++++++++++ print/ghostscript-gpl/files/patch-lib::gs_ttf.ps | 33 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 print/ghostscript-gpl/files/patch-lib::cidfmap create mode 100644 print/ghostscript-gpl/files/patch-lib::gs_ttf.ps (limited to 'print/ghostscript-gpl/files') diff --git a/print/ghostscript-gpl/files/patch-lib::cidfmap b/print/ghostscript-gpl/files/patch-lib::cidfmap new file mode 100644 index 000000000000..78c204e203e1 --- /dev/null +++ b/print/ghostscript-gpl/files/patch-lib::cidfmap @@ -0,0 +1,41 @@ +--- lib/cidfmap.orig Fri Feb 7 09:31:11 2003 ++++ lib/cidfmap Sun Jun 13 23:58:08 2004 +@@ -26,3 +26,38 @@ + % /ShinGo-Bold /HeiseiKakuGo-W5 ; + % /Ryumin-Medium << /FileType /TrueType /Path (H:/AuxFiles/Fonts/BATANG.TTC) /SubfontID 3 /CSI [(Japan1) 2] >> ; + % ++/Ryumin-Light << ++/FileType /TrueType ++/Path (kochi-mincho-subst.ttf) ++/SubfontID 0 ++/CSI [(Japan1) 3] ++>> ; ++ ++/GothicBBB-Medium << ++/FileType /TrueType ++/Path (kochi-gothic-subst.ttf) ++/SubfontID 0 ++/CSI [(Japan1) 3] ++>> ; ++ ++/HeiseiMin-W3 /Ryumin-Light ; ++%/HeiseiMin-W3 /WadaMin-Regular ; ++/HeiseiKakuGo-W5 /GothicBBB-Medium ; ++%/HeiseiKakuGo-W5 /WadaGo-Bold ; ++/FutoMinA101-Bold /Ryumin-Light ; ++%/FutoMinA101-Bold /WadaMin-Regular ; ++/FutoGoB101-Bold /GothicBBB-Medium ; ++%/FutoGoB101-Bold /WadaGo-Bold ; ++/Jun101-Light /Ryumin-Light ; ++%/Jun101-Light /WadaMin-Regular ; ++/MidashiGo-MB31 /GothicBBB-Medium ; ++%/MidashiGo-MB31 /WadaGo-Bold ; ++ ++%/Munhwa-Regular /Munhwa-Regular ; ++%/MunhwaGothic-Regular /MunhwaGothic-Regular ; ++%/Munhwa-Bold /Munhwa-Bold ; ++%/MunhwaGothic-Bold /MunhwaGothic-Bold ; ++ ++/HYGoThic-Medium /MunhwaGothic-Regular ; ++/HYSMyeongJo-Medium /Munhwa-Regular ; ++/HYRGoThic-Medium /MunhwaGothic-Bold ; diff --git a/print/ghostscript-gpl/files/patch-lib::gs_ttf.ps b/print/ghostscript-gpl/files/patch-lib::gs_ttf.ps new file mode 100644 index 000000000000..aeec34bd0c60 --- /dev/null +++ b/print/ghostscript-gpl/files/patch-lib::gs_ttf.ps @@ -0,0 +1,33 @@ +--- lib/gs_ttf.ps.orig Sat Feb 14 04:43:51 2004 ++++ lib/gs_ttf.ps Mon Jun 7 12:51:44 2004 +@@ -519,7 +519,7 @@ + (maxp) 1 index + (name) 1 index + (OS/2) 1 index +- (post) 1 index ++ (post) { .readbigtable } + (vhea) 1 index + % Big tables + (glyf) { .readbigtable } +@@ -854,10 +854,17 @@ + } ifelse + % Stack: ... /FontInfo mark key1 value1 ... + post null ne { +- /ItalicAngle post 4 gets32 65536.0 div +- /isFixedPitch post 12 getu32 0 ne +- /UnderlinePosition post 8 gets16 upem div +- /UnderlineThickness post 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] -- cgit v1.2.3