summaryrefslogtreecommitdiffstats
path: root/source/ap/ghostscript/cidfmap
blob: ef18631f5ecda92bd330690aa76d89e503ded3ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
%!
% This is a sample map file for CIDFont category.

%
% The map is a set of records, which must use one of the two formats :
%
% 1. A substutution of a CIDFont font with another CIDFont :
%
%    /substituted /original ;
%
%    Where 'substituted' is a name being used in a document,
%    'original' is a name of an available resource.
%
% 2. A substutution of a CIDFont font with a True Type font :
%
%    /substituted << /FileType /TrueType /Path (path) /SubfontID 1 /CSI [(ordering) supplement] >> ;
%
%    Where 'substituted' is a name being used in a document,
%    'path' is a path to a True Type font file,
%    'ordering' is a value of Ordering required for CIDSystemInfo dictionary,
%    'supplement' is a value of Supplement required for CIDSystemInfo dictionary.
%    'SubfontID' is the index of the desired font in a TTC - ignored if the target is not a TTC.
%
%    The Ordering, and Registry (if present) entries should be PostScript string types
%    ie enclosed in parentheses, not PostScript name type (initial character '/'). See
%    gs/doc/Use.htm#CIDFontSubstitution
%
%    Alternatively:
%    (substituted name) << /FileType /TrueType /Path (path) /SubfontID 1 /CSI [(ordering) supplement] >> ;
%
%    This is where the CIDFont name in the document contains a space character. Using a string instead of a name
%    allows this work - Ghostscript will internally convert the key string with a space to a name.
%
%
% Examples :
%    
%   /ShinGo-Bold   /HeiseiKakuGo-W5 ;
%   /Ryumin-Medium << /FileType /TrueType /Path (H:/AuxFiles/Fonts/BATANG.TTC) /SubfontID 3 /CSI [(Japan1) 2] >> ;
%   /Ryumin-Medium << /FileType /TrueType /Path (windir) getenv not {(c:/windows)}if (/Fonts/BATANG.TTC)concatstrings /SubfontID 3 /CSI [(Japan1) 2] >> ;
%
%   NOTE: getenv returns a boolean to indicate success of or failure, as well as the value on success. In the example, it uses this
%         to include a default value should getenv fail.
%
%  (Century Gothic) << /FileType /TrueType /Path (/usr/share/fonts/truetype/fonts-japanese-gothic.ttf) /CSI [(Identity) 1] >> ;
%
%  Note the use of a string to cope with the name containing a space.
%


%% cidfmap.zh_CN (simplified Chinese ; zh_CN)
%% This font will produce better results than the wqy-zenhei.ttc that we use
%% to get out-of-the-box output.
%% If you install it, uncomment the line below and comment the one below that.
%/BousungEG-Light-GB            << /FileType /TrueType /Path (uming.ttf) /CSI [(GB1) 4] >> ;
/BousungEG-Light-GB             << /FileType /TrueType /Path (wqy-zenhei.ttc) /CSI [(GB1) 4] >> ;
%% This font will produce better results than the wqy-zenhei.ttc that we use
%% to get out-of-the-box output.
%% If you install it, uncomment the line below and comment the one below that.
%/GBZenKai-Medium		<< /FileType /TrueType /Path (ukai.ttf) /CSI [(GB1) 4] >> ;
/GBZenKai-Medium		<< /FileType /TrueType /Path (wqy-zenhei.ttc) /CSI [(GB1) 4] >> ;
/MSungGBK-Light			<< /FileType /TrueType /Path (wqy-zenhei.ttc) /CSI [(GB1) 4] >> ;
/MSung-Light			/MSungGBK-Light ;
/MSung-Medium			/GBZenKai-Medium ;
/MHei-Medium			/BousungEG-Light-GB ;
/MKai-Medium			/GBZenKai-Medium ;
/STSong-Light			/BousungEG-Light-GB ;
/STFangsong-Light		/BousungEG-Light-GB ;
/STHeiti-Regular		/MSungGBK-Light ;
/STKaiti-Regular		/GBZenKai-Medium ;
/Adobe-GB1                      /BousungEG-Light-GB ;

