Debian Codegraph @

texk/dvipdfm-x/cid_basefont.h

raw
1 /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
2
3 Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata,
4 the dvipdfmx project team.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19 */
20
21 #ifndef _CID_BASEFONT_H_
22 #define _CID_BASEFONT_H_
23
24 /* PLEASE SEND INFORMATION ON FONTS
25 *
26 * Those fonts are only for fixed-pitch glyphs (full-, half-, third-,
27 * and quarter- widths). Glyph widths should be determined solely from
28 * CID and CIDSystemInfo for those never-embedded fonts. Fixed-pitch
29 * pre-rotated forms are not supported yet.
30 *
31 * Font dictionaly entry Subtype and CIDSystemInfo is mandatory here.
32 * Font descriptor entry CapHeight, Ascent, Descent, ItalicAngle, Flags,
33 * FontBBox, and StemV is required. However, CapHeight, Ascent, Descent,
34 * and ItalicAngle is irrelevant for font-matching of CJK fonts. Panose
35 * entry in Style dictionary may affect in Acrobat. Serif font should
36 * have flag bit position 2 (2) set and all CJK fonts should also have
37 * bit position 3 (4) set: CJK font serif -> Flags 6, sans serif -> 4.
38 *
39 * Please always supply DW entry in font dictionary although this can
40 * be optional. PDF reference 1.2 had been described default value for
41 * DW as 0 (correct value if 1000) and several versions of Mac OS X
42 * implement so!
43 */
44
45 const struct {
46 const char *fontname;
47 const char *fontdict;
48 const char *descriptor;
49 } cid_basefont[] = {
50 /*
51 * Fonts found in printers
52 *
53 * Ryumin-Light and GothicBBB-Medium is often available in
54 * PostScript printer sold in Japan. There may be additonal
55 * Morisawa fonts such as ShinGo-Bold, but less common than
56 * those two fonts.
57 */
58 {
59 "Ryumin-Light",
60 "<< \
61 /Subtype/CIDFontType0 \
62 /CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 2 >> \
63 /DW 1000 \
64 /W [\
65 231 632 500 \
66 8718 [500 500] \
67 ]\
68 >>",
69 "<< \
70 /CapHeight 709 /Ascent 723 /Descent -241 /StemV 69 \
71 /FontBBox [-170 -331 1024 903] \
72 /ItalicAngle 0 /Flags 6 \
73 /Style << /Panose <010502020300000000000000> >> \
74 >>"
75 },
76 {
77 "GothicBBB-Medium",
78 "<< \
79 /Subtype/CIDFontType0 \
80 /CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 2 >> \
81 /DW 1000 \
82 /W [\
83 231 632 500 \
84 8718 [500 500] \
85 ]\
86 >>",
87 "<< \
88 /CapHeight 737 /Ascent 752 /Descent -271 /StemV 99 \
89 /FontBBox [-174 -268 1001 944] \
90 /ItalicAngle 0 /Flags 4 \
91 /Style << /Panose <0801020b0500000000000000> >> \
92 >>"
93 },
94
95 /* Adobe Asian Font Packs for Acrobat Reader 4 */
96 {
97 "MHei-Medium-Acro",
98 "<< \
99 /Subtype /CIDFontType0 \
100 /CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 0 >> \
101 /DW 1000 \
102 /W [\
103 13648 13742 500 \
104 17603 [500] \
105 ]\
106 >>",
107 "<< \
108 /Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
109 /FontBBox [-45 -250 1015 887] \
110 /ItalicAngle 0 /Flags 4 /XHeight 553 \
111 /Style << /Panose <000001000600000000000000> >> \
112 >>"
113 },
114 {
115 "MSung-Light-Acro",
116 "<< \
117 /Subtype /CIDFontType0 \
118 /CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 0 >> \
119 /DW 1000 \
120 /W [\
121 13648 13742 500 \
122 17603 [500] \
123 ]\
124 >>",
125 "<< \
126 /Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
127 /FontBBox [-160 -249 1015 888] \
128 /ItalicAngle 0 /Flags 6 /XHeight 553 \
129 /Style << /Panose <000000000400000000000000> >> \
130 >>"
131 },
132 {
133 "STSong-Light-Acro",
134 "<< \
135 /Subtype /CIDFontType0 \
136 /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 2 >> \
137 /DW 1000 \
138 /W [\
139 814 939 500 \
140 7716 [500] \
141 22355 [500 500] \
142 22357 [500] \
143 ]\
144 >>",
145 "<< \
146 /Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
147 /FontBBox [-25 -254 1000 880] \
148 /ItalicAngle 0 /Flags 6 /XHeight 599 \
149 /Style << /Panose <000000000400000000000000> >> \
150 >>"
151 },
152 {
153 "STHeiti-Regular-Acro",
154 "<< \
155 /Subtype /CIDFontType0 \
156 /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 1 >> \
157 /DW 1000 \
158 /W [\
159 814 939 500 \
160 7716 [500] \
161 22355 [500 500] \
162 22357 [500] \
163 ]\
164 >>",
165 "<< \
166 /Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
167 /FontBBox [-34 -250 1000 882] \
168 /ItalicAngle 0 /Flags 4 /XHeight 599 \
169 /Style << /Panose <000001000600000000000000> >> \
170 >>"
171 },
172 {
173 "HeiseiKakuGo-W5-Acro",
174 "<< \
175 /Subtype /CIDFontType0 \
176 /CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 2 >> \
177 /DW 1000 \
178 /W [\
179 231 632 500 \
180 8718 [500 500] \
181 ]\
182 >>",
183 "<< \
184 /Ascent 752 /CapHeight 737 /Descent -221 /StemV 114 \
185 /FontBBox [-92 -250 1010 922] \
186 /ItalicAngle 0 /Flags 4 /XHeight 553 \
187 /Style << /Panose <0801020b0600000000000000> >> \
188 >>"
189 },
190 {
191 "HeiseiMin-W3-Acro",
192 "<< \
193 /Subtype /CIDFontType0 \
194 /CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 2 >> \
195 /DW 1000 \
196 /W [\
197 231 632 500 \
198 8718 [500 500] \
199 ]\
200 >>",
201 "<< \
202 /Ascent 723 /CapHeight 709 /Descent -241 /StemV 69 \
203 /FontBBox [-123 -257 1001 910] \
204 /ItalicAngle 0 /Flags 6 /XHeight 450 \
205 /Style << /Panose <010502020400000000000000> >> \
206 >>"
207 },
208 {
209 "HYGoThic-Medium-Acro",
210 "<< \
211 /Subtype /CIDFontType0 \
212 /CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 1 >> \
213 /DW 1000 \
214 /W [\
215 97 [500] \
216 8094 8190 500 \
217 ]\
218 >>",
219 "<< \
220 /Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
221 /FontBBox [-6 -145 1003 880] \
222 /ItalicAngle 0 /Flags 4 /XHeight 553 \
223 /Style << /Panose <000001000600000000000000> >> \
224 >>"
225 },
226 {
227 "HYSMyeongJo-Medium-Acro",
228 "<< \
229 /Subtype /CIDFontType0 \
230 /CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 1 >> \
231 /DW 1000 \
232 /W [\
233 97 [500] \
234 8094 8190 500 \
235 ]\
236 >>",
237 "<< \
238 /Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
239 /FontBBox [-0 -148 1001 880] \
240 /ItalicAngle 0 /Flags 6 /XHeight 553 \
241 /Style << /Panose <000000000600000000000000> >> \
242 >>"
243 },
244
245 /* Acrobat Reader 5 */
246 {
247 "MSungStd-Light-Acro",
248 "<< \
249 /Subtype /CIDFontType0 \
250 /CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 4 >> \
251 /DW 1000 \
252 /W [\
253 13648 13742 500 \
254 17603 [500] \
255 ]\
256 >>",
257 "<< \
258 /Ascent 880 /CapHeight 662 /Descent -120 /StemV 54 \
259 /FontBBox [-160 -249 1015 1071] \
260 /ItalicAngle 0 /Flags 6 \
261 /Style << /Panose <000000000400000000000000> >> \
262 >>"
263 },
264 {
265 "STSongStd-Light-Acro",
266 "<< \
267 /Subtype /CIDFontType0 \
268 /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 4 >> \
269 /DW 1000 \
270 /W [\
271 814 939 500 \
272 7716 [500] \
273 22355 [500 500] \
274 22357 [500] \
275 ]\
276 >>",
277 "<< \
278 /Ascent 880 /CapHeight 626 /Descent -120 /StemV 44 \
279 /FontBBox [-134 -254 1001 905] \
280 /ItalicAngle 0 /Flags 6 \
281 /Style << /Panose <000000000400000000000000> >> \
282 >>"
283 },
284 {
285 "HYSMyeongJoStd-Medium-Acro",
286 "<< \
287 /Subtype /CIDFontType0 \
288 /CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 2 >> \
289 /DW 1000 \
290 /W [\
291 97 [500] \
292 8094 8190 500 \
293 ]\
294 >>",
295 "<< \
296 /Ascent 880 /CapHeight 720 /Descent -120 /StemV 60 \
297 /FontBBox [-28 -148 1001 880] \
298 /ItalicAngle 0 /Flags 6 \
299 /Style << /Panose <000000000600000000000000> >> \
300 >>"
301 },
302
303 /* Adobe Asian Font Packs for Adobe Reader 6 */
304
305 /*
306 * Widths of Adobe-CNS1-4
307 * 1 95 proportional
308 * 13648 13742 half-width
309 * 17601 17601 proportional?
310 * 17603 17603 half-width?
311 */
312 {
313 "AdobeMingStd-Light-Acro",
314 "<< \
315 /Subtype/CIDFontType0 \
316 /CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 4 >> \
317 /DW 1000 \
318 /W [\
319 13648 13742 500 \
320 17603 [500] \
321 ]\
322 >>",
323 "<< \
324 /Ascent 880 /Descent -120 /StemV 48 /CapHeight 731 \
325 /FontBBox [-38 -121 1002 918] \
326 /ItalicAngle 0 /Flags 6 /XHeight 466 \
327 /Style << /Panose <000002020300000000000000> >> \
328 >>"
329 },
330 /*
331 * Widths of Adobe-GB1-4
332 * 1 95 proportional
333 * 814 939 half-width
334 * 7712 7715 proportional
335 * 7716 7716 half-width space
336 * 22353 22354 proportional
337 * 22355 22357 half-width
338 */
339 {
340 "AdobeSongStd-Light-Acro",
341 "<< \
342 /Subtype/CIDFontType0 \
343 /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 4 >> \
344 /DW 1000 \
345 /W [\
346 814 939 500 \
347 7716 [500] \
348 22355 [500 500] \
349 22357 [500] \
350 ]\
351 >>",
352 "<< \
353 /Ascent 880 /Descent -120 /StemV 66 /CapHeight 626 \
354 /FontBBox [-134 -254 1001 905] \
355 /ItalicAngle 0 /Flags 6 /XHeight 416 \
356 /Style << /Panose <000002020300000000000000> >> \
357 >>"
358 },
359 /*
360 * Widths of Adobe-Japan1-4
361 * 1 230 proportional
362 * 231 632 half-width
363 * 9354 9737 proportional
364 * 9738 9757 quater-width
365 * 9758 9778 third-width
366 * 12063 12087 half-width
367 */
368 {
369 "KozMinPro-Regular-Acro",
370 "<< \
371 /Subtype/CIDFontType0 \
372 /CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 4 >> \
373 /DW 1000 \
374 /W [\
375 231 632 500 \
376 8718 [500 500] \
377 9738 9757 250 \
378 9758 9778 333 \
379 12063 12087 500 \
380 ]\
381 >>",
382 "<< \
383 /Ascent 880 /Descent -120 /StemV 86 /CapHeight 740 \
384 /FontBBox [-195 -272 1110 1075] \
385 /ItalicAngle 0 /Flags 6 /XHeight 502 \
386 /Style << /Panose <000002020400000000000000> >> \
387 >>"
388 },
389 {
390 "KozGoPro-Medium-Acro",
391 "<< \
392 /Subtype/CIDFontType0 \
393 /CIDSystemInfo << /Registry (Adobe) /Ordering(Japan1) /Supplement 4 >> \
394 /DW 1000 \
395 /W [\
396 231 632 500 \
397 8718 [500 500] \
398 9738 9757 250 \
399 9758 9778 333 \
400 12063 12087 500 \
401 ]\
402 >>",
403 "<< \
404 /Ascent 880 /Descent -120 /StemV 99 /CapHeight 763 \
405 /FontBBox [-149 -374 1254 1008] \
406 /ItalicAngle 0 /Flags 4 /XHeight 549 \
407 /Style << /Panose <0000020b0700000000000000> >> \
408 >>"
409 },
410 /*
411 * Widths of Adobe-Korea1-2
412 * 1 95 proportional
413 * 97 97 half-width?
414 * 8094 8190 half-width
415 */
416 {
417 "AdobeMyungjoStd-Medium-Acro",
418 "<< \
419 /Subtype/CIDFontType0 \
420 /CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 2 >> \
421 /DW 1000 \
422 /W [\
423 97 [500] \
424 8094 8190 500 \
425 ]\
426 >>",
427 "<< \
428 /Ascent 880 /Descent -120 /StemV 99 /CapHeight 719 \
429 /FontBBox [-28 -148 1001 880] \
430 /ItalicAngle 0 /Flags 6 /XHeight 478 \
431 /Style << /Panose <000002020600000000000000> >> \
432 >>"
433 },
434
435 /* Addition in Adobe Reader 7 */
436 /*
437 * Adobe-Japan1-5
438 * 15449-15911 proportional
439 * 15912-15975 proportional
440 * 15976-16192 proportional (vert)
441 * 16469-16714 pre-rotated proportional
442 * 16715-16778 pre-rotated proportional
443 * Adobe-Japan1-6
444 * 20317-20371 proportional
445 * 20372-20426 proportional
446 * 20958 - (reserved for future use)
447 * 20961-21015 pre-rotated proportional
448 * 21016-21070 pre-rotated proportional
449 */
450 {
451 "KozMinProVI-Regular",
452 "<< \
453 /Subtype/CIDFontType0 \
454 /CIDSystemInfo << \
455 /Registry (Adobe) \
456 /Ordering (Japan1) \
457 /Supplement 6 \
458 >> \
459 /DW 1000 \
460 /W [\
461 231 632 500 \
462 8718 [500 500] \
463 9738 9757 250 \
464 9758 9778 333 \
465 12063 12087 500 \
466 ]\
467 >>",
468 "<< \
469 /Ascent 880 /Descent -120 /StemV 86 /CapHeight 742 \
470 /FontBBox [-437 -340 1144 1317] \
471 /ItalicAngle 0 /Flags 6 /XHeight 503 \
472 /Style << \
473 /Panose <000002020400000000000000> \
474 >> \
475 >>"
476 },
477
478 /* Addition in Adobe Reader 8 */
479 /*
480 * Font information of AdobeHeitiStd-Regular.otf may not be correct!
481 * Just copied the information of AdobeSongStd-Light.otf.
482 */
483 {
484 "AdobeHeitiStd-Regular",
485 "<< \
486 /Subtype/CIDFontType0 \
487 /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 4 >> \
488 /DW 1000 \
489 /W [\
490 814 939 500 \
491 7716 [500] \
492 22355 [500 500] \
493 22357 [500] \
494 ]\
495 >>",
496 "<< \
497 /Ascent 880 /Descent -120 /StemV 66 /CapHeight 626 \
498 /FontBBox [-134 -254 1001 905] \
499 /ItalicAngle 0 /Flags 6 /XHeight 416 \
500 /Style << /Panose <000002020300000000000000> >> \
501 >>"
502 },
503 /* END */
504 {NULL, NULL, NULL}
505 };
506
507 #endif /* _CID_BASEFONT_H_ */