diff --git a/ghostscript-split-cidfnmap.patch b/ghostscript-split-cidfnmap.patch new file mode 100644 index 0000000..d512520 --- /dev/null +++ b/ghostscript-split-cidfnmap.patch @@ -0,0 +1,23 @@ +--- espgs-8.15.2/lib/cjkv/cjkfnmap.ps.split-cidfnmap 2006-11-17 16:59:21.000000000 +0000 ++++ espgs-8.15.2/lib/cjkv/cjkfnmap.ps 2006-11-17 17:03:39.000000000 +0000 +@@ -75,10 +75,17 @@ + % stack: dict file cidfontname filename|aliasname + 1 index type /stringtype eq + 1 index type /nametype eq and 1 index xcheck and +- 1 index /run eq 2 index /.runlibfile eq or and { ++ 1 index /run eq 2 index /.runlibfile eq 3 index /.runlibfileifexists eq or or and { + % This is an inclusion entry. +- pop findlibfile { exch pop } { file } ifelse +- 2 index exch .cjkv_readCIDFontmap pop ++ 0 index /.runlibfileifexists eq { ++ pop findlibfile { ++ exch pop ++ 2 index exch .cjkv_readCIDFontmap pop ++ } { pop } ifelse ++ } { ++ pop findlibfile { exch pop } { file } ifelse ++ 2 index exch .cjkv_readCIDFontmap pop ++ } ifelse + } { + exch dup type /stringtype eq {cvn} if exch + { 2 index token not diff --git a/ghostscript.spec b/ghostscript.spec index 3155269..3271a5e 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -18,6 +18,7 @@ Patch1: ghostscript-multilib.patch Patch2: ghostscript-scripts.patch Patch3: ghostscript-noopt.patch Patch4: ghostscript-big-cmap-post.patch +Patch5: ghostscript-split-cidfnmap.patch Requires: urw-fonts >= 1.1, ghostscript-fonts BuildRequires: libjpeg-devel, libXt-devel @@ -83,6 +84,9 @@ A GTK-enabled version of Ghostscript, called 'gsx'. # Support reading a big cmap/post table from a TrueType font. %patch4 -p1 -b .big-cmap-post +# Support CIDFnmap inclusion from other files (bug #194592). +%patch5 -p1 -b .split-cidfnmap + # Convert manual pages to UTF-8 from8859_1() { iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_" @@ -237,6 +241,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libijs.*a %changelog +* Tue Dec 5 2006 Tim Waugh +- Added split-cidfnmap patch (bug #194592). + * Thu Nov 16 2006 Tim Waugh 8.15.3-2 - 8.15.3. No longer need gtk2, ps2epsi, badc, pagesize, use-external-freetype, split-font-configuration or cjkv patches.