diff --git a/0002-Add-CJK-font-mappings.patch b/0002-Add-CJK-font-mappings.patch new file mode 100644 index 0000000000000000000000000000000000000000..1935851bf5493d2d3543e25b764069e6eaa1dec6 --- /dev/null +++ b/0002-Add-CJK-font-mappings.patch @@ -0,0 +1,31 @@ +From 5c20134b8fe5ea683f5f546c467bed8469115d04 Mon Sep 17 00:00:00 2001 +From: hdliu +Date: Fri, 28 Mar 2025 13:15:56 +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 0cc7a9fa7cf81e6f5123913df2ad4beac65e24f8..76e2ef399553119fddaa6fc24fb6daaf3dce4e71 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -9,7 +9,7 @@ Name: ghostscript Version: 9.56.1 -Release: 13 +Release: 14 Summary: An interpreter for PostScript and PDF files License: AGPLv3+ URL: https://ghostscript.com/ @@ -69,6 +69,7 @@ Patch119: backport-CVE-2024-46956.patch Patch120: backport-CVE-2024-46955.patch Patch121: backport-CVE-2024-46951.patch Patch122: backport-CVE-2024-46952.patch +Patch123: Add-CJK-Chinese-font-mappings.patch BuildRequires: automake gcc BuildRequires: adobe-mappings-cmap-devel adobe-mappings-pdf-devel @@ -159,6 +160,7 @@ PDF files using Ghostscript and dvips %patch120 -p1 %patch121 -p1 %patch122 -p1 +%patch123 -p1 # Libraries that we already have packaged(see Build Requirements): rm -rf cups/libs freetype ijs jbig2dec jpeg lcms2* libpng openjpeg tiff zlib @@ -252,6 +254,10 @@ install -m 0755 -d %{buildroot}%{_datadir}/%{name}/conf.d/ %{_bindir}/dvipdf %changelog +* Fri Mar 28 2025 hdliu - 9.55.0-14 +- Add font mappings so that the PS interpreter can rasterize Chinese content using the two fonts STKaiti-Regular and STheiti-Regular. + + * Mon Nov 04 2024 liningjie - 9.56.1-13 - Type:CVE - ID:NA