diff --git a/Add-CJK-Chinese-font-mappings.patch b/Add-CJK-Chinese-font-mappings.patch new file mode 100644 index 0000000000000000000000000000000000000000..884732b8724fec0618bcae3246c8a7dc298adadc --- /dev/null +++ b/Add-CJK-Chinese-font-mappings.patch @@ -0,0 +1,31 @@ +From 42752ee1d3cf93a2c0804212ad2e4dd5ffd3987e Mon Sep 17 00:00:00 2001 +From: hdliu +Date: Wed, 26 Mar 2025 17:09:19 +0800 +Subject: [PATCH 2/2] Add CJK font mappings + +Modify the Resource/Init/cidfmap file, add font mappings so that the PS interpreter can rasterize Chinese content using the two fonts STKaiti-Regular and STheiti-Regular. + +Signed-off-by: hdliu +--- + Resource/Init/cidfmap | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/Resource/Init/cidfmap b/Resource/Init/cidfmap +index df9b625..d787a62 100644 +--- a/Resource/Init/cidfmap ++++ b/Resource/Init/cidfmap +@@ -46,3 +46,11 @@ + % + % Note the use of a string to cope with the name containing a space. + % ++/BousungEG-Heiti-GB << /FileType /TrueType /Path (/usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc) /SubfontID 0 /CSI [(GB1) 4] >> ; ++/BousungEG-Kaiti-GB << /FileType /TrueType /Path (/usr/share/fonts/cjkuni-ukai/ukai.ttc) /SubfontID 1 /CSI [(GB1) 2] >> ; ++ ++ ++/STHeiti-Regular /BousungEG-Heiti-GB ; ++/STKaiti-Regular /BousungEG-Kaiti-GB ; ++ ++ +-- +2.33.0 + diff --git a/ghostscript.spec b/ghostscript.spec index a415bd720825ad3800040acd5cbf25cc5b598064..5d8180e8d2c0919de80a042d4fb15214a79f7869 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -9,7 +9,7 @@ Name: ghostscript Version: 9.56.1 -Release: 14 +Release: 15 Summary: An interpreter for PostScript and PDF files License: AGPLv3+ URL: https://ghostscript.com/ @@ -75,6 +75,7 @@ Patch126: backport-CVE-2025-27833.patch Patch127: backport-CVE-2025-27834.patch Patch128: backport-CVE-2025-27835.patch Patch129: backport-CVE-2025-27836.patch +Patch130: Add-CJK-Chinese-font-mappings.patch BuildRequires: automake gcc BuildRequires: adobe-mappings-cmap-devel adobe-mappings-pdf-devel @@ -91,6 +92,9 @@ Requires: adobe-mappings-pdf Requires: google-droid-sans-fonts Requires: urw-base35-fonts +Suggests: font(wqy-zenhei-fonts) +Suggests: font(cjkuni-ukai-fonts) + Obsoletes: %{name}-doc < %{version}-%{release} Obsoletes: %{name}-x11 < %{version}-%{release} Obsoletes: %{name}-gtk < %{version}-%{release} @@ -235,6 +239,9 @@ install -m 0755 -d %{buildroot}%{_datadir}/%{name}/conf.d/ %{_bindir}/dvipdf %changelog +* Mon Mar 31 2025 hdliu - 9.56.1-15 +- Add font mappings so that the PS interpreter can rasterize Chinese content using the two fonts STKaiti-Regular and STheiti-Regular. + * Thu Mar 27 2025 Funda Wang - 9.56.1-14 - Type:CVE - ID:NA