hpdf 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. data/History +57 -0
  2. data/License +25 -0
  3. data/README +165 -0
  4. data/examples/arc_demo.rb +82 -0
  5. data/examples/demo.rb +92 -0
  6. data/examples/encryption.rb +41 -0
  7. data/examples/ext_gstater_demo.rb +171 -0
  8. data/examples/font_demo.rb +67 -0
  9. data/examples/jpfont_demo.rb +122 -0
  10. data/examples/line_demo.rb +301 -0
  11. data/examples/slide_show_demo.rb +139 -0
  12. data/examples/text_demo2.rb +189 -0
  13. data/examples/ttfont_demo.rb +106 -0
  14. data/ext/extconf.rb +6 -0
  15. data/ext/hpdf.c +3779 -0
  16. data/ext/hpdf_annotation.c +415 -0
  17. data/ext/hpdf_array.c +344 -0
  18. data/ext/hpdf_binary.c +117 -0
  19. data/ext/hpdf_boolean.c +47 -0
  20. data/ext/hpdf_catalog.c +354 -0
  21. data/ext/hpdf_destination.c +339 -0
  22. data/ext/hpdf_dict.c +488 -0
  23. data/ext/hpdf_doc.c +2020 -0
  24. data/ext/hpdf_doc_png.c +137 -0
  25. data/ext/hpdf_encoder.c +2991 -0
  26. data/ext/hpdf_encoder_cns.c +36359 -0
  27. data/ext/hpdf_encoder_cnt.c +15307 -0
  28. data/ext/hpdf_encoder_jp.c +16125 -0
  29. data/ext/hpdf_encoder_kr.c +27978 -0
  30. data/ext/hpdf_encrypt.c +632 -0
  31. data/ext/hpdf_encryptdict.c +240 -0
  32. data/ext/hpdf_error.c +114 -0
  33. data/ext/hpdf_ext_gstate.c +150 -0
  34. data/ext/hpdf_font.c +229 -0
  35. data/ext/hpdf_font_cid.c +1030 -0
  36. data/ext/hpdf_font_tt.c +406 -0
  37. data/ext/hpdf_font_type1.c +391 -0
  38. data/ext/hpdf_fontdef.c +56 -0
  39. data/ext/hpdf_fontdef_base14.c +4506 -0
  40. data/ext/hpdf_fontdef_cid.c +194 -0
  41. data/ext/hpdf_fontdef_cns.c +471 -0
  42. data/ext/hpdf_fontdef_cnt.c +250 -0
  43. data/ext/hpdf_fontdef_jp.c +1904 -0
  44. data/ext/hpdf_fontdef_kr.c +1572 -0
  45. data/ext/hpdf_fontdef_tt.c +2230 -0
  46. data/ext/hpdf_fontdef_type1.c +524 -0
  47. data/ext/hpdf_gstate.c +119 -0
  48. data/ext/hpdf_image.c +568 -0
  49. data/ext/hpdf_image_png.c +424 -0
  50. data/ext/hpdf_info.c +164 -0
  51. data/ext/hpdf_list.c +333 -0
  52. data/ext/hpdf_mmgr.c +243 -0
  53. data/ext/hpdf_name.c +71 -0
  54. data/ext/hpdf_null.c +31 -0
  55. data/ext/hpdf_number.c +49 -0
  56. data/ext/hpdf_objects.c +172 -0
  57. data/ext/hpdf_outline.c +329 -0
  58. data/ext/hpdf_page_label.c +74 -0
  59. data/ext/hpdf_page_operator.c +2764 -0
  60. data/ext/hpdf_pages.c +1508 -0
  61. data/ext/hpdf_real.c +61 -0
  62. data/ext/hpdf_streams.c +1435 -0
  63. data/ext/hpdf_string.c +189 -0
  64. data/ext/hpdf_utils.c +438 -0
  65. data/ext/hpdf_xref.c +348 -0
  66. data/ext/include/hpdf.h +1227 -0
  67. data/ext/include/hpdf_annotation.h +74 -0
  68. data/ext/include/hpdf_catalog.h +81 -0
  69. data/ext/include/hpdf_conf.h +76 -0
  70. data/ext/include/hpdf_consts.h +549 -0
  71. data/ext/include/hpdf_destination.h +41 -0
  72. data/ext/include/hpdf_doc.h +159 -0
  73. data/ext/include/hpdf_encoder.h +311 -0
  74. data/ext/include/hpdf_encrypt.h +156 -0
  75. data/ext/include/hpdf_encryptdict.h +66 -0
  76. data/ext/include/hpdf_error.h +201 -0
  77. data/ext/include/hpdf_ext_gstate.h +38 -0
  78. data/ext/include/hpdf_font.h +112 -0
  79. data/ext/include/hpdf_fontdef.h +403 -0
  80. data/ext/include/hpdf_gstate.h +80 -0
  81. data/ext/include/hpdf_image.h +72 -0
  82. data/ext/include/hpdf_info.h +48 -0
  83. data/ext/include/hpdf_list.h +85 -0
  84. data/ext/include/hpdf_mmgr.h +82 -0
  85. data/ext/include/hpdf_objects.h +587 -0
  86. data/ext/include/hpdf_outline.h +74 -0
  87. data/ext/include/hpdf_page_label.h +35 -0
  88. data/ext/include/hpdf_pages.h +128 -0
  89. data/ext/include/hpdf_streams.h +276 -0
  90. data/ext/include/hpdf_types.h +488 -0
  91. data/ext/include/hpdf_utils.h +161 -0
  92. data/tests/arc_demo.rb +82 -0
  93. data/tests/demo.rb +91 -0
  94. data/tests/encryption.rb +41 -0
  95. data/tests/ext_gstater_demo.rb +171 -0
  96. data/tests/font_demo.rb +67 -0
  97. data/tests/line_demo.rb +301 -0
  98. data/tests/slide_show_demo.rb +139 -0
  99. data/tests/test_all_examples.rb +31 -0
  100. data/tests/text_demo2.rb +189 -0
  101. metadata +147 -0
