32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
|
|
From 09e9976725ecb58d52810946272fc32e1405bcb3 Mon Sep 17 00:00:00 2001
|
||
|
|
From: hdliu <dev03108@linx-info.com>
|
||
|
|
Date: Wed, 26 Mar 2025 14:42:04 +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 bed221a..850b559 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
|
||
|
|
|