diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2004-05-28 02:55:46 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2004-05-28 02:55:46 +0000 |
commit | 9fa169b13cbd59804f5d631000c9ddc8ac3663bc (patch) | |
tree | 3ecee0eff207e0b75129a933a40de4d48621ff69 /print/ghostscript7/files/patch-lib:gs_cidfn.ps | |
parent | A graph manipulation library for Objective Caml. (diff) |
Handle NeverEmbed CJK TrueType into PDF, and write correct glyph widths
of CJK TrueType into PDF, and do not write CIDToGIDMap of NeverEmbed CJK
TrueType and Encoding of CIDFont into PDF.
PR: ports/62078
Submitted by: KOMATSU Shinichiro <koma2 at jiro dot c dot u-tokyo dot ac dot jp>
Reviewed by: KATO Tsuguru <jungle at m8 dot dion dot ne dot jp>
Notes
Notes:
svn path=/head/; revision=110164
Diffstat (limited to 'print/ghostscript7/files/patch-lib:gs_cidfn.ps')
-rw-r--r-- | print/ghostscript7/files/patch-lib:gs_cidfn.ps | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/print/ghostscript7/files/patch-lib:gs_cidfn.ps b/print/ghostscript7/files/patch-lib:gs_cidfn.ps new file mode 100644 index 000000000000..98a763bf9b23 --- /dev/null +++ b/print/ghostscript7/files/patch-lib:gs_cidfn.ps @@ -0,0 +1,51 @@ +--- lib/gs_cidfn.ps.org 2003-04-12 23:02:38.000000000 +0900 ++++ lib/gs_cidfn.ps 2003-09-03 07:28:28.000000000 +0900 +@@ -511,9 +511,32 @@ + + .loadinitialcidfonts + ++% <fontname> <font> .RenameFontForNeverEmbed <fontname> <font'> ++/.RenameFontForNeverEmbed { ++ /DEVICE where { pop DEVICE (pdfwrite) eq { ++ currentdistillerparams /NeverEmbed get { ++ 2 index eq { ++ (*** unembeddable CIDFont: ) print 1 index == flush ++ dup length 1 add dict copy ++ dup /FID undef ++ dup /.orig_CIDFontName 1 index /CIDFontName get put ++ dup /CIDFontName 3 index dup type /stringtype eq { ++ dup rcheck { ++ dup length string 0 1 2 index length 1 sub { ++ 2 index 1 index get 3 copy put pop pop ++ } for exch pop ++ } if ++ } if put ++ dup /FontName 1 index /CIDFontName get put ++ } if ++ } forall ++ } if } if ++} bind def ++ + /CIDFontmapHandler << + /nametype { + /CIDFont findresource ++ .RenameFontForNeverEmbed + /CIDFont defineresource pop + } bind + /stringtype { +@@ -528,6 +551,7 @@ + pop pop + } { + % Give a name different from the name defined in the file ++ .RenameFontForNeverEmbed + /CIDFont defineresource pop + } ifelse + } { +@@ -546,6 +570,7 @@ + 3 -1 roll put + % Expand array + aload pop .loadcjkvttcidfont ++ .RenameFontForNeverEmbed + /CIDFont defineresource pop + } { + /undefinedresource signalerror |