Debian Codegraph @

ChangeLog

raw
1 2018-02-08 handa <[email protected]>
2
3 Version 0.9.16 released.
4
5 * src/otf.h (LIBOTF_VERSION): Changed to "0.9.16".
6
7 * src/Makefile.am (libotf_la_LDFLAGS): New variable.
8
9 2018-01-24 handa <[email protected]>
10
11 * configure.ac: Change versions to 0.9.16.
12
13 2018-01-23 K. Handa <[email protected]>
14
15 * src/otfopen.c (read_class_def): Handle the case of
16 f.f1.GlyphCount and f.f2.ClassRangeCount being 0 gracefully.
17
18 2015-09-02 K. Handa <[email protected]>
19
20 * example/otfview.c (update_seq_area): Use the macro
21 OTF_POSITIONING_TYPE_GET_FORMAT.
22
23 2015-08-29 Richard Wordingham <[email protected]>
24
25 * src/otfdrive.c (lookup_gsub, lookup_gpos): Extend debug output.
26
27 2015-08-28 K. Handa <[email protected]>
28
29 * src/otf.h (OTF_drive_gsub_features, OTF_drive_gpos_features):
30 Extern them.
31 (OTF_drive_features): Delete extern.
32
33 * src/otfdrive.c (OTF_drive_gsub_with_log): Fix the settings of
34 members of control.
35 (OTF_drive_gsub_features): New function.
36 (OTF_drive_gpos_internal): Pay attention to
37 control->disable_mark_distance.
38 (OTF_drive_gpos_features): New function.
39 (OTF_drive_features): Delete it.
40
41 * example/otfview.c (update_seq_area): Call
42 OTF_drive_gsub_features and OTF_drive_gpos_features instead of
43 OTF_drive_features.
44
45 2015-08-08 K. Handa <[email protected]>
46
47 * src/otf.h (OTF_Positioning_Type_Bit_Field)
48 (OTF_Positioning_Type_Mask): New enums.
49 (OTF_POSITIONING_TYPE_GET_FORMAT)
50 (OTF_POSITIONING_TYPE_SET_FORMAT)
51 (OTF_POSITIONING_TYPE_GET_FEATURE)
52 (OTF_POSITIONING_TYPE_SET_FEATURE)
53 (OTF_POSITIONING_TYPE_GET_COMPONENTS)
54 (OTF_POSITIONING_TYPE_SET_COMPONENTS)
55 (OTF_POSITIONING_TYPE_GET_MARKDISTANCE)
56 (OTF_POSITIONING_TYPE_SET_MARKDISTANCE): New macros.
57
58 * src/otfdrive.c (struct Control): New member
59 disable_mark_distance.
60 (POSITIONING_TYPE_FORMAT_MASK, POSITIONING_TYPE_FEATURE_MASK)
61 (POSITIONING_TYPE_COMPONENTS_MASK, POSITIONING_TYPE_GET_FORMAT)
62 (POSITIONING_TYPE_SET_FORMAT, POSITIONING_TYPE_GET_FEATURE)
63 (POSITIONING_TYPE_SET_FEATURE, POSITIONING_TYPE_GET_COMPONENTS)
64 (POSITIONING_TYPE_SET_COMPONENTS): These macros deleted. Callers
65 change to use the corresponding macros in otf.h.
66 (lookup_gsub): Propaged the error of recursively callled function.
67 (lookup_gpos): Propaged the error of recursively callled function.
68 For lookup of type 5, if control->disable_ligature_component_info
69 is set, find a target component by
70 OTF_POSITIONING_TYPE_GET_COMPONENTS (). Record the distance of
71 marks for handling MarkToMark Attachment (bug#44697).
72 (OTF_drive_gpos): Set control.disable_mark_distance to 1.
73 (OTF_drive_gpos2, OTF_drive_gpos_with_log): Likewise.
74
75 * example/otfview.c (update_seq_area): Use OTF_drive_features ()
76 instead of OTF_drive_gsub/gpos_with_log (). Use
77 OTF_POSITIONING_TYPE_GET_XXX () macros. Pay attention to
78 OTF_POSITIONING_TYPE_GET_MARKDISTANCE (g).
79
80 2015-07-19 K. Handa <[email protected]>
81
82 * src/otfdrive.c (lookup_gsub): Fix previous change.
83
84 2015-07-18 K. Handa <[email protected]>
85
86 The following is to fix incorrect calculation of the position to
87 move to after a match (bug#44693).
88
89 * src/otfdrive.c (match_chain_ids, match_chain_classes)
90 (match_chain_coverages): If matched, return the number of matched
91 glyphs.
92 (lookup_gsub, lookup_gpos): Utilize the return value of match_XXX
93 functions to find the position to move to.
94
95 2015-07-09 K. Handa <[email protected]>
96
97 * configure.ac: Change versions to 0.9.15.
98
99 * src/otf.h (LIBOTF_VERSION): Changed to "0.9.15".
100 (LIBOTF_RELEASE_NUMBER): Changed to 15.
101 (OTF_drive_features): Extern it.
102
103 2015-07-09 K. Handa <[email protected]>
104
105 These changes are to implement a new API OTF_drive_feature which
106 can return sufficient information to handle a lookup of type
107 Mark-to-Ligature attachment.
108
109 * src/otfdrive.c (struct Control): New type.
110 (default_control): New variable.
111 (POSITIONING_TYPE_FORMAT_MASK, POSITIONING_TYPE_FEATURE_MASK)
112 (POSITIONING_TYPE_COMPONENTS_MASK, POSITIONING_TYPE_GET_FORMAT)
113 (POSITIONING_TYPE_SET_FORMAT, POSITIONING_TYPE_GET_FEATURE)
114 (POSITIONING_TYPE_SET_FEATURE, POSITIONING_TYPE_GET_COMPONENTS)
115 (POSITIONING_TYPE_SET_COMPONENTS): New macros. All codes
116 accessing bit-fields in <positioning_type> of OTF_Glyph are
117 changed to use thise macros.
118 (gstring_subst): Set bit-field for ligature components in
119 <positioning_type> member of OTF_Glyph.
120 (lookup_gsub): Change argument alternate_subst to control. Caller
121 changed.
122 (lookup_gpos): Change argument accumulate to control. Caller
123 changed.
124 (OTF_drive_gsub_internal): Change arguments alternate_subst and
125 with_log to control. Caller changed.
126 (OTF_drive_gpos_internal): Change arguments accumulate and
127 with_log to control. Caller changed.
128 (OTF_drive_features): New function.
129
130 2015-03-27 K. Handa <[email protected]>
131
132 * example/otflist.c (main): Check the retrun value of OTF_get_table.
133
134 2015-03-27 K. Handa <[email protected]>
135
136 * src/otfopen.c (read_lookup_record_list): Type changed to int.
137 Return -1 on error.
138 (read_rule_list, read_class_rule_list, read_chain_rule_list)
139 (read_chain_class_rule_list, read_chain_context3): Adjusted for
140 the above change.
141
142 2015-02-23 K. Handa <[email protected]>
143
144 * src/otf.h (LIBOTF_VERSION): Updated to 0.9.14.
145 (LIBOTF_RELEASE_NUMBER): Updated to 14.
146
147 2014-03-17 K. Handa <[email protected]>
148
149 * src/otfopen.c (OTF_open): Use "rb" for fopen's arg MODE.
150
151 2013-04-05 Harshula Jayasuriya <[email protected]>
152
153 * libotf-config.1: New file.
154
155 2012-09-18 Kenichi Handa <[email protected]>
156
157 * Version 0.9.13 released.
158
159 2012-04-27 Kenichi Handa <[email protected]>
160
161 * configure.ac: Change versions to 0.9.13.
162
163 2012-04-23 Kenichi Handa <[email protected]>
164
165 * src/otfdrive.c (get_class_def_auto): Return 0 if C is negative.
166
167 2011-02-11 Kenichi Handa <[email protected]>
168
169 * src/otfopen.c (read_anchor_array): Do not read an anchor if its
170 offset is zero.
171 (read_ligature_attach): Fix return code on error.
172 (read_ligature_array): Do not read an anchor if its offset is
173 zero.
174 (read_lookup_subtable_gpos): Fix typo.
175
176 * example/otfdump.c (indent_spaces): Delete it.
177 (IPRINT): Do not use indent_spaces.
178 (dump_anchor): Do nothing if anchor->offset is zero.
179
180 2010-11-05 Elias Pipping <[email protected]> (tiny change)
181
182 * example/Makefile.am (bin_PROGRAMS): Add otfview conditionally.
183
184 * configure.ac: Add AM_CONDITIONAL for X11_UNAVAILABLE.
185
186 2010-10-04 Kenichi Handa <[email protected]>
187
188 * Version 0.9.12 released.
189
190 2010-09-22 Kenichi Handa <[email protected]>
191
192 * src/otfopen.c (OTF_check_features): If language is specified but
193 not found, return 0 instead of using the default langsys.
194
195 2010-09-16 Kenichi Handa <[email protected]>
196
197 * src/internal.h: Include alloca.h if available.
198
199 * example/otftobdf.c: Include alloca.h if available.
200
201 * example/otfview.c: Include alloca.h if available.
202
203 * example/otflist.c: Include alloca.h if available.
204
205 2010-09-13 Martin Gieseking <[email protected]> (tiny change)
206
207 * example/otftobdf.c (main): Fix checking number of arguments.
208
209 2010-09-10 Kenichi Handa <[email protected]>
210
211 * src/otfopen.c (OTF_check_features): If LANGUAGE is specified but
212 not found in a font, return 0.
213
214 2010-05-18 Kenichi Handa <[email protected]>
215
216 * example/otfview.c (create_otf_script_widgets): Create a box
217 widget for each script in a limited-width box.
218
219 2010-04-21 Kenichi Handa <[email protected]>
220
221 * configure.ac: Versions changed to 0.9.12.
222
223 * src/otfopen.c (OTF_check_features): Even if no feature is
224 specified, check script support.
225
226 * src/otf.h (LIBOTF_VERSION): Changed to 0.9.12
227 (LIBOTF_RELEASE_NUMBER): Changed to 12.
228
229 2010-03-30 Kenichi Handa <[email protected]>
230
231 * configure.ac: Versions changed to 0.9.11.
232
233 2010-03-23 Kenichi Handa <[email protected]>
234
235 * src/Makefile.am (libotf_la_SOURCES): Include internal.h.
236
237 2010-03-19 Kenichi Handa <[email protected]>
238
239 * src/Makefile.am (libotf_la_SOURCES): Exclude otferror.h.
240
241 * configure.ac: Versions changed to 0.9.11pre.
242
243 2010-01-22 Kenichi Handa <[email protected]>
244
245 * src/otfdrive.c (lookup_gsub): Change the meaning of the arg
246 alternate_subst.
247
248 2009-12-17 Kenichi Handa <[email protected]>
249
250 * src/otfdrive.c (gstring_subst): Update g->MarkAttachGlass.
251 (lookup_gsub): Update g->GlyphClass and g->MarkAttachGlass.
252 (OTF_drive_gdef): Don't return error even if GDEF table doesn't
253 exist.
254
255 2009-11-30 Kenichi Handa <[email protected]>
256
257 * src/otfdrive.c (OTF_drive_gsub_internal): Fix previous change.
258 (OTF_drive_gpos_internal): Likewise.
259
260 2009-11-27 Kenichi Handa <[email protected]>
261
262 * src/otfdrive.c (gstring_subst): Set positioning_type to 1.
263 (lookup_gsub): If a feature is applied to a glyph, set its
264 positioning_type to 1.
265 (OTF_drive_gsub_internal): Only if a feature is applied to a
266 glyph, set its feature log.
267 (OTF_drive_gpos_internal): Likewise.
268
269 2009-11-24 Kenichi Handa <[email protected]>
270
271 * src/otf.h (OTF_drive_gsub_with_log, OTF_drive_gpos_with_log):
272 Extern them.
273 (OTF_get_drive_log): Delete extern.
274
275 * src/internal.h (OTF_DriveLog): Delete it.
276 (set_drive_log, get_drive_log): Delete externs.
277
278 * src/otfopen.c (OTF_InternalData): Delete the member drive_log.
279 (set_drive_log, get_drive_log): Delete them.
280
281 * src/otfdrive.c (USHORT): New macro for "unsigned short".
282 (prepare_drive_log): Delete it.
283 (setup_lookup_flags): Change the type of lookup_flags.
284 (lookup_gsub): Change the return value.
285 (gstring_insert_for_gpos): Adjusted for the change of
286 OTF_Glyph.positioning_type.
287 (print_glyph_positioning): Likewise.
288 (lookup_gpos): Likewise. Change the return value.
289 (OTF_drive_gsub_internal): New arg "with_log". Adjusted for the
290 change of OTF_Glyph.positioning_type.
291 (OTF_drive_gsub): Fix args to OTF_drive_gsub_internal.
292 (OTF_drive_gsub_with_log): New function.
293 (OTF_drive_gpos_internal): New arg "with_log". Adjusted for the
294 change of OTF_Glyph.positioning_type.
295 (OTF_drive_gpos): Fix args to OTF_drive_gpos_internal.
296 (OTF_drive_gpos2): Likewise.
297 (OTF_drive_gpos_with_log): New function.
298 (OTF_drive_gsub_alternate): Fix args to OTF_drive_gsub_internal.
299 (OTF_iterate_gsub_feature): Adjusted for the change of
300 OTF_Glyph.positioning_type.
301 (OTF_get_drive_log): Delete it.
302
303 * example/otfview.c (update_seq_area): Call
304 OTF_driver_gsub_with_log and OTF_driver_gpos_with_log. Show which
305 features are applied.
306 (get_features): Fix previous change.
307
308 2009-11-24 mule <[email protected]>
309
310 * src/otferror.h: Removed. All codes move to internal.h.
311
312 * src/internal.h: New file.
313
314 * src/otfdrive.c: Include internal.h instead of otferror.h.
315 (prepare_drive_log): New function.
316 (OTF_drive_gpos_internal): Make it static.
317 (OTF_get_drive_log): New function.
318
319 * src/otfopen.c: Include internal.h instead of otferror.h.
320 (OTF_InternalData): New member drive_log.
321 (set_drive_log, get_drive_log): New functions.
322
323 * src/otf.h (OTF_get_drive_log): Extern it.
324
325 * example/otfview.c (get_features): Adjusted for the change of
326 FeatureRec->features.
327 (FeatureProc): Don't re-order FeatureRec->features.
328
329 2009-11-18 Kenichi Handa <[email protected]>
330
331 * example/otfview.c (update_seq_area): Fix previous change.
332
333 * src/otfdrive.c (match_ids): New arg "direction". Callers changed.
334 (match_ids_backward): Delete it.
335 (match_chain_ids): Adjusted for the change fo match_ids.
336 (match_classes): New arg "direction". Callers changed.
337 (match_chain_classes): Adjusted for the change fo match_classes.
338 (match_coverages): New arg "direction". Callers changed.
339 (match_chain_coverages): Adjusted for the change fo match_coverages.
340
341 * src/otfopen.c (read_header_part): Handle TTC (TrueType
342 Collection).
343 (OTF_open): Accept "ttc".
344
345 2009-11-13 Kenichi Handa <[email protected]>
346
347 * src/otfdrive.c (match_ids_backward): New function.
348 (match_chain_ids): Call match_ids_backward for backward matching.
349
350 * example/otfview.c (code, code_label, code_list): New variables.
351 (update_seq_area): Display code list.
352 (create_widgets): Create widgets code, code_label, code_list.
353
354 2009-11-09 Kenichi Handa <[email protected]>
355
356 * src/otfdrive.c (get_anchor): Delete it.
357 (get_class_def_auto): Make it static.
358
359 2009-11-07 Kenichi Handa <[email protected]>
360
361 * example/otfview.c (update_seq_area): Accumulate adjustments by
362 ValueRecord.
363
364 * src/otfdrive.c (print_anchor, print_glyph_positioning): New
365 functions.
366 (lookup_gpos): Improve debug info printing.
367
368 2009-11-04 Kenichi Handa <[email protected]>
369
370 * example/otfview.c (update_seq_area): Call OTF_driver_gdef after
371 OTF_driver_cmap.
372
373 * src/otfopen.c (debug_flag): New variable
374 (set_debug_flag): New function.
375 (OTF_open, OTF_open_ft_face): Check debug flag if not yet done.
376
377 * src/otfdrive.c (debug_flag): Extern it.
378 (lookup_gsub): Print debugging info if requested. Don't ignore a
379 glyph that already has positioning_type. Be sure to increment
380 gidx.
381
382 2009-10-08 Kenichi Handa <[email protected]>
383
384 * src/otfopen.c (read_cmap_table): Fix bug of handling
385 seg->idDelta.
386 (OTF_close): Free app_data before free all memories.
387
388 2009-10-02 Kenichi Handa <[email protected]>
389
390 * src/otfopen.c (OTF_ApplicationData): New type.
391 (OTF_InternalData): New member app_data.
392 (OTF_close): Free OTF_InternalData->app_data.
393 (OTF_put_data, OTF_get_data): New functions.
394
395 * src/otf.h (OTF_put_data, OTF_get_data): Extern them.
396
397 2009-09-29 Kenichi Handa <[email protected]>
398
399 * src/otf.h (OTF_Feature_Callback): New type.
400 (OTF_iterate_gsub_feature): Extern it.
401
402 * src/otfdrive.c (OTF_iterate_gsub_feature): New function.
403
404 2009-08-13 Kenichi Handa <[email protected]>
405
406 * Version 0.9.10 released.
407
408 2009-08-13 Kenichi Handa <[email protected]>
409
410 * src/otf.h (LIBOTF_VERSION): Changed to "0.9.10".
411 (LIBOTF_RELEASE_NUMBER): Changed to 10.
412
413 * configure.ac: Versions changed to 0.9.10.
414
415 2009-07-23 Kenichi Handa <[email protected]>
416
417 * src/otf.h (OTF_cmap): New member table_index;
418
419 * src/otfopen.c (read_cmap_table): Set cmap->table_index.
420
421 * src/otfdrive.c (lookup_encoding_0, lookup_encoding_2)
422 (lookup_encoding_4, lookup_encoding_6, lookup_encoding_8)
423 (lookup_encoding_10, lookup_encoding_12): Arguments and return
424 value changed.
425 (lookup_cmap_func): New function type.
426 (lookup_cmap_func_table): New variable.
427 (get_GlyphID): New function.
428 (get_uvs_glyph): Call get_GlyphID instead of directly accessing
429 cmal->unicode_table.
430 (OTF_drive_cmap, OTF_drive_cmap2): Call one of lookup functions in
431 lookup_cmap_func_table.
432
433 2009-07-10 Kenichi Handa <[email protected]>
434
435 * example/otfview.c (update_seq_area): Drive features of the
436 correct script and langsys.
437
438 2009-03-03 Kenichi Handa <[email protected]>
439
440 * Version 0.9.9 released.
441
442 2009-03-03 Kenichi Handa <[email protected]>
443
444 * src/otf.h (LIBOTF_VERSION): Changed to "0.9.9".
445 (LIBOTF_RELEASE_NUMBER): Changed to 9.
446
447 2009-03-02 Kenichi Handa <[email protected]>
448
449 * configure.ac: Versions changed to 0.9.9.
450
451 2009-02-26 Kenichi Handa <[email protected]>
452
453 * src/otfopen.c (free_stream): Check stream->buf before freeing
454 it.
455 (read_gdef_table): Do nothing if stream->buf is NULL.
456 (read_header_part): If a font doesn't have a GDEF table, make a
457 pseudo stream.
458
459 * src/otfdrive.c (glyph_class_table): New variable.
460 (get_class_def_auto): New function.
461 (OTF_drive_gdef): If a font doesn't have a GDEF table, use
462 get_class_def_auto.
463
464 2009-02-25 Kenichi Handa <[email protected]>
465
466 * src/otfopen.c (get_table_info): Always succeed for GDEF table.
467
468 * example/otfview.c (main): If ! otf, don't setup sub14.
469
470 2008-12-31 Kenichi Handa <[email protected]>
471
472 * src/otfdrive.c (check_cmap_uvs): Update the member
473 MGlyph.f.index.to.
474
475 2008-12-29 Kenichi Handa <[email protected]>
476
477 * src/otf.h (OTF_get_variation_glyphs): Extern it..
478
479 * src/otfdrive.c (OTF_get_variation_glyphs): New function.
480
481 * example/otfview.c (uvs_area, uvs_label): New variables.
482 (sub14, uvs): New variable.
483 (update_uvs_area): New function.
484 (update_seq_area): Set `glyph_id' member only when no charmap is
485 used.
486 (update_render_area): Handle a variation selector.
487 (UVSProc): New function.
488 (RenderProc): Call update_uvs_area if the font is OpenType.
489 (create_widgets): Create uvs_area widget if the font has variation
490 selector.
491 (main): Setup sub14. Set font in gc_set.
492
493 2008-12-24 Kenichi Handa <[email protected]>
494
495 * src/otfdrive.c (get_uvs_glyph): Complete the code.
496
497 2008-12-23 Kenichi Handa <[email protected]>
498
499 * example/otfview.c (update_seq_area): Call OTF_drive_cmap.
500
501 * example/otfdump.c (dump_cmap_table): Fix previous change.
502
503 * src/otfdrive.c (lookup_encoding_4): Fix typo.
504 (get_uvs_glyph): Argument changed.
505 (check_cmap_uvs): Adjusted for the above change.
506
507 * src/otfopen.c (READ_UINT24): New macro.
508 (read_cmap_uvs_table): Argument changed. Complete the code.
509 (read_cmap_table): Adjusted for the above change. Fix typo.
510
511 * src/otf.h (OTF_cmapSegment): Fix typo.
512 (OTF_EncodingSubtable4): Fix typo.
513 (OTF_UVSMapping): New type.
514 (OTF_UnicodeValueRange): New type.
515 (OTF_VariationSelectorRecord): New type.
516 (OTF_EncodingSubtable14): Fix previous change.
517
518 2008-12-22 Kenichi Handa <[email protected]>
519
520 * example/otfdump.c (dump_cmap_table): Handle format 14.
521
522 * src/otfdrive.c (check_cmap_uvs): New function. Not yet completed.
523 (UVS_P): New macro.
524 (OTF_drive_cmap): Check UVS (Unicode Variation Sequences).
525 (get_uvs_glyph): New function.
526
527 * src/otfopen.c (read_cmap_uvs_table): New function.
528 (read_cmap_table): Handle format 14 (Unicode Variation Sequences).
529 Not yet completed.
530
531 * src/otf.h (OTF_EncodingSubtable14): New type.
532 (OTF_EncodingSubtable): New union member f.f14.
533
534 2008-12-03 Kenichi Handa <[email protected]>
535
536 * example/otfview.c (update_seq_area): Call OTF_drive_gpos2
537 instead of OTF_drive_gpos. Handle the accumulated positioning.
538
539 * src/otfdrive.c (setup_lookup_flags): The last argument changed
540 to lookup_flags. Just set the elements to 1 or 0.
541 (gstring_insert_for_gpos): New function.
542 (lookup_gpos): New arg accumulate. Insert pseudo glyphs to
543 accumulate positioning if necessary.
544 (OTF_drive_gsub_internal): Adjusted for the change of
545 setup_lookup_flags.
546 (OTF_drive_gpos_internal): Renamed from OTF_drive_gpos. Adjusted
547 for the change of setup_lookup_flags and lookup_gpos.
548 (OTF_drive_gpos): Just call OTF_drive_gpos_internal with
549 accumulate == 0.
550 (OTF_drive_gpos2): New function.
551
552 * src/otf.h (OTF_drive_gpos2): Extern it.
553
554 2008-11-27 Simon Zamecnik <[email protected]> (tiny change)
555
556 * src/otfdrive.c (setup_lookup_indices): New arg LangSys.
557 (OTF_drive_gsub_internal, OTF_drive_gpos): Adjusted for the above
558 change.
559
560 2008-07-01 Kenichi Handa <[email protected]>
561
562 * src/otfopen.c (make_stream, setup_stream)
563 (make_stream_from_ft_face, free_stream, read_offset_table): Make
564 them static.
565
566 2008-06-29 Kenichi Handa <[email protected]>
567
568 * Version 0.9.8 released.
569
570 2008-06-29 Kenichi Handa <[email protected]>
571
572 * configure.ac: Versions changed to 0.9.8.
573
574 * example/otfview.c (DEVICE_DELTA): Handle an invalid table.
575
576 * example/otfdump.c (dump_device_table): Handle an invalid table.
577
578 * src/otfopen.c (read_device_table): Accept an invalid table.
579
580 2007-12-28 Kenichi Handa <[email protected]>
581
582 * Version 0.9.7 released.
583
584 2007-12-28 Kenichi Handa <[email protected]>
585
586 * configure.ac: Versions changed to 0.9.7.
587
588 2007-12-20 Kenichi Handa <[email protected]>
589
590 * src/otfdrive.c (gstring_subst): If a glyph is changed, set the
591 character code to 0, and update GlyphClass.
592
593 2007-10-29 Kenichi Handa <[email protected]>
594
595 * example/otfdump.c (dump_chain_class_set_list): Ignore an element
596 whose offset is zero.
597
598 2007-09-06 Kenichi Handa <[email protected]>
599
600 * src/otfdrive.c (lookup_gpos): Ignore mark glyphs while
601 processing GPOS_MarkBase1.
602
603 2007-08-17 Kenichi Handa <[email protected]>
604
605 * src/otfdrive.c (lookup_gpos): Fix handling of IGNORED_GLYPH.
606
607 2007-08-06 Kenichi Handa <[email protected]>
608
609 * src/otfdrive.c (gstring_subst): If otf->cmap is NULL, set
610 character code of a glyph to 0.
611 (OTF_drive_gsub): If otf->cmap is NULL, try to load it.
612
613 2007-07-13 Kenichi Handa <[email protected]>
614
615 * Version 0.9.6 released.
616
617 2007-07-13 Kenichi Handa <[email protected]>
618
619 * configure.ac: Updated to 0.9.6.
620
621 * src/otf.h (LIBOTF_VERSION): Updated to 0.9.6.
622 (LIBOTF_RELEASE_NUMBER): Updated to 6.
623
624 2007-07-09 Kenichi Handa <[email protected]>
625
626 * src/otfdrive.c (gstring_subst): Remove a glyph if it is ignored
627 because of 0 glyph ID.
628
629 2007-01-09 Kenichi Handa <[email protected]>
630
631 * src/otf.h: Adjusted for C++. Adjusted many prototypes to
632 contain `const' qualifiers.
633
634 * src/otferror.h (otf__error): Add `const' qualifier.
635
636 * src/otferror.c (otf__error, OTF_perror): Add `const' qualifiers.
637
638 * src/otfdrive.c: Add many `const' qualifiers.
639
640 * src/otfopen.c: Add many `const' qualifiers.
641
642 2006-07-25 Kenichi Handa <[email protected]>
643
644 * Version 0.9.5 released.
645
646 2006-07-25 Kenichi Handa <[email protected]>
647
648 * src/otfdrive.c (gstring_subst): Setup all members of struct
649 OTF_Glyph.
650 (lookup_gsub): Call gstring_subst with correct args.
651
652 2006-07-19 Kenichi Handa <[email protected]>
653
654 * libotf.pc.in: New file.
655
656 * Makefile.am (pkgconfigdir, pkgconfig_DATA): New variables.
657
658 * configure.ac: Updated to 0.9.5.
659 (FREETYPE_INC, FREETYPE_LD_FLAGS): AC_SUBST them.
660 (AC_CONFIG_FILES): Include libotf.pc.
661
662 * libotf-config.in: Include @FREETYPE_INC@ and @FREETYPE_LD_FLAGS@
663 in output.
664
665 2006-07-18 Kenichi Handa <[email protected]>
666
667 * example/otfview.c (bitmap): Array increated to cover full
668 Unicode.
669 (fontindex): New variable.
670 (update_glyph_area): Adjusted for the change of `bitmap'.
671 (GlyphProc): Likewise.
672 (help): New function.
673 (main): Accept a new 2nd arg INDEX.
674
675 2006-07-14 Kenichi Handa <[email protected]>
676
677 * src/otfopen.c: Include FT_TRUETYPE_TABLES_H.
678 (make_stream): New arg name. Caller changed.
679 (setup_stream): Delete arg name.
680 (make_stream_from_ft_face): New function.
681 (read_cmap_table): Fix typo (`i'->`j').
682 (read_header_part): New arg face. Caller changed.
683 (OTF_open_ft_face): New function.
684
685 * src/otf.h (LIBOTF_VERSION): Updated to 0.9.5.
686 (LIBOTF_RELEASE_NUMBER): Updated to 5.
687 (OTF_open_ft_face): Extern it.
688
689 2006-07-11 Kenichi Handa <[email protected]>
690
691 * src/otf.h (OTF_ERROR_FT_FACE): New macro.
692
693 2006-07-07 Kenichi Handa <[email protected]>
694
695 * src/otf.h (OTF_Anchor): Distinguish XDeviceTable and
696 YDeviceTable.
697
698 2006-06-23 Kenichi Handa <[email protected]>
699
700 * example/otfview.c (update_glyph_area): Don't use none_pixmap for
701 glyph index 0 if charmap_index is negative.
702
703 * example/otftobdf.c (main): Call dump_image with the arg full as 0.
704
705 * src/otfopen.c (read_table_directory): Fix setting of tag name.
706
707 2006-02-15 Kenichi Handa <[email protected]>
708
709 * example/otfview.c (DumpProc): Fix handling of non-existing glyph.
710 (create_otf_script_widgets): Fix typo; gsub -> gpos.
711
712 2006-02-10 Kenichi Handa <[email protected]>
713
714 * src/otfopen.c (read_table_directory): Fix setting of
715 OTF_TableDirectory->name.
716
717 2006-02-07 Kenichi Handa <[email protected]>
718
719 * example/otfview.c (DumpProc): Fix calculation of x/y offsets.
720
721 2006-01-27 Kenichi Handa <[email protected]>
722
723 * example/otfview.c (DumpProc): Completely re-written to produce
724 PostScirpt instead of PBM.
725
726 2005-12-22 Kenichi Handa <[email protected]>
727
728 * Version 0.9.4 released.
729
730 * src/otf.h (LIBOTF_VERSION): Updated to "0.9.4"
731 (LIBOTF_RELEASE_NUMBER): Update to 4.
732
733 2005-12-22 Kenichi Handa <[email protected]>
734
735 * example/otfview.c (update_glyph_area): Use non_pixmap for
736 non-existing glyphs.
737
738 2005-11-22 Kenichi Handa <[email protected]>
739
740 * example/otfview.c (main) [! HAVE_X11_XAW_COMMAND_H]: Fix args to
741 fprintf.
742
743 * configure.ac: Use AC_CHECK_HEADERS instead of AC_CHECK_HEADER.
744
745 2005-09-02 Kenichi Handa <[email protected]>
746
747 * example/Makefile.am (otfview_LDFLAGS): Use @X11_XT_XAW_XMU@
748 instead of directory listing libraries.
749
750 * autogen.sh: Run automake with -a -c.
751
752 * configure.ac (AC_INIT): Version updated to 0.9.4.
753 (AM_INIT_AUTOMAKE): Likewise.
754 (X11_XT_XAW_XMU): New variable. Set to a library list for Xaw if
755 X11 is available.
756
757 2005-07-11 Kenichi Handa <[email protected]>
758
759 * src/otfdrive.c (OTF_drive_gsub_internal): Call OTF_get_table
760 unconditionally.
761 (OTF_drive_gpos): Likewise.
762
763 * src/otfopen.c (read_gsub_gpos_table): Set *table->address earlier.
764 (OTF_check_features): Set script_list and feature_list according
765 to gsubp. Even if failed in getting features, if all requested
766 features are negative, return 1.
767
768 2005-06-29 Kenichi Handa <[email protected]>
769
770 * example/otfview.c (get_features): Don't return "*" even if all
771 features are being used.
772
773 * src/otfdrive.c (OTF_drive_gsub_internal): Initialize
774 positioning_type member to 0.
775 (OTF_drive_gpos): Likewise.
776
777 2005-06-24 Kenichi Handa <[email protected]>
778
779 * src/otfopen.c (OTF_check_features): If the MSB of a feature tag
780 is set, treat it as a negation flag.
781
782 2005-06-14 Kenichi Handa <[email protected]>
783
784 * src/otfopen.c (OTF_check_features): If gsubp is zero, check gpos
785 scripts and features. Treat feature tag 0 as wildcard.
786
787 2005-05-26 Kenichi Handa <[email protected]>
788
789 * example/otfview.c (langsys_tag): New variable.
790 (get_features): Check if rec->langsys and rec->features are not
791 NULL.
792 (update_seq_area): Delete unused var.
793 (setup_feature_rec): Setup rec->langsys correctly. Don't allocate
794 rec->features here.
795 (compose_script_langsys, decompose_script_langsys): New functions.
796 (ScriptProc): Fix handling of the arg call_data.
797 (create_otf_script_widgets): Check all langsys. Allocate
798 gsub.features and gpos.features here.
799 (create_otf_widgets): Delete unused var.
800
801 * example/otflist.c (print_gsub_gpos_info): Don't print
802 superfluous space.
803 (main): Delete unused variables.
804
805 2005-05-23 Kenichi Handa <[email protected]>
806
807 * src/otfopen.c (OTF_check_features): Fix indexing to
808 feature_list->Feature.
809 (OTF_tag): Handle the case that the length of NAME is short.
810
811 2005-05-21 Kenichi Handa <[email protected]>
812
813 * src/otfopen.c (OTF_get_features): If table_info doesn't have
814 stream nor address, return -1.
815
816 2005-05-19 Kenichi Handa <[email protected]>
817
818 * src/otf.h (OTF_get_scripts, OTF_get_features,
819 OTF_check_features): Extern them.
820
821 * src/otfopen.c (enum OTF_ReaderFlag): New enum.
822 (OTF_TableInfo): Change the prototype of the member `reader'.
823 Caller changed.
824 (read_head_table, read_name_table, read_cmap_table)
825 (read_gdef_table): Adjusted for the change of OTF_TableInfo.
826 (read_feature_list): Seek the stream at first.
827 (read_gsub_gpos_table): Adjusted for the change of OTF_TableInfo.
828 Pay attention to the arg `flag'.
829 (read_gsub_table, read_gpos_table): Adjusted for the change of
830 OTF_TableInfo.
831 (OTF_get_table): Likewise.
832 (OTF_get_scripts, OTF_get_features, OTF_check_features): New
833 functions.
834
835 2005-05-13 Kenichi Handa <[email protected]>
836
837 * src/otfdrive.c (lookup_gsub): Increment `gidx' correctly in the
838 case of GSUB_Ligature1.
839
840 2005-02-18 Kenichi Handa <[email protected]>
841
842 * src/otferror.c (error_message): Allocate it statically.
843 (otf__error): Don't allocate error_message dynamically.
844 (OTF_perror): Adjust for the above changes.
845
846 2005-02-17 Kenichi Handa <[email protected]>
847
848 * example/otflist.c (filter): Accept extentions ".ttc" and ".TTC".
849
850 * src/otfopen.c (read_cmap_table): Delete unsed var.
851
852 * src/otfdrive.c (gstring_subst): Correctly set temp.f.index.
853 (lookup_gsub): Fix updating gidx.
854 (gstring_subst): New arg OTF. Callers changed.
855 (lookup_gsub): New arg OTF. Callers changed.
856
857 2004-12-27 Kenichi Handa <[email protected]>
858
859 * Version 0.9.3 released.
860
861 2004-11-19 Kenichi Handa <[email protected]>
862
863 * libotf-config: Update to version "0.9.3".
864
865 * configure.ac (AC_INIT): Update to 0.9.3.
866 (AM_INIT_AUTOMAKE): Likewise.
867
868 * src/otf.h (LIBOTF_VERSION): Update to "0.9.3".
869 (LIBOTF_RELEASE_NUMBER): Update to 3.
870
871 2004-11-09 Kenichi Handa <[email protected]>
872
873 * src/otf.h (OTF_Glyph): Delete member alternate_set.
874 (OTF_drive_gsub_alternate): Extern it.
875
876 * src/otfdrive.c (lookup_gsub): New arg alternate_subst. Callers
877 changed.
878 (OTF_drive_gsub_internal): Renamed from OTF_drive_gsub.
879 (OTF_drive_gsub): Just call OTF_drive_gsub_internal.
880 (OTF_drive_gsub_alternate): New function.
881
882 * example/otfview.c (alt_subst, do_alternate_subst): New
883 variables.
884 (update_seq_area): If do_alternate_subst, call
885 OTF_drive_gsub_alternate. Correctly set advance. Don't check
886 g->alternate_set.
887 (AltSubstProc): New function.
888 (create_widgets): Create AltSubst widget.
889
890 2004-11-08 Kenichi Handa <[email protected]>
891
892 * example/otfview.c: Include "config.h".
893
894 2004-11-02 Kenichi Handa <[email protected]>
895
896 * example/otfview.c (MAX_FEATURE_COUNT): Delete this macro.
897 (FeatureElement): New type.
898 (FeatureRec): New element num_features and parent.
899 (update_seq_area): Show alternate glyphs if any.
900 (setup_feature_rec): (Re)allocate rec->features. Create widgets.
901 (create_otf_widgets): Don't create widgets here.
902
903 * example/otfdump.c (dump_cmap_table): Support Format 2 of cmap.
904
905 * src/otfopen.c (read_cmap_table): Support Format 2 of cmap.
906
907 * src/otfdrive.c (lookup_gsub): For Format 3, set
908 OTF_Glyph->alternate_set.
909
910 * src/otf.h (OTF_EncodingSubtable2): New members subHeaderCount
911 and glyphIndexCount.
912 (OTF_Glyph): New member alternate_set.
913
914 2004-10-27 Kenichi Handa <[email protected]>
915
916 * example/otfview.c: Pay attention to HAVE_X11_XAW_COMMAND_H.
917
918 * configure.ac: Check existence of X11/Xaw/Command.h.
919
920 2004-09-03 Kenichi Handa <[email protected]>
921
922 * src/otfdrive.c (GSTRING_INSERT): Fix size of reallocating
923 memory.
924 (lookup_gpos): For LooupType 5, fix finding a base/ligature glyph.
925
926 * example/otfview.c (update_seq_area): Use malloc and free for
927 gstring.glyphs.
928
929 2004-08-13 Kenichi Handa <[email protected]>
930
931 * Version 0.9.2 released.
932
933 2004-08-13 Kenichi Handa <[email protected]>
934
935 * src/otfdrive.c (IGNORED_GLYPH): Fix checking of MarkAttachClass.
936
937 * configure.ac: Updated to 0.9.2.
938
939 * src/otf.h (LIBOTF_VERSION): Updated to 0.9.2.
940 (LIBOTF_RELEASE_NUMBER): Updated to 2.
941
942 2004-08-09 Kenichi Handa <[email protected]>
943
944 * Version 0.9.1 released.
945
946 2004-08-09 Kenichi Handa <[email protected]>
947
948 * src/otfdrive.c (setup_lookup_indices): Fix handling of "*" in
949 features.
950
951 * example/otfview.c (update_seq_area): Call OTF_drive_gdef only
952 when otf is not NULL.
953
954 2004-08-07 Kenichi Handa <[email protected]>
955
956 * example/otfview.c (FeatureProc): Highlight selected features by
957 changing border width, not by changing fore and back color.
958 (setup_feature_rec): Setup internal height and width of widgets.
959 (create_otf_widgets): Likewise.
960
961 * src/otfdrive.c (IGNORED_GLYPH): New macro.
962 (gstring_subst, match_ids, match_chain_ids, match_classes)
963 (match_chain_classes, match_coverages, match_chain_coverages):
964 use IGNORED_GLYPH.
965 (lookup_gsub): Likewise. Include OTF_MarkAttachmentType in flag.
966 (lookup_gpos): Likewise.
967
968 2004-08-06 Kenichi Handa <[email protected]>
969
970 * src/otfdrive.c (lookup_gsub): Fix handling of Extension lookup.
971 (lookup_gpos): Support Extension lookup.
972 (gstring_subst): Fix previous change.
973
974 2004-08-05 Kenichi Handa <[email protected]>
975
976 * src/otf.h (enum OTF_LookupFlagBit): Fix OTF_IgnoreMarks.
977
978 * example/otfview.c (update_seq_area): Fix sign of yoff.
979 Support more positioning_type.
980
981 * example/otfdump.c (dump_lookup_subtable_gpos): Add support for
982 LookupType 5.
983
984 * src/otfopen.c (read_ligature_attach): Fix for the case that an
985 offset is NULL.
986
987 * src/otfdrive.c (lookup_gpos): Add support for LookupType 5.
988 Fix handling of flag.
989 (gstring_subst): Fix previous change.
990
991 2004-08-04 Kenichi Handa <[email protected]>
992
993 * example/otfview.c (bidi, reversed): New variables.
994 (update_seq_area): Call OTF_drive_gdef. If reversed is nonzero,
995 reorder glyphs properly. Create pixmap if necessary. Handle
996 OTF_XAdvance and OTF_XAdvDevice.
997 (BidiProc): New function.
998 (create_widgets): Setup bidi.
999
1000 * src/otfdrive.c (gstring_subst): New arg flag. Caller changed.
1001 Ignore glyphs specified in flag.
1002 (match_ids, match_classes, match_coverages): Likewise.
1003 (match_chain_ids, match_chain_classes, match_chain_coverages): New
1004 arg flag.
1005 (lookup_gsub): Fix handling of LookupFlag.
1006 (lookup_gpos): Likewise. Support more LookupType.
1007
1008 * src/otf.h (OTF_LookupFlagIgnoreMask): New macro.
1009
1010 2004-07-29 Kenichi Handa <[email protected]>
1011
1012 * example/otfview.c (create_widgets): Fix width of index glyphs..
1013
1014 2004-07-26 Kenichi Handa <[email protected]>
1015
1016 * src/otfopen.c (read_value_record): Fix typo.
1017
1018 * src/otfdrive.c (lookup_gpos): Don't apply a GPOS feature twice.
1019 (OTF_drive_gpos): Initialize values positioning_type memeber.
1020 (OTF_drive_gsub): Fix previous change.
1021
1022 2004-07-24 Kenichi Handa <[email protected]>
1023
1024 * src/otfdrive.c (gstring_subst): Set `c' and `f.index' of
1025 OTF_Glyph.
1026 (OTF_drive_gsub): Iniialize f.index member of OTF_Glhph.
1027
1028 * src/otf.h (OTF_Glyph): New union member u.index.
1029
1030 2004-07-23 Kenichi Handa <[email protected]>
1031
1032 * example/otfview.c: Big change to implement selection of script.
1033
1034 2004-07-12 Kenichi Handa <[email protected]>
1035
1036 * example/otfview.c: Big change to implement driving OpenType
1037 tables (GSUB and GPOS).
1038
1039 * src/otfdrive.c (get_langsys): If script is NULL, use the first
1040 one in script_list.
1041
1042 2004-07-09 Kenichi Handa <[email protected]>
1043
1044 * src/otfdrive.c (lookup_gpos): Ignore glyphs whose ID is 0 (fix
1045 for the case of LookupType 2).
1046
1047 2004-07-08 Kenichi Handa <[email protected]>
1048
1049 * src/otfopen.c (read_class_set_list): Allocate the array *set
1050 by OTF_CALLOC.
1051
1052 2004-07-07 Kenichi Handa <[email protected]>
1053
1054 * src/otfdrive.c (lookup_gsub): For LookupType 5 Subformat 2, if
1055 ClassSet is not defined, do nothing.
1056
1057 2004-06-29 Kenichi Handa <[email protected]>
1058
1059 * src/otfdrive.c (lookup_gsub): Fix handling of lookup type 6
1060 format 3.
1061
1062 2004-05-28 Kenichi Handa <[email protected]>
1063
1064 * example/otflist.c: Include <sys/types.h> and "config.h".
1065 (next_file): New function.
1066 (main): Call next_file.
1067
1068 * configure.ac: Check functions scandir and alphasort.
1069
1070 2004-05-06 Kenichi Handa <[email protected]>
1071
1072 * example/otftobdf.c (registry): New variable.
1073 (dump_header): Include registry in the font name.
1074 (main): Handle the encoding arg of the format M-N. Without this
1075 arg, generate a font with raw-encoding.
1076
1077 * src/otfdrive.c: Include "config.h". Delete '//' style comments.
1078 (lookup_encoding_0, lookup_encoding_2, lookup_encoding_4)
1079 (lookup_encoding_6, lookup_encoding_8, lookup_encoding_10)
1080 (lookup_encoding_12, OTF_drive_cmap2): New functions.
1081
1082 * src/otfopen.c (read_name): Argument changed. Set
1083 OTF_NameRecord->ascii. If possible, convert Unicode sequence to
1084 ASCII.
1085 (read_name_table): Adjusted for the change of read_name.
1086 (read_cmap_table): Signal an error (not-yet-supported) if format
1087 is 2. Support for formats, 8, 10, 12.
1088 (read_value_record): Clear value_record at first.
1089 (read_lookup_subtable_gpos): Fix for the case subFormat is 1 and
1090 2.
1091 (OTF_open): Check file name extension.
1092
1093 * example/otflist.c: Include <otf.h>.
1094 (FATAL_ERROR): New macro.
1095 (print_tag, print_gsub_gpos_info, help_and_exit): New functions.
1096 (main): Handle -h, --help, -l args. Prefer family/style names
1097 extracted by the otf library.
1098
1099 2004-03-30 Kenichi Handa <[email protected]>
1100
1101 * src/otfopen.c (read_value_record): Clear value_record at
1102 first.
1103 (read_lookup_subtable_gpos): For Lookup Type 1, read Coverage at
1104 first.
1105
1106 2004-03-29 Kenichi Handa <[email protected]>
1107
1108 * example/otfdump.c (dump_lookup_subtable_gsub): For Lookup Type
1109 7, fix arg to dump_lookup_subtable_gsub.
1110 (dump_lookup_subtable_gpos): Support Lookup Type 9.
1111
1112 * autogen.sh: Run automake after autoheader.
1113
1114 * src/otfopen.c (OTF_close): Free otf->filename.
1115
1116 2004-02-01 Kenichi Handa <[email protected]>
1117
1118 * Version 0.9 released.
1119
1120
1121 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
1122 National Institute of Advanced Industrial Science and Technology (AIST)
1123 Registration Number H15PRO112
1124 Copyright (C) 2012, 2013, 2014, 2015 K. Handa <[email protected]>
1125
1126 This file is part of the m17n library.
1127
1128 The m17n library is free software; you can redistribute it and/or
1129 modify it under the terms of the GNU Lesser General Public License
1130 as published by the Free Software Foundation; either version 2.1 of
1131 the License, or (at your option) any later version.
1132
1133 The m17n library is distributed in the hope that it will be useful,
1134 but WITHOUT ANY WARRANTY; without even the implied warranty of
1135 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1136 Lesser General Public License for more details.
1137
1138 You should have received a copy of the GNU Lesser General Public
1139 License along with the m17n library; if not, write to the Free
1140 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
1141 02111-1307, USA.