@@ -0,0 +1,250 @@
1
+ /*
2
+ * << Haru Free PDF Library 2.0.0 >> -- hpdf_fontdef_cnt.c
3
+ *
4
+ * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
5
+ *
6
+ * Permission to use, copy, modify, distribute and sell this software
7
+ * and its documentation for any purpose is hereby granted without fee,
8
+ * provided that the above copyright notice appear in all copies and
9
+ * that both that copyright notice and this permission notice appear
10
+ * in supporting documentation.
11
+ * It is provided "as is" without express or implied warranty.
12
+ *
13
+ */
14
+
15
+ #include "hpdf_conf.h"
16
+ #include "hpdf_utils.h"
17
+ #include "hpdf.h"
18
+
19
+ /*----------------------------------------------------------------------------*/
20
+
21
+ static const HPDF_CID_Width MING_LIU_W_ARRAY[] = {
22
+ {668, 500},
23
+ {669, 500},
24
+ {670, 500},
25
+ {671, 500},
26
+ {672, 500},
27
+ {673, 500},
28
+ {674, 500},
29
+ {675, 500},
30
+ {676, 500},
31
+ {677, 500},
32
+ {678, 500},
33
+ {679, 500},
34
+ {680, 500},
35
+ {681, 500},
36
+ {682, 500},
37
+ {683, 500},
38
+ {684, 500},
39
+ {685, 500},
40
+ {686, 500},
41
+ {687, 500},
42
+ {688, 500},
43
+ {689, 500},
44
+ {690, 500},
45
+ {691, 500},
46
+ {692, 500},
47
+ {693, 500},
48
+ {694, 500},
49
+ {696, 500},
50
+ {697, 500},
51
+ {698, 500},
52
+ {699, 500},
53
+ {814, 500},
54
+ {815, 500},
55
+ {816, 500},
56
+ {817, 500},
57
+ {818, 500},
58
+ {819, 500},
59
+ {820, 500},
60
+ {821, 500},
61
+ {822, 500},
62
+ {823, 500},
63
+ {824, 500},
64
+ {825, 500},
65
+ {826, 500},
66
+ {827, 500},
67
+ {828, 500},
68
+ {829, 500},
69
+ {830, 500},
70
+ {831, 500},
71
+ {832, 500},
72
+ {833, 500},
73
+ {834, 500},
74
+ {835, 500},
75
+ {836, 500},
76
+ {837, 500},
77
+ {838, 500},
78
+ {839, 500},
79
+ {840, 500},
80
+ {841, 500},
81
+ {842, 500},
82
+ {843, 500},
83
+ {844, 500},
84
+ {845, 500},
85
+ {846, 500},
86
+ {847, 500},
87
+ {848, 500},
88
+ {849, 500},
89
+ {850, 500},
90
+ {851, 500},
91
+ {852, 500},
92
+ {853, 500},
93
+ {854, 500},
94
+ {855, 500},
95
+ {856, 500},
96
+ {857, 500},
97
+ {858, 500},
98
+ {859, 500},
99
+ {860, 500},
100
+ {861, 500},
101
+ {862, 500},
102
+ {863, 500},
103
+ {864, 500},
104
+ {865, 500},
105
+ {866, 500},
106
+ {867, 500},
107
+ {868, 500},
108
+ {869, 500},
109
+ {870, 500},
110
+ {871, 500},
111
+ {872, 500},
112
+ {873, 500},
113
+ {874, 500},
114
+ {875, 500},
115
+ {876, 500},
116
+ {877, 500},
117
+ {878, 500},
118
+ {879, 500},
119
+ {880, 500},
120
+ {881, 500},
121
+ {882, 500},
122
+ {883, 500},
123
+ {884, 500},
124
+ {885, 500},
125
+ {886, 500},
126
+ {887, 500},
127
+ {888, 500},
128
+ {889, 500},
129
+ {890, 500},
130
+ {891, 500},
131
+ {892, 500},
132
+ {893, 500},
133
+ {894, 500},
134
+ {895, 500},
135
+ {896, 500},
136
+ {897, 500},
137
+ {898, 500},
138
+ {899, 500},
139
+ {900, 500},
140
+ {901, 500},
141
+ {902, 500},
142
+ {903, 500},
143
+ {904, 500},
144
+ {905, 500},
145
+ {906, 500},
146
+ {907, 500},
147
+ {7716, 500},
148
+ {0xFFFF, 0}
149
+ };
150
+
151
+
152
+ static HPDF_STATUS
153
+ MingLiU_Init (HPDF_FontDef fontdef)
154
+ {
155
+ HPDF_STATUS ret;
156
+
157
+ HPDF_PTRACE ((" HPDF_FontDef_MingLiU_Init\n"));
158
+
159
+ fontdef->ascent = 800;
160
+ fontdef->descent = -199;
161
+ fontdef->cap_height = 769;
162
+ fontdef->font_bbox = HPDF_ToBox(0, -199, 1000, 800);
163
+ fontdef->flags = HPDF_FONT_SYMBOLIC + HPDF_FONT_FIXED_WIDTH +
164
+ HPDF_FONT_SERIF;
165
+ fontdef->italic_angle = 0;
166
+ fontdef->stemv = 78;
167
+ if ((ret = HPDF_CIDFontDef_AddWidth (fontdef, MING_LIU_W_ARRAY)) !=
168
+ HPDF_OK) {
169
+ return ret;
170
+ }
171
+
172
+ fontdef->type = HPDF_FONTDEF_TYPE_CID;
173
+ fontdef->valid = HPDF_TRUE;
174
+
175
+ return HPDF_OK;
176
+ }
177
+
178
+
179
+ static HPDF_STATUS
180
+ MingLiU_Bold_Init (HPDF_FontDef fontdef)
181
+ {
182
+ HPDF_STATUS ret = MingLiU_Init (fontdef);
183
+
184
+ if (ret != HPDF_OK)
185
+ return ret;
186
+
187
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_TRUE, HPDF_FALSE);
188
+ }
189
+
190
+
191
+ static HPDF_STATUS
192
+ MingLiU_Italic_Init (HPDF_FontDef fontdef)
193
+ {
194
+ HPDF_STATUS ret = MingLiU_Init (fontdef);
195
+
196
+ if (ret != HPDF_OK)
197
+ return ret;
198
+
199
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_FALSE, HPDF_TRUE);
200
+ }
201
+
202
+ static HPDF_STATUS
203
+ MingLiU_BoldItalic_Init (HPDF_FontDef fontdef)
204
+ {
205
+ HPDF_STATUS ret = MingLiU_Init (fontdef);
206
+
207
+ if (ret != HPDF_OK)
208
+ return ret;
209
+
210
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_TRUE, HPDF_TRUE);
211
+ }
212
+
213
+
214
+ HPDF_EXPORT(HPDF_STATUS)
215
+ HPDF_UseCNTFonts (HPDF_Doc pdf)
216
+ {
217
+ HPDF_FontDef fontdef;
218
+ HPDF_STATUS ret;
219
+
220
+ if (!HPDF_HasDoc (pdf))
221
+ return HPDF_INVALID_DOCUMENT;
222
+
223
+ /* MingLiU */
224
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MingLiU",
225
+ MingLiU_Init);
226
+
227
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
228
+ return ret;
229
+
230
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MingLiU,Bold",
231
+ MingLiU_Bold_Init);
232
+
233
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
234
+ return ret;
235
+
236
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MingLiU,Italic",
237
+ MingLiU_Italic_Init);
238
+
239
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
240
+ return ret;
241
+
242
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MingLiU,BoldItalic",
243
+ MingLiU_BoldItalic_Init);
244
+
245
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
246
+ return ret;
247
+
248
+ return HPDF_OK;
249
+ }
250
+
@@ -0,0 +1,1904 @@
1
+ /*
2
+ * << Haru Free PDF Library 2.0.0 >> -- hpdf_fontdef_jp.c
3
+ *
4
+ * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
5
+ *
6
+ * Permission to use, copy, modify, distribute and sell this software
7
+ * and its documentation for any purpose is hereby granted without fee,
8
+ * provided that the above copyright notice appear in all copies and
9
+ * that both that copyright notice and this permission notice appear
10
+ * in supporting documentation.
11
+ * It is provided "as is" without express or implied warranty.
12
+ *
13
+ */
14
+
15
+ #include "hpdf_conf.h"
16
+ #include "hpdf_utils.h"
17
+ #include "hpdf.h"
18
+
19
+ /*----------------------------------------------------------------------------*/
20
+
21
+ static const HPDF_CID_Width MS_Gothic_W_ARRAY[] = {
22
+ {1, 500},
23
+ {2, 500},
24
+ {3, 500},
25
+ {4, 500},
26
+ {5, 500},
27
+ {6, 500},
28
+ {7, 500},
29
+ {8, 500},
30
+ {9, 500},
31
+ {10, 500},
32
+ {11, 500},
33
+ {12, 500},
34
+ {13, 500},
35
+ {14, 500},
36
+ {15, 500},
37
+ {16, 500},
38
+ {17, 500},
39
+ {18, 500},
40
+ {19, 500},
41
+ {20, 500},
42
+ {21, 500},
43
+ {22, 500},
44
+ {23, 500},
45
+ {24, 500},
46
+ {25, 500},
47
+ {26, 500},
48
+ {27, 500},
49
+ {28, 500},
50
+ {29, 500},
51
+ {30, 500},
52
+ {31, 500},
53
+ {32, 500},
54
+ {33, 500},
55
+ {34, 500},
56
+ {35, 500},
57
+ {36, 500},
58
+ {37, 500},
59
+ {38, 500},
60
+ {39, 500},
61
+ {40, 500},
62
+ {41, 500},
63
+ {42, 500},
64
+ {43, 500},
65
+ {44, 500},
66
+ {45, 500},
67
+ {46, 500},
68
+ {47, 500},
69
+ {48, 500},
70
+ {49, 500},
71
+ {50, 500},
72
+ {51, 500},
73
+ {52, 500},
74
+ {53, 500},
75
+ {54, 500},
76
+ {55, 500},
77
+ {56, 500},
78
+ {57, 500},
79
+ {58, 500},
80
+ {59, 500},
81
+ {60, 500},
82
+ {61, 500},
83
+ {62, 500},
84
+ {63, 500},
85
+ {64, 500},
86
+ {65, 500},
87
+ {66, 500},
88
+ {67, 500},
89
+ {68, 500},
90
+ {69, 500},
91
+ {70, 500},
92
+ {71, 500},
93
+ {72, 500},
94
+ {73, 500},
95
+ {74, 500},
96
+ {75, 500},
97
+ {76, 500},
98
+ {77, 500},
99
+ {78, 500},
100
+ {79, 500},
101
+ {80, 500},
102
+ {81, 500},
103
+ {82, 500},
104
+ {83, 500},
105
+ {84, 500},
106
+ {85, 500},
107
+ {86, 500},
108
+ {87, 500},
109
+ {88, 500},
110
+ {89, 500},
111
+ {90, 500},
112
+ {91, 500},
113
+ {92, 500},
114
+ {93, 500},
115
+ {94, 500},
116
+ {95, 500},
117
+ {231, 500},
118
+ {232, 500},
119
+ {233, 500},
120
+ {234, 500},
121
+ {235, 500},
122
+ {236, 500},
123
+ {237, 500},
124
+ {238, 500},
125
+ {239, 500},
126
+ {240, 500},
127
+ {241, 500},
128
+ {242, 500},
129
+ {243, 500},
130
+ {244, 500},
131
+ {245, 500},
132
+ {246, 500},
133
+ {247, 500},
134
+ {248, 500},
135
+ {249, 500},
136
+ {250, 500},
137
+ {251, 500},
138
+ {252, 500},
139
+ {253, 500},
140
+ {254, 500},
141
+ {255, 500},
142
+ {256, 500},
143
+ {257, 500},
144
+ {258, 500},
145
+ {259, 500},
146
+ {260, 500},
147
+ {261, 500},
148
+ {262, 500},
149
+ {263, 500},
150
+ {264, 500},
151
+ {265, 500},
152
+ {266, 500},
153
+ {267, 500},
154
+ {268, 500},
155
+ {269, 500},
156
+ {270, 500},
157
+ {271, 500},
158
+ {272, 500},
159
+ {273, 500},
160
+ {274, 500},
161
+ {275, 500},
162
+ {276, 500},
163
+ {277, 500},
164
+ {278, 500},
165
+ {279, 500},
166
+ {280, 500},
167
+ {281, 500},
168
+ {282, 500},
169
+ {283, 500},
170
+ {284, 500},
171
+ {285, 500},
172
+ {286, 500},
173
+ {287, 500},
174
+ {288, 500},
175
+ {289, 500},
176
+ {290, 500},
177
+ {291, 500},
178
+ {292, 500},
179
+ {293, 500},
180
+ {294, 500},
181
+ {295, 500},
182
+ {296, 500},
183
+ {297, 500},
184
+ {298, 500},
185
+ {299, 500},
186
+ {300, 500},
187
+ {301, 500},
188
+ {302, 500},
189
+ {303, 500},
190
+ {304, 500},
191
+ {305, 500},
192
+ {306, 500},
193
+ {307, 500},
194
+ {308, 500},
195
+ {309, 500},
196
+ {310, 500},
197
+ {311, 500},
198
+ {312, 500},
199
+ {313, 500},
200
+ {314, 500},
201
+ {315, 500},
202
+ {316, 500},
203
+ {317, 500},
204
+ {318, 500},
205
+ {319, 500},
206
+ {320, 500},
207
+ {321, 500},
208
+ {322, 500},
209
+ {323, 500},
210
+ {324, 500},
211
+ {327, 500},
212
+ {328, 500},
213
+ {329, 500},
214
+ {330, 500},
215
+ {331, 500},
216
+ {332, 500},
217
+ {333, 500},
218
+ {334, 500},
219
+ {335, 500},
220
+ {336, 500},
221
+ {337, 500},
222
+ {338, 500},
223
+ {339, 500},
224
+ {340, 500},
225
+ {341, 500},
226
+ {342, 500},
227
+ {343, 500},
228
+ {344, 500},
229
+ {345, 500},
230
+ {346, 500},
231
+ {347, 500},
232
+ {348, 500},
233
+ {349, 500},
234
+ {350, 500},
235
+ {351, 500},
236
+ {352, 500},
237
+ {353, 500},
238
+ {354, 500},
239
+ {355, 500},
240
+ {356, 500},
241
+ {357, 500},
242
+ {358, 500},
243
+ {359, 500},
244
+ {360, 500},
245
+ {361, 500},
246
+ {362, 500},
247
+ {363, 500},
248
+ {364, 500},
249
+ {365, 500},
250
+ {366, 500},
251
+ {367, 500},
252
+ {368, 500},
253
+ {369, 500},
254
+ {370, 500},
255
+ {371, 500},
256
+ {372, 500},
257
+ {373, 500},
258
+ {374, 500},
259
+ {375, 500},
260
+ {376, 500},
261
+ {377, 500},
262
+ {378, 500},
263
+ {379, 500},
264
+ {380, 500},
265
+ {381, 500},
266
+ {382, 500},
267
+ {383, 500},
268
+ {384, 500},
269
+ {385, 500},
270
+ {386, 500},
271
+ {387, 500},
272
+ {388, 500},
273
+ {389, 500},
274
+ {631, 500},
275
+ {0xFFFF, 0}
276
+ };
277
+
278
+
279
+ static const HPDF_CID_Width MS_PGothic_W_ARRAY[] = {
280
+ {1, 304},
281
+ {2, 218},
282
+ {3, 500},
283
+ {4, 500},
284
+ {5, 500},
285
+ {6, 500},
286
+ {7, 593},
287
+ {8, 203},
288
+ {9, 304},
289
+ {10, 304},
290
+ {11, 500},
291
+ {12, 500},
292
+ {13, 203},
293
+ {14, 500},
294
+ {15, 203},
295
+ {16, 500},
296
+ {17, 500},
297
+ {18, 500},
298
+ {19, 500},
299
+ {20, 500},
300
+ {21, 500},
301
+ {22, 500},
302
+ {23, 500},
303
+ {24, 500},
304
+ {25, 500},
305
+ {26, 500},
306
+ {27, 203},
307
+ {28, 203},
308
+ {29, 500},
309
+ {30, 500},
310
+ {31, 500},
311
+ {32, 453},
312
+ {33, 667},
313
+ {34, 632},
314
+ {35, 636},
315
+ {36, 664},
316
+ {37, 648},
317
+ {38, 566},
318
+ {39, 550},
319
+ {40, 679},
320
+ {41, 640},
321
+ {42, 246},
322
+ {43, 542},
323
+ {44, 597},
324
+ {45, 539},
325
+ {46, 742},
326
+ {47, 640},
327
+ {48, 707},
328
+ {49, 617},
329
+ {50, 707},
330
+ {51, 625},
331
+ {52, 601},
332
+ {53, 589},
333
+ {54, 640},
334
+ {55, 632},
335
+ {56, 742},
336
+ {57, 601},
337
+ {58, 589},
338
+ {59, 566},
339
+ {60, 335},
340
+ {61, 503},
341
+ {62, 335},
342
+ {63, 414},
343
+ {64, 304},
344
+ {65, 414},
345
+ {66, 476},
346
+ {67, 496},
347
+ {68, 500},
348
+ {69, 496},
349
+ {70, 500},
350
+ {71, 304},
351
+ {72, 460},
352
+ {73, 500},
353
+ {74, 210},
354
+ {75, 218},
355
+ {76, 460},
356
+ {77, 210},
357
+ {78, 734},
358
+ {79, 500},
359
+ {80, 507},
360
+ {81, 496},
361
+ {82, 496},
362
+ {83, 347},
363
+ {84, 460},
364
+ {85, 351},
365
+ {86, 500},
366
+ {87, 476},
367
+ {88, 648},
368
+ {89, 460},
369
+ {90, 476},
370
+ {91, 457},
371
+ {92, 234},
372
+ {93, 234},
373
+ {94, 234},
374
+ {95, 414},
375
+ {231, 304},
376
+ {232, 218},
377
+ {233, 500},
378
+ {234, 500},
379
+ {235, 500},
380
+ {236, 500},
381
+ {237, 593},
382
+ {238, 203},
383
+ {239, 304},
384
+ {240, 304},
385
+ {241, 500},
386
+ {242, 500},
387
+ {243, 203},
388
+ {244, 500},
389
+ {245, 203},
390
+ {246, 500},
391
+ {247, 500},
392
+ {248, 500},
393
+ {249, 500},
394
+ {250, 500},
395
+ {251, 500},
396
+ {252, 500},
397
+ {253, 500},
398
+ {254, 500},
399
+ {255, 500},
400
+ {256, 500},
401
+ {257, 203},
402
+ {258, 203},
403
+ {259, 500},
404
+ {260, 500},
405
+ {261, 500},
406
+ {262, 453},
407
+ {263, 667},
408
+ {264, 632},
409
+ {265, 636},
410
+ {266, 664},
411
+ {267, 648},
412
+ {268, 566},
413
+ {269, 550},
414
+ {270, 679},
415
+ {271, 640},
416
+ {272, 246},
417
+ {273, 542},
418
+ {274, 597},
419
+ {275, 539},
420
+ {276, 742},
421
+ {277, 640},
422
+ {278, 707},
423
+ {279, 617},
424
+ {280, 707},
425
+ {281, 625},
426
+ {282, 601},
427
+ {283, 589},
428
+ {284, 640},
429
+ {285, 632},
430
+ {286, 742},
431
+ {287, 601},
432
+ {288, 589},
433
+ {289, 566},
434
+ {290, 335},
435
+ {291, 503},
436
+ {292, 335},
437
+ {293, 414},
438
+ {294, 304},
439
+ {295, 414},
440
+ {296, 476},
441
+ {297, 496},
442
+ {298, 500},
443
+ {299, 496},
444
+ {300, 500},
445
+ {301, 304},
446
+ {302, 460},
447
+ {303, 500},
448
+ {304, 210},
449
+ {305, 218},
450
+ {306, 460},
451
+ {307, 210},
452
+ {308, 734},
453
+ {309, 500},
454
+ {310, 507},
455
+ {311, 496},
456
+ {312, 496},
457
+ {313, 347},
458
+ {314, 460},
459
+ {315, 351},
460
+ {316, 500},
461
+ {317, 476},
462
+ {318, 648},
463
+ {319, 460},
464
+ {320, 476},
465
+ {321, 457},
466
+ {322, 234},
467
+ {323, 234},
468
+ {324, 234},
469
+ {327, 441},
470
+ {328, 441},
471
+ {329, 441},
472
+ {330, 441},
473
+ {331, 441},
474
+ {332, 546},
475
+ {333, 523},
476
+ {334, 445},
477
+ {335, 480},
478
+ {336, 468},
479
+ {337, 515},
480
+ {338, 523},
481
+ {339, 503},
482
+ {340, 437},
483
+ {341, 500},
484
+ {342, 640},
485
+ {343, 617},
486
+ {344, 566},
487
+ {345, 625},
488
+ {346, 597},
489
+ {347, 636},
490
+ {348, 562},
491
+ {349, 652},
492
+ {350, 539},
493
+ {351, 621},
494
+ {352, 523},
495
+ {353, 664},
496
+ {354, 589},
497
+ {355, 636},
498
+ {356, 644},
499
+ {357, 554},
500
+ {358, 527},
501
+ {359, 601},
502
+ {360, 601},
503
+ {361, 601},
504
+ {362, 460},
505
+ {363, 644},
506
+ {364, 597},
507
+ {365, 578},
508
+ {366, 648},
509
+ {367, 492},
510
+ {368, 636},
511
+ {369, 515},
512
+ {370, 546},
513
+ {371, 613},
514
+ {372, 640},
515
+ {373, 605},
516
+ {374, 453},
517
+ {375, 660},
518
+ {376, 507},
519
+ {377, 609},
520
+ {378, 664},
521
+ {379, 640},
522
+ {380, 519},
523
+ {381, 558},
524
+ {382, 511},
525
+ {383, 656},
526
+ {384, 566},
527
+ {385, 558},
528
+ {386, 589},
529
+ {387, 562},
530
+ {388, 250},
531
+ {389, 230},
532
+ {631, 414},
533
+ {633, 664},
534
+ {634, 664},
535
+ {635, 664},
536
+ {636, 664},
537
+ {637, 664},
538
+ {638, 500},
539
+ {639, 500},
540
+ {640, 500},
541
+ {643, 500},
542
+ {644, 500},
543
+ {645, 500},
544
+ {646, 500},
545
+ {647, 500},
546
+ {648, 500},
547
+ {651, 746},
548
+ {652, 746},
549
+ {653, 734},
550
+ {654, 699},
551
+ {660, 960},
552
+ {662, 500},
553
+ {670, 500},
554
+ {671, 500},
555
+ {672, 500},
556
+ {673, 500},
557
+ {674, 500},
558
+ {675, 500},
559
+ {676, 500},
560
+ {677, 500},
561
+ {678, 500},
562
+ {679, 500},
563
+ {680, 500},
564
+ {681, 500},
565
+ {682, 500},
566
+ {683, 500},
567
+ {684, 500},
568
+ {685, 500},
569
+ {686, 500},
570
+ {687, 500},
571
+ {688, 500},
572
+ {689, 500},
573
+ {690, 500},
574
+ {691, 500},
575
+ {776, 500},
576
+ {777, 500},
577
+ {778, 500},
578
+ {780, 683},
579
+ {781, 683},
580
+ {782, 683},
581
+ {783, 683},
582
+ {784, 683},
583
+ {785, 683},
584
+ {786, 683},
585
+ {787, 683},
586
+ {788, 683},
587
+ {789, 683},
588
+ {790, 714},
589
+ {791, 777},
590
+ {792, 742},
591
+ {793, 757},
592
+ {794, 710},
593
+ {795, 632},
594
+ {796, 773},
595
+ {797, 769},
596
+ {798, 273},
597
+ {799, 605},
598
+ {800, 753},
599
+ {801, 628},
600
+ {802, 933},
601
+ {803, 769},
602
+ {804, 804},
603
+ {805, 710},
604
+ {806, 804},
605
+ {807, 757},
606
+ {808, 742},
607
+ {809, 617},
608
+ {810, 769},
609
+ {811, 714},
610
+ {812, 980},
611
+ {813, 652},
612
+ {814, 648},
613
+ {815, 648},
614
+ {816, 574},
615
+ {817, 601},
616
+ {818, 562},
617
+ {819, 601},
618
+ {820, 562},
619
+ {821, 296},
620
+ {822, 578},
621
+ {823, 621},
622
+ {824, 250},
623
+ {825, 250},
624
+ {826, 593},
625
+ {827, 250},
626
+ {828, 937},
627
+ {829, 621},
628
+ {830, 605},
629
+ {831, 605},
630
+ {832, 601},
631
+ {833, 378},
632
+ {834, 570},
633
+ {835, 335},
634
+ {836, 621},
635
+ {837, 511},
636
+ {838, 777},
637
+ {839, 519},
638
+ {840, 496},
639
+ {841, 507},
640
+ {842, 746},
641
+ {843, 941},
642
+ {844, 804},
643
+ {845, 945},
644
+ {846, 601},
645
+ {847, 707},
646
+ {848, 750},
647
+ {849, 902},
648
+ {850, 804},
649
+ {851, 945},
650
+ {854, 843},
651
+ {855, 902},
652
+ {856, 589},
653
+ {857, 816},
654
+ {858, 945},
655
+ {859, 980},
656
+ {860, 796},
657
+ {861, 894},
658
+ {862, 765},
659
+ {863, 882},
660
+ {864, 765},
661
+ {865, 765},
662
+ {866, 960},
663
+ {867, 980},
664
+ {870, 921},
665
+ {871, 960},
666
+ {872, 921},
667
+ {873, 921},
668
+ {874, 863},
669
+ {875, 902},
670
+ {876, 804},
671
+ {877, 953},
672
+ {878, 957},
673
+ {879, 902},
674
+ {880, 902},
675
+ {881, 765},
676
+ {882, 882},
677
+ {883, 902},
678
+ {884, 941},
679
+ {891, 960},
680
+ {892, 960},
681
+ {893, 960},
682
+ {903, 890},
683
+ {905, 980},
684
+ {906, 980},
685
+ {907, 804},
686
+ {908, 843},
687
+ {910, 843},
688
+ {911, 980},
689
+ {912, 726},
690
+ {913, 863},
691
+ {914, 804},
692
+ {915, 746},
693
+ {916, 863},
694
+ {918, 843},
695
+ {919, 863},
696
+ {923, 855},
697
+ {924, 960},
698
+ {925, 757},
699
+ {926, 898},
700
+ {927, 652},
701
+ {928, 824},
702
+ {929, 753},
703
+ {930, 941},
704
+ {931, 742},
705
+ {932, 894},
706
+ {933, 808},
707
+ {934, 933},
708
+ {935, 824},
709
+ {936, 921},
710
+ {937, 960},
711
+ {938, 964},
712
+ {939, 804},
713
+ {940, 941},
714
+ {941, 929},
715
+ {942, 960},
716
+ {943, 796},
717
+ {944, 890},
718
+ {947, 898},
719
+ {948, 898},
720
+ {949, 902},
721
+ {950, 964},
722
+ {951, 914},
723
+ {952, 980},
724
+ {953, 804},
725
+ {954, 882},
726
+ {955, 765},
727
+ {956, 921},
728
+ {957, 910},
729
+ {958, 960},
730
+ {959, 734},
731
+ {960, 863},
732
+ {961, 921},
733
+ {962, 886},
734
+ {963, 960},
735
+ {964, 648},
736
+ {965, 707},
737
+ {966, 941},
738
+ {967, 910},
739
+ {968, 824},
740
+ {969, 929},
741
+ {970, 707},
742
+ {974, 765},
743
+ {975, 863},
744
+ {976, 863},
745
+ {977, 804},
746
+ {978, 882},
747
+ {979, 882},
748
+ {980, 945},
749
+ {981, 945},
750
+ {982, 945},
751
+ {983, 921},
752
+ {984, 953},
753
+ {985, 953},
754
+ {986, 902},
755
+ {987, 667},
756
+ {988, 976},
757
+ {989, 718},
758
+ {990, 898},
759
+ {991, 804},
760
+ {992, 980},
761
+ {993, 812},
762
+ {994, 960},
763
+ {995, 628},
764
+ {996, 726},
765
+ {997, 808},
766
+ {998, 746},
767
+ {1000, 851},
768
+ {1001, 863},
769
+ {1002, 765},
770
+ {1003, 941},
771
+ {1006, 804},
772
+ {1007, 863},
773
+ {1008, 960},
774
+ {1009, 726},
775
+ {1010, 777},
776
+ {0xFFFF, 0}
777
+ };
778
+
779
+
780
+ static const HPDF_CID_Width MS_Mincyo_W_ARRAY[] = {
781
+ {1, 500},
782
+ {2, 500},
783
+ {3, 500},
784
+ {4, 500},
785
+ {5, 500},
786
+ {6, 500},
787
+ {7, 500},
788
+ {8, 500},
789
+ {9, 500},
790
+ {10, 500},
791
+ {11, 500},
792
+ {12, 500},
793
+ {13, 500},
794
+ {14, 500},
795
+ {15, 500},
796
+ {16, 500},
797
+ {17, 500},
798
+ {18, 500},
799
+ {19, 500},
800
+ {20, 500},
801
+ {21, 500},
802
+ {22, 500},
803
+ {23, 500},
804
+ {24, 500},
805
+ {25, 500},
806
+ {26, 500},
807
+ {27, 500},
808
+ {28, 500},
809
+ {29, 500},
810
+ {30, 500},
811
+ {31, 500},
812
+ {32, 500},
813
+ {33, 500},
814
+ {34, 500},
815
+ {35, 500},
816
+ {36, 500},
817
+ {37, 500},
818
+ {38, 500},
819
+ {39, 500},
820
+ {40, 500},
821
+ {41, 500},
822
+ {42, 500},
823
+ {43, 500},
824
+ {44, 500},
825
+ {45, 500},
826
+ {46, 500},
827
+ {47, 500},
828
+ {48, 500},
829
+ {49, 500},
830
+ {50, 500},
831
+ {51, 500},
832
+ {52, 500},
833
+ {53, 500},
834
+ {54, 500},
835
+ {55, 500},
836
+ {56, 500},
837
+ {57, 500},
838
+ {58, 500},
839
+ {59, 500},
840
+ {60, 500},
841
+ {61, 500},
842
+ {62, 500},
843
+ {63, 500},
844
+ {64, 500},
845
+ {65, 500},
846
+ {66, 500},
847
+ {67, 500},
848
+ {68, 500},
849
+ {69, 500},
850
+ {70, 500},
851
+ {71, 500},
852
+ {72, 500},
853
+ {73, 500},
854
+ {74, 500},
855
+ {75, 500},
856
+ {76, 500},
857
+ {77, 500},
858
+ {78, 500},
859
+ {79, 500},
860
+ {80, 500},
861
+ {81, 500},
862
+ {82, 500},
863
+ {83, 500},
864
+ {84, 500},
865
+ {85, 500},
866
+ {86, 500},
867
+ {87, 500},
868
+ {88, 500},
869
+ {89, 500},
870
+ {90, 500},
871
+ {91, 500},
872
+ {92, 500},
873
+ {93, 500},
874
+ {94, 500},
875
+ {95, 500},
876
+ {231, 500},
877
+ {232, 500},
878
+ {233, 500},
879
+ {234, 500},
880
+ {235, 500},
881
+ {236, 500},
882
+ {237, 500},
883
+ {238, 500},
884
+ {239, 500},
885
+ {240, 500},
886
+ {241, 500},
887
+ {242, 500},
888
+ {243, 500},
889
+ {244, 500},
890
+ {245, 500},
891
+ {246, 500},
892
+ {247, 500},
893
+ {248, 500},
894
+ {249, 500},
895
+ {250, 500},
896
+ {251, 500},
897
+ {252, 500},
898
+ {253, 500},
899
+ {254, 500},
900
+ {255, 500},
901
+ {256, 500},
902
+ {257, 500},
903
+ {258, 500},
904
+ {259, 500},
905
+ {260, 500},
906
+ {261, 500},
907
+ {262, 500},
908
+ {263, 500},
909
+ {264, 500},
910
+ {265, 500},
911
+ {266, 500},
912
+ {267, 500},
913
+ {268, 500},
914
+ {269, 500},
915
+ {270, 500},
916
+ {271, 500},
917
+ {272, 500},
918
+ {273, 500},
919
+ {274, 500},
920
+ {275, 500},
921
+ {276, 500},
922
+ {277, 500},
923
+ {278, 500},
924
+ {279, 500},
925
+ {280, 500},
926
+ {281, 500},
927
+ {282, 500},
928
+ {283, 500},
929
+ {284, 500},
930
+ {285, 500},
931
+ {286, 500},
932
+ {287, 500},
933
+ {288, 500},
934
+ {289, 500},
935
+ {290, 500},
936
+ {291, 500},
937
+ {292, 500},
938
+ {293, 500},
939
+ {294, 500},
940
+ {295, 500},
941
+ {296, 500},
942
+ {297, 500},
943
+ {298, 500},
944
+ {299, 500},
945
+ {300, 500},
946
+ {301, 500},
947
+ {302, 500},
948
+ {303, 500},
949
+ {304, 500},
950
+ {305, 500},
951
+ {306, 500},
952
+ {307, 500},
953
+ {308, 500},
954
+ {309, 500},
955
+ {310, 500},
956
+ {311, 500},
957
+ {312, 500},
958
+ {313, 500},
959
+ {314, 500},
960
+ {315, 500},
961
+ {316, 500},
962
+ {317, 500},
963
+ {318, 500},
964
+ {319, 500},
965
+ {320, 500},
966
+ {321, 500},
967
+ {322, 500},
968
+ {323, 500},
969
+ {324, 500},
970
+ {327, 500},
971
+ {328, 500},
972
+ {329, 500},
973
+ {330, 500},
974
+ {331, 500},
975
+ {332, 500},
976
+ {333, 500},
977
+ {334, 500},
978
+ {335, 500},
979
+ {336, 500},
980
+ {337, 500},
981
+ {338, 500},
982
+ {339, 500},
983
+ {340, 500},
984
+ {341, 500},
985
+ {342, 500},
986
+ {343, 500},
987
+ {344, 500},
988
+ {345, 500},
989
+ {346, 500},
990
+ {347, 500},
991
+ {348, 500},
992
+ {349, 500},
993
+ {350, 500},
994
+ {351, 500},
995
+ {352, 500},
996
+ {353, 500},
997
+ {354, 500},
998
+ {355, 500},
999
+ {356, 500},
1000
+ {357, 500},
1001
+ {358, 500},
1002
+ {359, 500},
1003
+ {360, 500},
1004
+ {361, 500},
1005
+ {362, 500},
1006
+ {363, 500},
1007
+ {364, 500},
1008
+ {365, 500},
1009
+ {366, 500},
1010
+ {367, 500},
1011
+ {368, 500},
1012
+ {369, 500},
1013
+ {370, 500},
1014
+ {371, 500},
1015
+ {372, 500},
1016
+ {373, 500},
1017
+ {374, 500},
1018
+ {375, 500},
1019
+ {376, 500},
1020
+ {377, 500},
1021
+ {378, 500},
1022
+ {379, 500},
1023
+ {380, 500},
1024
+ {381, 500},
1025
+ {382, 500},
1026
+ {383, 500},
1027
+ {384, 500},
1028
+ {385, 500},
1029
+ {386, 500},
1030
+ {387, 500},
1031
+ {388, 500},
1032
+ {389, 500},
1033
+ {631, 500},
1034
+ {0xFFFF, 0}
1035
+ };
1036
+
1037
+
1038
+
1039
+ static const HPDF_CID_Width MS_PMincyo_W_ARRAY[] = {
1040
+ {1, 304},
1041
+ {2, 304},
1042
+ {3, 460},
1043
+ {4, 500},
1044
+ {5, 500},
1045
+ {6, 500},
1046
+ {7, 613},
1047
+ {8, 304},
1048
+ {9, 304},
1049
+ {10, 304},
1050
+ {11, 500},
1051
+ {12, 500},
1052
+ {13, 304},
1053
+ {14, 500},
1054
+ {15, 304},
1055
+ {16, 500},
1056
+ {17, 500},
1057
+ {18, 500},
1058
+ {19, 500},
1059
+ {20, 500},
1060
+ {21, 500},
1061
+ {22, 500},
1062
+ {23, 500},
1063
+ {24, 500},
1064
+ {25, 500},
1065
+ {26, 500},
1066
+ {27, 304},
1067
+ {28, 304},
1068
+ {29, 500},
1069
+ {30, 500},
1070
+ {31, 500},
1071
+ {32, 500},
1072
+ {33, 726},
1073
+ {34, 664},
1074
+ {35, 621},
1075
+ {36, 699},
1076
+ {37, 691},
1077
+ {38, 597},
1078
+ {39, 597},
1079
+ {40, 710},
1080
+ {41, 722},
1081
+ {42, 289},
1082
+ {43, 386},
1083
+ {44, 667},
1084
+ {45, 585},
1085
+ {46, 800},
1086
+ {47, 664},
1087
+ {48, 765},
1088
+ {49, 562},
1089
+ {50, 765},
1090
+ {51, 601},
1091
+ {52, 503},
1092
+ {53, 625},
1093
+ {54, 691},
1094
+ {55, 664},
1095
+ {56, 871},
1096
+ {57, 656},
1097
+ {58, 625},
1098
+ {59, 562},
1099
+ {60, 332},
1100
+ {61, 500},
1101
+ {62, 332},
1102
+ {63, 304},
1103
+ {64, 304},
1104
+ {65, 304},
1105
+ {66, 453},
1106
+ {67, 500},
1107
+ {68, 464},
1108
+ {69, 500},
1109
+ {70, 472},
1110
+ {71, 253},
1111
+ {72, 472},
1112
+ {73, 500},
1113
+ {74, 242},
1114
+ {75, 242},
1115
+ {76, 492},
1116
+ {77, 242},
1117
+ {78, 703},
1118
+ {79, 500},
1119
+ {80, 500},
1120
+ {81, 500},
1121
+ {82, 500},
1122
+ {83, 367},
1123
+ {84, 414},
1124
+ {85, 351},
1125
+ {86, 500},
1126
+ {87, 476},
1127
+ {88, 601},
1128
+ {89, 468},
1129
+ {90, 476},
1130
+ {91, 453},
1131
+ {92, 242},
1132
+ {93, 218},
1133
+ {94, 242},
1134
+ {95, 500},
1135
+ {231, 304},
1136
+ {232, 304},
1137
+ {233, 460},
1138
+ {234, 500},
1139
+ {235, 500},
1140
+ {236, 500},
1141
+ {237, 613},
1142
+ {238, 304},
1143
+ {239, 304},
1144
+ {240, 304},
1145
+ {241, 500},
1146
+ {242, 500},
1147
+ {243, 304},
1148
+ {244, 500},
1149
+ {245, 304},
1150
+ {246, 500},
1151
+ {247, 500},
1152
+ {248, 500},
1153
+ {249, 500},
1154
+ {250, 500},
1155
+ {251, 500},
1156
+ {252, 500},
1157
+ {253, 500},
1158
+ {254, 500},
1159
+ {255, 500},
1160
+ {256, 500},
1161
+ {257, 304},
1162
+ {258, 304},
1163
+ {259, 500},
1164
+ {260, 500},
1165
+ {261, 500},
1166
+ {262, 500},
1167
+ {263, 726},
1168
+ {264, 664},
1169
+ {265, 621},
1170
+ {266, 699},
1171
+ {267, 691},
1172
+ {268, 597},
1173
+ {269, 597},
1174
+ {270, 710},
1175
+ {271, 722},
1176
+ {272, 289},
1177
+ {273, 386},
1178
+ {274, 667},
1179
+ {275, 585},
1180
+ {276, 800},
1181
+ {277, 664},
1182
+ {278, 765},
1183
+ {279, 562},
1184
+ {280, 765},
1185
+ {281, 601},
1186
+ {282, 503},
1187
+ {283, 625},
1188
+ {284, 691},
1189
+ {285, 664},
1190
+ {286, 871},
1191
+ {287, 656},
1192
+ {288, 625},
1193
+ {289, 562},
1194
+ {290, 332},
1195
+ {291, 500},
1196
+ {292, 332},
1197
+ {293, 304},
1198
+ {294, 304},
1199
+ {295, 304},
1200
+ {296, 453},
1201
+ {297, 500},
1202
+ {298, 464},
1203
+ {299, 500},
1204
+ {300, 472},
1205
+ {301, 253},
1206
+ {302, 472},
1207
+ {303, 500},
1208
+ {304, 242},
1209
+ {305, 242},
1210
+ {306, 492},
1211
+ {307, 242},
1212
+ {308, 703},
1213
+ {309, 500},
1214
+ {310, 500},
1215
+ {311, 500},
1216
+ {312, 500},
1217
+ {313, 367},
1218
+ {314, 414},
1219
+ {315, 351},
1220
+ {316, 500},
1221
+ {317, 476},
1222
+ {318, 601},
1223
+ {319, 468},
1224
+ {320, 476},
1225
+ {321, 453},
1226
+ {322, 242},
1227
+ {323, 218},
1228
+ {324, 242},
1229
+ {327, 437},
1230
+ {328, 437},
1231
+ {329, 437},
1232
+ {330, 437},
1233
+ {331, 437},
1234
+ {332, 574},
1235
+ {333, 527},
1236
+ {334, 480},
1237
+ {335, 484},
1238
+ {336, 523},
1239
+ {337, 570},
1240
+ {338, 531},
1241
+ {339, 550},
1242
+ {340, 437},
1243
+ {341, 531},
1244
+ {342, 664},
1245
+ {343, 613},
1246
+ {344, 585},
1247
+ {345, 550},
1248
+ {346, 648},
1249
+ {347, 652},
1250
+ {348, 589},
1251
+ {349, 597},
1252
+ {350, 535},
1253
+ {351, 625},
1254
+ {352, 539},
1255
+ {353, 652},
1256
+ {354, 652},
1257
+ {355, 593},
1258
+ {356, 648},
1259
+ {357, 539},
1260
+ {358, 574},
1261
+ {359, 636},
1262
+ {360, 585},
1263
+ {361, 636},
1264
+ {362, 453},
1265
+ {363, 664},
1266
+ {364, 625},
1267
+ {365, 593},
1268
+ {366, 648},
1269
+ {367, 535},
1270
+ {368, 664},
1271
+ {369, 523},
1272
+ {370, 597},
1273
+ {371, 664},
1274
+ {372, 613},
1275
+ {373, 648},
1276
+ {374, 449},
1277
+ {375, 625},
1278
+ {376, 531},
1279
+ {377, 648},
1280
+ {378, 636},
1281
+ {379, 648},
1282
+ {380, 554},
1283
+ {381, 574},
1284
+ {382, 468},
1285
+ {383, 664},
1286
+ {384, 589},
1287
+ {385, 574},
1288
+ {386, 597},
1289
+ {387, 613},
1290
+ {388, 238},
1291
+ {389, 226},
1292
+ {631, 500},
1293
+ {633, 664},
1294
+ {634, 664},
1295
+ {635, 664},
1296
+ {636, 664},
1297
+ {637, 664},
1298
+ {638, 500},
1299
+ {639, 500},
1300
+ {640, 500},
1301
+ {643, 500},
1302
+ {644, 500},
1303
+ {645, 500},
1304
+ {646, 500},
1305
+ {647, 500},
1306
+ {648, 500},
1307
+ {651, 648},
1308
+ {652, 800},
1309
+ {653, 652},
1310
+ {654, 703},
1311
+ {662, 500},
1312
+ {670, 500},
1313
+ {671, 500},
1314
+ {672, 500},
1315
+ {673, 500},
1316
+ {674, 500},
1317
+ {675, 500},
1318
+ {676, 500},
1319
+ {677, 500},
1320
+ {678, 500},
1321
+ {679, 500},
1322
+ {680, 500},
1323
+ {681, 500},
1324
+ {682, 500},
1325
+ {683, 500},
1326
+ {684, 500},
1327
+ {685, 500},
1328
+ {686, 500},
1329
+ {687, 500},
1330
+ {688, 500},
1331
+ {689, 500},
1332
+ {690, 500},
1333
+ {691, 500},
1334
+ {776, 500},
1335
+ {777, 500},
1336
+ {778, 500},
1337
+ {780, 621},
1338
+ {781, 621},
1339
+ {782, 621},
1340
+ {783, 621},
1341
+ {784, 621},
1342
+ {785, 621},
1343
+ {786, 621},
1344
+ {787, 621},
1345
+ {788, 621},
1346
+ {789, 621},
1347
+ {790, 804},
1348
+ {791, 714},
1349
+ {792, 761},
1350
+ {793, 812},
1351
+ {794, 718},
1352
+ {795, 687},
1353
+ {796, 800},
1354
+ {797, 859},
1355
+ {798, 359},
1356
+ {799, 359},
1357
+ {800, 804},
1358
+ {801, 675},
1359
+ {803, 835},
1360
+ {804, 832},
1361
+ {805, 679},
1362
+ {806, 832},
1363
+ {807, 726},
1364
+ {808, 687},
1365
+ {809, 718},
1366
+ {810, 855},
1367
+ {811, 769},
1368
+ {812, 976},
1369
+ {813, 730},
1370
+ {814, 777},
1371
+ {815, 656},
1372
+ {816, 531},
1373
+ {817, 574},
1374
+ {818, 531},
1375
+ {819, 574},
1376
+ {820, 542},
1377
+ {821, 386},
1378
+ {822, 558},
1379
+ {823, 613},
1380
+ {824, 292},
1381
+ {825, 292},
1382
+ {826, 570},
1383
+ {827, 292},
1384
+ {828, 875},
1385
+ {829, 613},
1386
+ {830, 574},
1387
+ {831, 574},
1388
+ {832, 574},
1389
+ {833, 414},
1390
+ {834, 468},
1391
+ {835, 421},
1392
+ {836, 613},
1393
+ {837, 542},
1394
+ {838, 781},
1395
+ {839, 574},
1396
+ {840, 562},
1397
+ {841, 500},
1398
+ {842, 753},
1399
+ {843, 882},
1400
+ {844, 750},
1401
+ {845, 953},
1402
+ {846, 507},
1403
+ {847, 617},
1404
+ {848, 703},
1405
+ {849, 898},
1406
+ {850, 800},
1407
+ {852, 945},
1408
+ {853, 949},
1409
+ {854, 792},
1410
+ {855, 894},
1411
+ {856, 644},
1412
+ {857, 804},
1413
+ {858, 914},
1414
+ {859, 980},
1415
+ {860, 753},
1416
+ {861, 867},
1417
+ {862, 753},
1418
+ {863, 882},
1419
+ {864, 777},
1420
+ {865, 777},
1421
+ {870, 921},
1422
+ {871, 960},
1423
+ {872, 906},
1424
+ {873, 949},
1425
+ {874, 902},
1426
+ {875, 902},
1427
+ {876, 855},
1428
+ {879, 902},
1429
+ {880, 941},
1430
+ {881, 703},
1431
+ {882, 843},
1432
+ {883, 902},
1433
+ {884, 949},
1434
+ {887, 949},
1435
+ {888, 968},
1436
+ {900, 945},
1437
+ {901, 980},
1438
+ {902, 980},
1439
+ {903, 824},
1440
+ {906, 953},
1441
+ {907, 757},
1442
+ {908, 875},
1443
+ {910, 835},
1444
+ {911, 933},
1445
+ {912, 687},
1446
+ {913, 785},
1447
+ {914, 765},
1448
+ {915, 640},
1449
+ {916, 792},
1450
+ {917, 984},
1451
+ {918, 863},
1452
+ {919, 800},
1453
+ {920, 953},
1454
+ {921, 945},
1455
+ {922, 984},
1456
+ {923, 855},
1457
+ {924, 945},
1458
+ {925, 750},
1459
+ {926, 890},
1460
+ {927, 667},
1461
+ {928, 777},
1462
+ {929, 707},
1463
+ {930, 800},
1464
+ {931, 804},
1465
+ {932, 941},
1466
+ {933, 808},
1467
+ {934, 941},
1468
+ {935, 878},
1469
+ {936, 925},
1470
+ {937, 886},
1471
+ {938, 902},
1472
+ {939, 746},
1473
+ {940, 882},
1474
+ {941, 882},
1475
+ {942, 933},
1476
+ {943, 792},
1477
+ {944, 863},
1478
+ {945, 953},
1479
+ {946, 960},
1480
+ {947, 902},
1481
+ {948, 902},
1482
+ {949, 820},
1483
+ {950, 902},
1484
+ {951, 929},
1485
+ {952, 949},
1486
+ {953, 753},
1487
+ {954, 855},
1488
+ {955, 785},
1489
+ {956, 910},
1490
+ {957, 964},
1491
+ {958, 945},
1492
+ {959, 734},
1493
+ {960, 847},
1494
+ {961, 921},
1495
+ {962, 902},
1496
+ {964, 589},
1497
+ {965, 707},
1498
+ {966, 972},
1499
+ {967, 910},
1500
+ {968, 804},
1501
+ {969, 921},
1502
+ {970, 699},
1503
+ {971, 976},
1504
+ {972, 976},
1505
+ {973, 976},
1506
+ {974, 656},
1507
+ {975, 851},
1508
+ {976, 843},
1509
+ {977, 843},
1510
+ {978, 945},
1511
+ {979, 945},
1512
+ {983, 882},
1513
+ {984, 921},
1514
+ {985, 921},
1515
+ {986, 929},
1516
+ {987, 609},
1517
+ {988, 863},
1518
+ {989, 675},
1519
+ {990, 941},
1520
+ {991, 789},
1521
+ {992, 925},
1522
+ {993, 792},
1523
+ {994, 941},
1524
+ {995, 597},
1525
+ {996, 703},
1526
+ {997, 765},
1527
+ {998, 609},
1528
+ {999, 980},
1529
+ {1000, 832},
1530
+ {1001, 785},
1531
+ {1002, 699},
1532
+ {1003, 804},
1533
+ {1004, 964},
1534
+ {1005, 960},
1535
+ {1006, 785},
1536
+ {1007, 863},
1537
+ {1008, 882},
1538
+ {1009, 695},
1539
+ {1010, 765},
1540
+ {0xFFFF, 0}
1541
+ };
1542
+
1543
+
1544
+ /*---------------------------------------------------------------------------*/
1545
+ /*----- Mincyo Font ---------------------------------------------------------*/
1546
+
1547
+
1548
+ static HPDF_STATUS
1549
+ MS_Gothic_Init (HPDF_FontDef fontdef)
1550
+ {
1551
+ HPDF_STATUS ret;
1552
+
1553
+ HPDF_PTRACE ((" HPDF_FontDef_MS_Gothic_Init\n"));
1554
+
1555
+ fontdef->ascent = 859;
1556
+ fontdef->descent = -140;
1557
+ fontdef->cap_height = 769;
1558
+ fontdef->font_bbox = HPDF_ToBox(-0, -136, 1000, 859);
1559
+ fontdef->flags = HPDF_FONT_SYMBOLIC + HPDF_FONT_FIXED_WIDTH;
1560
+ fontdef->italic_angle = 0;
1561
+ fontdef->stemv = 78;
1562
+ if ((ret = HPDF_CIDFontDef_AddWidth (fontdef, MS_Gothic_W_ARRAY)) !=
1563
+ HPDF_OK) {
1564
+ return ret;
1565
+ }
1566
+
1567
+ fontdef->type = HPDF_FONTDEF_TYPE_CID;
1568
+ fontdef->valid = HPDF_TRUE;
1569
+
1570
+ return HPDF_OK;
1571
+ }
1572
+
1573
+
1574
+ static HPDF_STATUS
1575
+ MS_Gothic_Bold_Init (HPDF_FontDef fontdef)
1576
+ {
1577
+ HPDF_STATUS ret = MS_Gothic_Init (fontdef);
1578
+
1579
+ if (ret != HPDF_OK)
1580
+ return ret;
1581
+
1582
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_TRUE, HPDF_FALSE);
1583
+ }
1584
+
1585
+
1586
+ static HPDF_STATUS
1587
+ MS_Gothic_Italic_Init (HPDF_FontDef fontdef)
1588
+ {
1589
+ HPDF_STATUS ret = MS_Gothic_Init (fontdef);
1590
+
1591
+ if (ret != HPDF_OK)
1592
+ return ret;
1593
+
1594
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_FALSE, HPDF_TRUE);
1595
+ }
1596
+
1597
+ static HPDF_STATUS
1598
+ MS_Gothic_BoldItalic_Init (HPDF_FontDef fontdef)
1599
+ {
1600
+ HPDF_STATUS ret = MS_Gothic_Init (fontdef);
1601
+
1602
+ if (ret != HPDF_OK)
1603
+ return ret;
1604
+
1605
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_TRUE, HPDF_TRUE);
1606
+ }
1607
+
1608
+
1609
+ static HPDF_STATUS
1610
+ MS_PGothic_Init (HPDF_FontDef fontdef)
1611
+ {
1612
+ HPDF_STATUS ret;
1613
+
1614
+ HPDF_PTRACE ((" HPDF_FontDef_MS_PGothic_Init\n"));
1615
+
1616
+ fontdef->ascent = 859;
1617
+ fontdef->descent = -140;
1618
+ fontdef->cap_height = 679;
1619
+ fontdef->font_bbox = HPDF_ToBox(-121, -136, 996, 859);
1620
+ fontdef->flags = HPDF_FONT_SYMBOLIC;
1621
+ fontdef->italic_angle = 0;
1622
+ fontdef->stemv = 78;
1623
+ if ((ret = HPDF_CIDFontDef_AddWidth (fontdef, MS_PGothic_W_ARRAY)) !=
1624
+ HPDF_OK) {
1625
+ return ret;
1626
+ }
1627
+
1628
+ fontdef->type = HPDF_FONTDEF_TYPE_CID;
1629
+ fontdef->valid = HPDF_TRUE;
1630
+
1631
+ return HPDF_OK;
1632
+ }
1633
+
1634
+
1635
+ static HPDF_STATUS
1636
+ MS_PGothic_Bold_Init (HPDF_FontDef fontdef)
1637
+ {
1638
+ HPDF_STATUS ret = MS_PGothic_Init (fontdef);
1639
+
1640
+ if (ret != HPDF_OK)
1641
+ return ret;
1642
+
1643
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_TRUE, HPDF_FALSE);
1644
+ }
1645
+
1646
+
1647
+ static HPDF_STATUS
1648
+ MS_PGothic_Italic_Init (HPDF_FontDef fontdef)
1649
+ {
1650
+ HPDF_STATUS ret = MS_PGothic_Init (fontdef);
1651
+
1652
+ if (ret != HPDF_OK)
1653
+ return ret;
1654
+
1655
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_FALSE, HPDF_TRUE);
1656
+ }
1657
+
1658
+ static HPDF_STATUS
1659
+ MS_PGothic_BoldItalic_Init (HPDF_FontDef fontdef)
1660
+ {
1661
+ HPDF_STATUS ret = MS_PGothic_Init (fontdef);
1662
+
1663
+ if (ret != HPDF_OK)
1664
+ return ret;
1665
+
1666
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_TRUE, HPDF_TRUE);
1667
+ }
1668
+
1669
+
1670
+ static HPDF_STATUS
1671
+ MS_Mincyo_Init (HPDF_FontDef fontdef)
1672
+ {
1673
+ HPDF_STATUS ret;
1674
+
1675
+ HPDF_PTRACE ((" HPDF_FontDef_MS_Mincyo_Init\n"));
1676
+
1677
+ fontdef->ascent = 859;
1678
+ fontdef->descent = -140;
1679
+ fontdef->cap_height = 769;
1680
+ fontdef->font_bbox = HPDF_ToBox(-0, -136, 1000, 859);
1681
+ fontdef->flags = HPDF_FONT_SYMBOLIC + HPDF_FONT_FIXED_WIDTH +
1682
+ HPDF_FONT_SERIF;
1683
+ fontdef->italic_angle = 0;
1684
+ fontdef->stemv = 78;
1685
+ if ((ret = HPDF_CIDFontDef_AddWidth (fontdef, MS_Gothic_W_ARRAY)) !=
1686
+ HPDF_OK) {
1687
+ return ret;
1688
+ }
1689
+
1690
+ fontdef->type = HPDF_FONTDEF_TYPE_CID;
1691
+ fontdef->valid = HPDF_TRUE;
1692
+
1693
+ return HPDF_OK;
1694
+ }
1695
+
1696
+
1697
+ static HPDF_STATUS
1698
+ MS_Mincyo_Bold_Init (HPDF_FontDef fontdef)
1699
+ {
1700
+ HPDF_STATUS ret = MS_Mincyo_Init (fontdef);
1701
+
1702
+ if (ret != HPDF_OK)
1703
+ return ret;
1704
+
1705
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_TRUE, HPDF_FALSE);
1706
+ }
1707
+
1708
+
1709
+ static HPDF_STATUS
1710
+ MS_Mincyo_Italic_Init (HPDF_FontDef fontdef)
1711
+ {
1712
+ HPDF_STATUS ret = MS_Mincyo_Init (fontdef);
1713
+
1714
+ if (ret != HPDF_OK)
1715
+ return ret;
1716
+
1717
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_FALSE, HPDF_TRUE);
1718
+ }
1719
+
1720
+ static HPDF_STATUS
1721
+ MS_Mincyo_BoldItalic_Init (HPDF_FontDef fontdef)
1722
+ {
1723
+ HPDF_STATUS ret = MS_Mincyo_Init (fontdef);
1724
+
1725
+ if (ret != HPDF_OK)
1726
+ return ret;
1727
+
1728
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_TRUE, HPDF_TRUE);
1729
+ }
1730
+
1731
+
1732
+ static HPDF_STATUS
1733
+ MS_PMincyo_Init (HPDF_FontDef fontdef)
1734
+ {
1735
+ HPDF_STATUS ret;
1736
+
1737
+ HPDF_PTRACE ((" HPDF_FontDef_MS_PMincyo_Init\n"));
1738
+
1739
+ fontdef->ascent = 859;
1740
+ fontdef->descent = -140;
1741
+ fontdef->cap_height = 679;
1742
+ fontdef->font_bbox = HPDF_ToBox(-82, -136, 996, 859);
1743
+ fontdef->flags = HPDF_FONT_SYMBOLIC + HPDF_FONT_SERIF;
1744
+ fontdef->italic_angle = 0;
1745
+ fontdef->stemv = 78;
1746
+ if ((ret = HPDF_CIDFontDef_AddWidth (fontdef, MS_PGothic_W_ARRAY)) !=
1747
+ HPDF_OK) {
1748
+ return ret;
1749
+ }
1750
+
1751
+ fontdef->type = HPDF_FONTDEF_TYPE_CID;
1752
+ fontdef->valid = HPDF_TRUE;
1753
+
1754
+ return HPDF_OK;
1755
+ }
1756
+
1757
+
1758
+ static HPDF_STATUS
1759
+ MS_PMincyo_Bold_Init (HPDF_FontDef fontdef)
1760
+ {
1761
+ HPDF_STATUS ret = MS_PMincyo_Init (fontdef);
1762
+
1763
+ if (ret != HPDF_OK)
1764
+ return ret;
1765
+
1766
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_TRUE, HPDF_FALSE);
1767
+ }
1768
+
1769
+
1770
+ static HPDF_STATUS
1771
+ MS_PMincyo_Italic_Init (HPDF_FontDef fontdef)
1772
+ {
1773
+ HPDF_STATUS ret = MS_PMincyo_Init (fontdef);
1774
+
1775
+ if (ret != HPDF_OK)
1776
+ return ret;
1777
+
1778
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_FALSE, HPDF_TRUE);
1779
+ }
1780
+
1781
+ static HPDF_STATUS
1782
+ MS_PMincyo_BoldItalic_Init (HPDF_FontDef fontdef)
1783
+ {
1784
+ HPDF_STATUS ret = MS_PMincyo_Init (fontdef);
1785
+
1786
+ if (ret != HPDF_OK)
1787
+ return ret;
1788
+
1789
+ return HPDF_CIDFontDef_ChangeStyle (fontdef, HPDF_TRUE, HPDF_TRUE);
1790
+ }
1791
+
1792
+
1793
+ HPDF_EXPORT(HPDF_STATUS)
1794
+ HPDF_UseJPFonts (HPDF_Doc pdf)
1795
+ {
1796
+ HPDF_FontDef fontdef;
1797
+ HPDF_STATUS ret;
1798
+
1799
+ if (!HPDF_Doc_Validate (pdf))
1800
+ return HPDF_INVALID_DOCUMENT;
1801
+
1802
+ /* MS-Gothic */
1803
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-Gothic",
1804
+ MS_Gothic_Init);
1805
+
1806
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1807
+ return ret;
1808
+
1809
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-Gothic,Bold",
1810
+ MS_Gothic_Bold_Init);
1811
+
1812
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1813
+ return ret;
1814
+
1815
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-Gothic,Italic",
1816
+ MS_Gothic_Italic_Init);
1817
+
1818
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1819
+ return ret;
1820
+
1821
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-Gothic,BoldItalic",
1822
+ MS_Gothic_BoldItalic_Init);
1823
+
1824
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1825
+ return ret;
1826
+
1827
+ /* MS-PGothic */
1828
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-PGothic",
1829
+ MS_PGothic_Init);
1830
+
1831
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1832
+ return ret;
1833
+
1834
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-PGothic,Bold",
1835
+ MS_PGothic_Bold_Init);
1836
+
1837
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1838
+ return ret;
1839
+
1840
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-PGothic,Italic",
1841
+ MS_PGothic_Italic_Init);
1842
+
1843
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1844
+ return ret;
1845
+
1846
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-PGothic,BoldItalic",
1847
+ MS_PGothic_BoldItalic_Init);
1848
+
1849
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1850
+ return ret;
1851
+
1852
+ /* MS-Mincyo */
1853
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-Mincyo",
1854
+ MS_Mincyo_Init);
1855
+
1856
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1857
+ return ret;
1858
+
1859
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-Mincyo,Bold",
1860
+ MS_Mincyo_Bold_Init);
1861
+
1862
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1863
+ return ret;
1864
+
1865
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-Mincyo,Italic",
1866
+ MS_Mincyo_Italic_Init);
1867
+
1868
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1869
+ return ret;
1870
+
1871
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-Mincyo,BoldItalic",
1872
+ MS_Mincyo_BoldItalic_Init);
1873
+
1874
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1875
+ return ret;
1876
+
1877
+ /* MS-PMincyo */
1878
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-PMincyo",
1879
+ MS_PMincyo_Init);
1880
+
1881
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1882
+ return ret;
1883
+
1884
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-PMincyo,Bold",
1885
+ MS_PMincyo_Bold_Init);
1886
+
1887
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1888
+ return ret;
1889
+
1890
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-PMincyo,Italic",
1891
+ MS_PMincyo_Italic_Init);
1892
+
1893
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1894
+ return ret;
1895
+
1896
+ fontdef = HPDF_CIDFontDef_New (pdf->mmgr, "MS-PMincyo,BoldItalic",
1897
+ MS_PMincyo_BoldItalic_Init);
1898
+
1899
+ if ((ret = HPDF_Doc_RegisterFontDef (pdf, fontdef)) != HPDF_OK)
1900
+ return ret;
1901
+
1902
+ return HPDF_OK;
1903
+ }
1904
+