summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/cid_basefont.h
blob: bd3c814e7f35456adef6930680a0cc487fabca18 (plain)
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.

    Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata,
    the dvipdfmx project team.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/

#ifndef _CID_BASEFONT_H_
#define _CID_BASEFONT_H_

/* PLEASE SEND INFORMATION ON FONTS
 *
 * Those fonts are only for fixed-pitch glyphs (full-, half-, third-,
 * and quarter- widths). Glyph widths should be determined solely from
 * CID and CIDSystemInfo for those never-embedded fonts. Fixed-pitch
 * pre-rotated forms are not supported yet.
 *
 * Font dictionaly entry Subtype and CIDSystemInfo is mandatory here.
 * Font descriptor entry CapHeight, Ascent, Descent, ItalicAngle, Flags,
 * FontBBox, and StemV is required. However, CapHeight, Ascent, Descent,
 * and ItalicAngle is irrelevant for font-matching of CJK fonts. Panose
 * entry in Style dictionary may affect in Acrobat. Serif font should
 * have flag bit position 2 (2) set and all CJK fonts should also have
 * bit position 3 (4) set: CJK font serif -> Flags 6, sans serif -> 4.
 *
 * Please always supply DW entry in font dictionary although this can
 * be optional. PDF reference 1.2 had been described default value for
 * DW as 0 (correct value if 1000) and several versions of Mac OS X
 * implement so!
 */