%% cidfmap.zh_TW (traditional Chinese ; zh_TW)
%% To use this example, install the missing uming.ttf and ukai.ttf fonts, and
%% uncomment everything in the block below.  Also, fix the simplified Chinese
%% block as described above for "better output" so that there is no
%% interference (or comment the whole block out).
%/BousungEG-Light-GB		<< /FileType /TrueType /Path (uming.ttf) /CSI [(CNS1) 4] >> ;
%/ZenKai-Medium			<< /FileType /TrueType /Path (ukai.ttf) /CSI [(CNS1) 4] >> ;
%/ShanHeiSun-Light		<< /FileType /TrueType /Path (wqy-zenhei.ttc) /CSI [(CNS1) 4] >> ;
%/STSong-Light			/BousungEG-Light-GB ;
%/STKaiti-Regular		/ZenKai-Medium-GB ;
%/STFangsong-Light		/BousungEG-Light ;
%/STHeiti-Regular		/MHei-Medium ;
%/MSung-Light			/BousungEG-Light-GB ;
%/MSung-Medium			/ZenKai-Medium ;
%/MHei-Medium			/ShanHeiSun-Light ;
%/MKai-Medium			/ZenKai-Medium ;
%/Adobe-CNS1			/BousungEG-Light-GB ;

%% cidfmap.ja
/Sazanami-Gothic 		<< /FileType /TrueType /Path (sazanami-gothic.ttf) /CSI [(Japan1) 6] >> ;
/Sazanami-Gothic-Regular 	/Sazanami-Gothic ;
/Sazanami-Gothic-JaH 		<< /FileType /TrueType /Path (sazanami-gothic.ttf) /CSI [(Japan2) 0] >> ;
/Sazanami-Gothic-Regular-JaH 	/Sazanami-Gothic-JaH ;
/Sazanami-Mincho 		<< /FileType /TrueType /Path (sazanami-mincho.ttf) /CSI [(Japan1) 6] >> ;
/Sazanami-Mincho-Regular 	/Sazanami-Mincho ;
/Sazanami-Mincho-JaH 		<< /FileType /TrueType /Path (sazanami-mincho.ttf) /CSI [(Japan2) 0] >> ;
/Sazanami-Mincho-Regular-JaH 	/Sazanami-Mincho-JaH ;
/Ryumin-Light           	/Sazanami-Mincho        ;
/Ryumin-Light-H         	/Sazanami-Mincho        ;
/GothicBBB-Medium       	/Sazanami-Gothic        ;
/GothicBBB-Medium-V     	/Sazanami-Gothic        ;
/HeiseiMin-W3           	/Ryumin-Light           ;
/HeiseiKakuGo-W5        	/GothicBBB-Medium       ;
/HeiseiMin-W3-Acro      	/Ryumin-Light           ;
/HeiseiKaKuGo-W5-Acro   	/GothicBBB-Medium       ;
/Kochi-Gothic           	/Sazanami-Gothic        ;
/Kochi-Mincho           	/Sazanami-Mincho        ;
/WadaMin-Regular        	/Sazanami-Mincho        ;
/WadaMin-Bold           	/Sazanami-Mincho        ;
/WadaGo-Regular         	/Sazanami-Gothic        ;
/WadaGo-Bold            	/Sazanami-Gothic        ;
/Adobe-Japan1           	/Sazanami-Gothic        ;
/Adobe-Japan2           	/Sazanami-Gothic-JaH    ;

%% cidfmap.ko
%% To enable Korean printing support, install the fonts shown in the example
%% here and uncomment the block below:
%/Baekmuk-Batang		<< /FileType /TrueType /Path (batang.ttf) /CSI [(Korea1) 2] >> ;
%/Baekmuk-Batang-Regular	/Baekmuk-Batang ;
%/Baekmuk-Dotum			<< /FileType /TrueType /Path (dotum.ttf) /CSI [(Korea1) 2] >> ;
%/Baekmuk-Dotum-Regular		/Baekmuk-Dotum ;
%/Baekmuk-Gulim			<< /FileType /TrueType /Path (gulim.ttf) /CSI [(Korea1) 2] >> ;
%/Baekmuk-Gulim-Regular		/Baekmuk-Gulim ;
%/Baekmuk-Headline		<< /FileType /TrueType /Path (hline.ttf) /CSI [(Korea1) 2] >> ;
%/Baekmuk-Headline-Regular	/Baekmuk-Headline ;
%/Adobe-Korea1			/Baekmuk-Batang ;

%/BousungEG-Light-GB	<< /FileType /TrueType /Path (uming.ttf) /CSI [(GB1) 4] >> ;
%/GBZenKai-Medium	<< /FileType /TrueType /Path (ukai.ttf) /CSI [(GB1) 4] >> ;
%/MSungGBK-Light	/BousungEG-Light-GB ;
%/Adobe-GB1		/BousungEG-Light-GB ;

%/ZenKai-Medium		<< /FileType /TrueType /Path (ukai.ttf) /CSI [(CNS1) 4] >> ;
%/ShanHeiSun-Light	<< /FileType /TrueType /Path (uming.ttf) /CSI [(CNS1) 4] >> ;
%/Adobe-CNS1		/ShanHeiSun-Light ;