From 4eb331e903adfaf6f4b0851438011d487bda692a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E9=9B=B7?= Date: Mon, 25 Nov 2024 15:27:15 +0800 Subject: [PATCH] Add CJK Chinese font mappings --- Add-CJK-Chinese-font-mappings.patch | 29 +++++++++++++++++++++++++++++ ghostscript.spec | 6 +++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 Add-CJK-Chinese-font-mappings.patch diff --git a/Add-CJK-Chinese-font-mappings.patch b/Add-CJK-Chinese-font-mappings.patch new file mode 100644 index 0000000..f858795 --- /dev/null +++ b/Add-CJK-Chinese-font-mappings.patch @@ -0,0 +1,29 @@ +From 648caca6c5b3fd9a87f007b7b1d1b991ab822fae Mon Sep 17 00:00:00 2001 +From: chenlei +Date: Mon, 25 Nov 2024 11:09:49 +0800 +Subject: [PATCH] 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. +--- + Resource/Init/cidfmap | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/Resource/Init/cidfmap b/Resource/Init/cidfmap +index bed221a..bfdfdda 100644 +--- a/Resource/Init/cidfmap ++++ b/Resource/Init/cidfmap +@@ -45,3 +45,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 d68b8c5..53e3d83 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -9,7 +9,7 @@ Name: ghostscript Version: 9.55.0 -Release: 16 +Release: 17 Summary: An interpreter for PostScript and PDF files License: AGPLv3+ URL: https://ghostscript.com/ @@ -48,6 +48,7 @@ Patch20: backport-CVE-2024-46956.patch Patch21: backport-CVE-2024-46951.patch Patch22: backport-CVE-2024-46952.patch Patch23: backport-CVE-2024-46955.patch +Patch24: Add-CJK-Chinese-font-mappings.patch BuildRequires: automake gcc BuildRequires: adobe-mappings-cmap-devel adobe-mappings-pdf-devel @@ -208,6 +209,9 @@ install -m 0755 -d %{buildroot}%{_datadir}/%{name}/conf.d/ %{_bindir}/dvipdf %changelog +* Mon Nov 25 2024 chenlei - 9.55.0-17 +- Add font mappings so that the PS interpreter can rasterize Chinese content using the two fonts STKaiti-Regular and STheiti-Regular. + * Fri Nov 08 2024 liningjie - 9.55.0-16 - Type:CVE - ID:NA -- Gitee