const struct {
  const char *fontname;
  const char *fontdict;
  const char *descriptor;
} cid_basefont[] = {
  /*
   *  Fonts found in printers
   *
   *  Ryumin-Light and GothicBBB-Medium is often available in
   *  PostScript printer sold in Japan. There may be additonal
   *  Morisawa fonts such as ShinGo-Bold, but less common than
   *  those two fonts.
   */
  {
    "Ryumin-Light",
    "<< \
/Subtype/CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 2 >> \
/DW 1000 \
/W [\
  231   632 500 \
 8718 [500 500] \
]\
>>",
    "<< \
/CapHeight 709 /Ascent 723 /Descent -241 /StemV 69 \
/FontBBox [-170 -331 1024 903] \
/ItalicAngle 0 /Flags 6 \
/Style << /Panose <010502020300000000000000> >> \
>>"
  },
  {
    "GothicBBB-Medium",
    "<< \
/Subtype/CIDFontType0 \
/CIDSystemInfo <<  /Registry (Adobe) /Ordering (Japan1) /Supplement 2 >> \
/DW 1000 \
/W [\
  231   632 500 \
 8718 [500 500] \
]\
>>",
    "<< \
/CapHeight 737 /Ascent 752 /Descent -271 /StemV 99 \
/FontBBox [-174 -268 1001 944] \
/ItalicAngle 0 /Flags 4 \
/Style << /Panose <0801020b0500000000000000> >> \
>>"
  },

  /* Adobe Asian Font Packs for Acrobat Reader 4 */
  {
    "MHei-Medium-Acro",
    "<< \
/Subtype /CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 0 >> \
/DW 1000 \
/W [\
13648 13742 500 \
17603 [500] \
]\
>>",
    "<< \
/Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
/FontBBox [-45 -250 1015 887] \
/ItalicAngle 0 /Flags 4 /XHeight 553 \
/Style << /Panose <000001000600000000000000> >> \
>>"
  },
  {
    "MSung-Light-Acro",
    "<< \
/Subtype /CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 0 >> \
/DW 1000 \
/W [\
13648 13742 500 \
17603 [500] \
]\
>>",
    "<< \
/Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
/FontBBox [-160 -249 1015 888] \
/ItalicAngle 0 /Flags 6 /XHeight 553 \
/Style << /Panose <000000000400000000000000> >> \
>>"
  },
  {
    "STSong-Light-Acro",
    "<< \
/Subtype /CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 2 >> \
/DW 1000 \
/W [\
  814 939 500 \
 7716 [500] \
22355 [500 500] \
22357 [500] \
]\
>>",
    "<< \
/Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
/FontBBox [-25 -254 1000 880] \
/ItalicAngle 0 /Flags 6 /XHeight 599 \
/Style << /Panose <000000000400000000000000> >> \
>>"
  },
  {
    "STHeiti-Regular-Acro",
    "<< \
/Subtype /CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 1 >> \
/DW 1000 \
/W [\
  814 939 500 \
 7716 [500] \
22355 [500 500] \
22357 [500] \
]\
>>",
    "<< \
/Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
/FontBBox [-34 -250 1000 882] \
/ItalicAngle 0 /Flags 4 /XHeight 599 \
/Style << /Panose <000001000600000000000000> >> \
>>"
  },
  {
    "HeiseiKakuGo-W5-Acro",
    "<< \
/Subtype /CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement  2 >> \
/DW 1000 \
/W [\
  231   632 500 \
 8718 [500 500] \
]\
>>",
    "<< \
/Ascent 752 /CapHeight 737 /Descent -221 /StemV 114 \
/FontBBox [-92 -250 1010 922] \
/ItalicAngle 0 /Flags 4 /XHeight 553 \
/Style << /Panose <0801020b0600000000000000> >> \
>>"
  },
  {
    "HeiseiMin-W3-Acro",
    "<< \
/Subtype /CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 2 >> \
/DW 1000 \
/W [\
  231   632 500 \
 8718 [500 500] \
]\
>>",
    "<< \
/Ascent 723 /CapHeight 709 /Descent -241 /StemV 69 \
/FontBBox [-123 -257 1001 910] \
/ItalicAngle 0 /Flags 6 /XHeight 450 \
/Style << /Panose <010502020400000000000000> >> \
>>"
  },
  {
    "HYGoThic-Medium-Acro",
    "<< \
/Subtype /CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 1 >> \
/DW 1000 \
/W [\
   97 [500] \
 8094  8190 500 \
]\
>>",
    "<< \
/Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
/FontBBox [-6 -145 1003 880] \
/ItalicAngle 0 /Flags 4 /XHeight 553 \
/Style << /Panose <000001000600000000000000> >> \
>>"
  },
  {
    "HYSMyeongJo-Medium-Acro",
    "<< \
/Subtype /CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 1 >> \
/DW 1000 \
/W [\
   97 [500] \
 8094  8190 500 \
]\
>>",
    "<< \
/Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
/FontBBox [-0 -148 1001 880] \
/ItalicAngle 0 /Flags 6 /XHeight 553 \
/Style << /Panose <000000000600000000000000> >> \
>>"
  },

  /* Acrobat Reader 5 */
  {
    "MSungStd-Light-Acro",
    "<< \
/Subtype /CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 4 >> \
/DW 1000 \
/W [\
13648 13742 500 \
17603 [500] \
]\
>>",
    "<< \
/Ascent 880 /CapHeight 662 /Descent -120 /StemV 54 \
/FontBBox [-160 -249 1015 1071] \
/ItalicAngle 0 /Flags 6 \
/Style << /Panose <000000000400000000000000> >> \
>>"
  },
  {
    "STSongStd-Light-Acro",
    "<< \
/Subtype /CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 4 >> \
/DW 1000 \
/W [\
  814 939 500 \
 7716 [500] \
22355 [500 500] \
22357 [500] \
]\
>>",
    "<< \
/Ascent 880 /CapHeight 626 /Descent -120 /StemV 44 \
/FontBBox [-134 -254 1001 905] \
/ItalicAngle 0 /Flags 6 \
/Style << /Panose <000000000400000000000000> >> \
>>"
  },
  {
    "HYSMyeongJoStd-Medium-Acro",
    "<< \
/Subtype /CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 2 >> \
/DW 1000 \
/W [\
   97 [500] \
 8094  8190 500 \
]\
>>",
    "<< \
/Ascent 880 /CapHeight 720 /Descent -120 /StemV 60 \
/FontBBox [-28 -148 1001 880] \
/ItalicAngle 0 /Flags 6 \
/Style << /Panose <000000000600000000000000> >> \
>>"
  },

  /* Adobe Asian Font Packs for Adobe Reader 6 */

  /*
   * Widths of Adobe-CNS1-4
   *     1    95  proportional
   * 13648 13742  half-width
   * 17601 17601  proportional?
   * 17603 17603  half-width?
   */
  {
    "AdobeMingStd-Light-Acro",
    "<< \
/Subtype/CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 4 >> \
/DW 1000 \
/W [\
13648 13742 500 \
17603 [500] \
]\
>>",
    "<< \
/Ascent 880 /Descent -120 /StemV 48 /CapHeight 731 \
/FontBBox [-38 -121 1002 918] \
/ItalicAngle 0 /Flags 6 /XHeight 466 \
/Style << /Panose <000002020300000000000000> >> \
>>"
  },
  /*
   * Widths of Adobe-GB1-4
   *     1    95  proportional
   *   814   939  half-width
   *  7712  7715  proportional
   *  7716  7716  half-width space
   * 22353 22354  proportional
   * 22355 22357  half-width
   */
  {
    "AdobeSongStd-Light-Acro",
    "<< \
/Subtype/CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 4 >> \
/DW 1000 \
/W [\
  814 939 500 \
 7716 [500] \
22355 [500 500] \
22357 [500] \
]\
>>",
    "<< \
/Ascent 880 /Descent -120 /StemV 66 /CapHeight 626 \
/FontBBox [-134 -254 1001 905] \
/ItalicAngle 0 /Flags 6 /XHeight 416 \
/Style << /Panose <000002020300000000000000> >> \
>>"
  },
  /*
   * Widths of Adobe-Japan1-4
   *     1   230  proportional
   *   231   632  half-width
   *  9354  9737  proportional
   *  9738  9757  quater-width
   *  9758  9778  third-width
   * 12063 12087  half-width
   */
  {
    "KozMinPro-Regular-Acro",
    "<< \
/Subtype/CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 4 >> \
/DW 1000 \
/W [\
  231   632 500 \
 8718 [500 500] \
 9738  9757 250 \
 9758  9778 333 \
12063 12087 500 \
]\
>>",
    "<< \
/Ascent 880 /Descent -120 /StemV 86 /CapHeight 740 \
/FontBBox [-195 -272 1110 1075] \
/ItalicAngle 0 /Flags 6 /XHeight 502 \
/Style << /Panose <000002020400000000000000> >> \
>>"
  },
  {
    "KozGoPro-Medium-Acro",
    "<< \
/Subtype/CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering(Japan1) /Supplement 4 >> \
/DW 1000 \
/W [\
  231   632 500 \
 8718 [500 500] \
 9738  9757 250 \
 9758  9778 333 \
12063 12087 500 \
]\
>>",
    "<< \
/Ascent 880 /Descent -120 /StemV 99 /CapHeight 763 \
/FontBBox [-149 -374 1254 1008] \
/ItalicAngle 0 /Flags 4 /XHeight 549 \
/Style << /Panose <0000020b0700000000000000> >> \
>>"
  },
  /*
   * Widths of Adobe-Korea1-2
   *     1    95  proportional
   *    97    97  half-width?
   *  8094  8190  half-width
   */
  {
    "AdobeMyungjoStd-Medium-Acro",
    "<< \
/Subtype/CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 2 >> \
/DW 1000 \
/W [\
   97 [500] \
 8094  8190 500 \
]\
>>",
    "<< \
/Ascent 880 /Descent -120 /StemV 99 /CapHeight 719 \
/FontBBox [-28 -148 1001 880] \
/ItalicAngle 0 /Flags 6 /XHeight 478 \
/Style << /Panose <000002020600000000000000> >> \
>>"
  },

  /* Addition in Adobe Reader 7 */
  /*
   *  Adobe-Japan1-5
   *   15449-15911 proportional
   *   15912-15975 proportional
   *   15976-16192 proportional (vert)
   *   16469-16714 pre-rotated proportional
   *   16715-16778 pre-rotated proportional
   *  Adobe-Japan1-6
   *   20317-20371 proportional
   *   20372-20426 proportional
   *   20958       - (reserved for future use)
   *   20961-21015 pre-rotated proportional
   *   21016-21070 pre-rotated proportional
   */
  {
    "KozMinProVI-Regular",
    "<< \
/Subtype/CIDFontType0 \
/CIDSystemInfo << \
  /Registry (Adobe) \
  /Ordering (Japan1) \
  /Supplement 6 \
>> \
/DW 1000 \
/W [\
  231   632 500 \
  8718 [500 500] \
  9738  9757 250 \
  9758  9778 333 \
  12063 12087 500 \
]\
        >>",
    "<< \
/Ascent 880 /Descent -120 /StemV 86 /CapHeight 742 \
/FontBBox [-437 -340 1144 1317] \
/ItalicAngle 0 /Flags 6 /XHeight 503 \
/Style << \
  /Panose <000002020400000000000000> \
>> \
     >>"
  },

  /* Addition in Adobe Reader 8 */
  /*
   * Font information of AdobeHeitiStd-Regular.otf may not be correct!
   * Just copied the information of AdobeSongStd-Light.otf.
   */
  {
    "AdobeHeitiStd-Regular",
    "<< \
/Subtype/CIDFontType0 \
/CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 4 >> \
/DW 1000 \
/W [\
  814 939 500 \
 7716 [500] \
22355 [500 500] \
22357 [500] \
]\
>>",
    "<< \
/Ascent 880 /Descent -120 /StemV 66 /CapHeight 626 \
/FontBBox [-134 -254 1001 905] \
/ItalicAngle 0 /Flags 6 /XHeight 416 \
/Style << /Panose <000002020300000000000000> >> \
>>"
  },
  /* END */
  {NULL, NULL, NULL}
};

#endif /* _CID_BASEFONT_H_ */