Add CJK Chinese font mappings
Signed-off-by: hdliu <dev03108@linx-info.com> (cherry picked from commit d26845f097808d572123ab3ef80a156517f75b72)
This commit is contained in:
parent
fe4554b298
commit
6c6d9e17a6
31
Add-CJK-Chinese-font-mappings.patch
Normal file
31
Add-CJK-Chinese-font-mappings.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From 5c20134b8fe5ea683f5f546c467bed8469115d04 Mon Sep 17 00:00:00 2001
|
||||||
|
From: hdliu <dev03108@linx-info.com>
|
||||||
|
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 <dev03108@linx-info.com>
|
||||||
|
---
|
||||||
|
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
|
||||||
|
|
||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
Name: ghostscript
|
Name: ghostscript
|
||||||
Version: 9.56.1
|
Version: 9.56.1
|
||||||
Release: 14
|
Release: 15
|
||||||
Summary: An interpreter for PostScript and PDF files
|
Summary: An interpreter for PostScript and PDF files
|
||||||
License: AGPLv3+
|
License: AGPLv3+
|
||||||
URL: https://ghostscript.com/
|
URL: https://ghostscript.com/
|
||||||
@ -75,6 +75,7 @@ Patch126: backport-CVE-2025-27833.patch
|
|||||||
Patch127: backport-CVE-2025-27834.patch
|
Patch127: backport-CVE-2025-27834.patch
|
||||||
Patch128: backport-CVE-2025-27835.patch
|
Patch128: backport-CVE-2025-27835.patch
|
||||||
Patch129: backport-CVE-2025-27836.patch
|
Patch129: backport-CVE-2025-27836.patch
|
||||||
|
Patch130: Add-CJK-Chinese-font-mappings.patch
|
||||||
|
|
||||||
BuildRequires: automake gcc
|
BuildRequires: automake gcc
|
||||||
BuildRequires: adobe-mappings-cmap-devel adobe-mappings-pdf-devel
|
BuildRequires: adobe-mappings-cmap-devel adobe-mappings-pdf-devel
|
||||||
@ -235,6 +236,9 @@ install -m 0755 -d %{buildroot}%{_datadir}/%{name}/conf.d/
|
|||||||
%{_bindir}/dvipdf
|
%{_bindir}/dvipdf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 28 2025 hdliu <dev03108@linx-info.com> - 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 <fundawang@yeah.net> - 9.56.1-14
|
* Thu Mar 27 2025 Funda Wang <fundawang@yeah.net> - 9.56.1-14
|
||||||
- Type:CVE
|
- Type:CVE
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user