- add sources.
[platform/framework/web/crosswalk.git] / src / third_party / harfbuzz-ng / NEWS
1 Overview of changes leading to 0.9.17
2 Monday, May 20, 2013
3 =====================================
4
5 - Build fixes.
6 - Fix bug in hb_set_get_min().
7 - Fix regression with Arabic mark positioning / width-zeroing.
8
9 Overview of changes leading to 0.9.16
10 Friday, April 19, 2013
11 =====================================
12
13 - Major speedup in OpenType lookup processing.  With the Amiri
14   Arabic font, this release is over 3x faster than previous
15   release.  All scripts / languages should see this speedup.
16
17 - New --num-iterations option for hb-shape / hb-view; useful for
18   profiling.
19
20 Overview of changes leading to 0.9.15
21 Friday, April 05, 2013
22 =====================================
23
24 - Build fixes.
25 - Fix crasher in graphite2 shaper.
26 - Fix Arabic mark width zeroing regression.
27 - Don't compose Hangul jamo into Unicode syllables.
28
29
30 Overview of changes leading to 0.9.14
31 Thursday, March 21, 2013
32 =====================================
33
34 - Build fixes.
35 - Fix time-consuming sanitize with malicious fonts.
36 - Implement hb_buffer_deserialize_glyphs() for both json and text.
37 - Do not ignore Hangul filler characters.
38 - Indic fixes:
39   * Fix Malayalam pre-base reordering interaction with post-forms.
40   * Further adjust ZWJ handling.  Should fix known regressions from
41     0.9.13.
42
43
44 Overview of changes leading to 0.9.13
45 Thursday, February 25, 2013
46 =====================================
47
48 - Build fixes.
49 - Ngapi HarfBuzz Hackfest in London (February 2013):
50   * Fixed all known Indic bugs,
51   * New Win8-style Myanmar shaper,
52   * New South-East Asian shaper for Tai Tham, Cham, and New Tai Lue,
53   * Smartly ignore Default_Ignorable characters (joiners, etc) wheb
54     matching GSUB/GPOS lookups,
55   * Fix 'Phags-Pa U+A872 shaping,
56   * Fix partial disabling of default-on features,
57   * Allow disabling of TrueType kerning.
58 - Fix possible crasher with broken fonts with overlapping tables.
59 - Removed generated files from git again.  So, one needs ragel to
60   bootstrap from the git tree.
61
62 API changes:
63 - hb_shape() and related APIs now abort if buffer direction is
64   HB_DIRECTION_INVALID.  Previously, hb_shape() was calling
65   hb_buffer_guess_segment_properties() on the buffer before
66   shaping.  The heuristics in that function are fragile.  If the
67   user really wants the old behvaior, they can call that function
68   right before calling hb_shape() to get the old behavior.
69 - hb_blob_create_sub_blob() always creates sub-blob with
70   HB_MEMORY_MODE_READONLY.  See comments for the reason.
71
72
73 Overview of changes leading to 0.9.12
74 Thursday, January 18, 2013
75 =====================================
76
77 - Build fixes for Sun compiler.
78 - Minor bug fix.
79
80 Overview of changes leading to 0.9.11
81 Thursday, January 10, 2013
82 =====================================
83
84 - Build fixes.
85 - Fix GPOS mark attachment with null Anchor offsets.
86 - [Indic] Fix old-spec reordering of viramas if sequence ends in one.
87 - Fix multi-threaded shaper data creation crash.
88 - Add atomic ops for Solaris.
89
90 API changes:
91 - Rename hb_buffer_clear() to hb_buffer_clear_contents().
92
93
94 Overview of changes leading to 0.9.10
95 Thursday, January 3, 2013
96 =====================================
97
98 - [Indic] Fixed rendering of Malayalam dot-reph
99 - Updated OT language tags.
100 - Updated graphite2 backend.
101 - Improved hb_ot_layout_get_size_params() logic.
102 - Improve hb-shape/hb-view help output.
103 - Fixed hb-set.h implementation to not crash.
104 - Fixed various issues with hb_ot_layout_collect_lookups().
105 - Various build fixes.
106
107 New API:
108
109 hb_graphite2_face_get_gr_face()
110 hb_graphite2_font_get_gr_font()
111 hb_coretext_face_get_cg_font()
112
113 Modified API:
114
115 hb_ot_layout_get_size_params()
116
117
118 Overview of changes leading to 0.9.9
119 Wednesday, December 5, 2012
120 ====================================
121
122 - Fix build on Windows.
123 - Minor improvements.
124
125
126 Overview of changes leading to 0.9.8
127 Tuesday, December 4, 2012
128 ====================================
129
130
131 - Actually implement hb_shape_plan_get_shaper ().
132 - Make UCDB data tables const.
133 - Lots of internal refactoring in OTLayout tables.
134 - Flesh out hb_ot_layout_lookup_collect_glyphs().
135
136 New API:
137
138 hb_ot_layout_collect_lookups()
139 hb_ot_layout_get_size_params()
140
141
142 Overview of changes leading to 0.9.7
143 Sunday, November 21, 2012
144 ====================================
145
146
147 HarfBuzz "All-You-Can-Eat-Sushi" (aka Vancouver) Hackfest and follow-on fixes.
148
149 - Fix Arabic contextual joining using pre-context text.
150 - Fix Sinhala "split matra" mess.
151 - Fix Khmer shaping with broken fonts.
152 - Implement Thai "PUA" shaping for old fonts.
153 - Do NOT route Kharoshthi script through the Indic shaper.
154 - Disable fallback positioning for Indic and Thai shapers.
155 - Misc fixes.
156
157
158 hb-shape / hb-view changes:
159
160 - Add --text-before and --text-after
161 - Add --bot / --eot / --preserve-default-ignorables
162 - hb-shape --output-format=json
163
164
165 New API:
166
167 hb_buffer_clear()
168
169 hb_buffer_flags_t
170
171 HB_BUFFER_FLAGS_DEFAULT
172 HB_BUFFER_FLAG_BOT
173 HB_BUFFER_FLAG_EOT
174 HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES
175
176 hb_buffer_set_flags()
177 hb_buffer_get_flags()
178
179 HB_BUFFER_SERIALIZE_FLAGS
180 hb_buffer_serialize_glyphs()
181 hb_buffer_deserialize_glyphs()
182 hb_buffer_serialize_list_formats()
183
184 hb_set_add_range()
185 hb_set_del_range()
186 hb_set_get_population()
187 hb_set_next_range()
188
189 hb_face_[sg]et_glyph_count()
190
191 hb_segment_properties_t
192 HB_SEGMENT_PROPERTIES_DEFAULT
193 hb_segment_properties_equal()
194 hb_segment_properties_hash()
195
196 hb_buffer_set_segment_properties()
197 hb_buffer_get_segment_properties()
198
199 hb_ot_layout_glyph_class_t
200 hb_ot_layout_get_glyph_class()
201 hb_ot_layout_get_glyphs_in_class()
202
203 hb_shape_plan_t
204 hb_shape_plan_create()
205 hb_shape_plan_create_cached()
206 hb_shape_plan_get_empty()
207 hb_shape_plan_reference()
208 hb_shape_plan_destroy()
209 hb_shape_plan_set_user_data()
210 hb_shape_plan_get_user_data()
211 hb_shape_plan_execute()
212 hb_shape_plan_get_shaper()
213
214 hb_ot_shape_plan_collect_lookups()
215
216
217 API changes:
218
219 - Remove "mask" parameter from hb_buffer_add().
220 - Rename hb_ot_layout_would_substitute_lookup() and hb_ot_layout_substitute_closure_lookup().
221 - hb-set.h API const correction.
222 - Renamed hb_set_min/max() to hb_set_get_min/max().
223 - Rename hb_ot_layout_feature_get_lookup_indexes() to hb_ot_layout_feature_get_lookups().
224 - Rename hb_buffer_guess_properties() to hb_buffer_guess_segment_properties().
225
226
227
228 Overview of changes leading to 0.9.6
229 Sunday, November 13, 2012
230 ====================================
231
232 - Don't clear pre-context text if no new context is provided.
233 - Fix ReverseChainingSubstLookup, which was totally borked.
234 - Adjust output format of hb-shape a bit.
235 - Include config.h.in in-tree.  Makes it easier for alternate build systems.
236 - Fix hb_buffer_set_length(buffer, 0) invalid memory allocation.
237 - Use ICU LayoutEngine's C API instead of C++.  Avoids much headache.
238 - Drop glyphs for all of Unicode Default_Ignorable characters.
239 - Misc build fixes.
240
241 Arabic shaper:
242 - Enable 'dlig' and 'mset' features in Arabic shaper.
243 - Implement 'Phags-pa shaping, improve Mongolian.
244
245 Indic shaper:
246 - Decompose Sinhala split matras the way old HarfBuzz / Pango did.
247 - Initial support for Consonant Medials.
248 - Start adding new-style Myanmar shaping.
249 - Make reph and 'pref' logic introspect the font.
250 - Route Meetei-Mayek through the Indic shaper.
251 - Don't apply 'liga' in Indic shaper.
252 - Improve Malayalam pre-base reordering Ra interaction with Chillus.
253
254
255
256 Overview of changes leading to 0.9.5
257 Sunday, October 14, 2012
258 ====================================
259
260 - Synthetic-GSUB Arabic fallback shaping.
261
262 - Misc Indic improvements.
263
264 - Add build system support for pthread.
265
266 - Imported UCDN for in-tree Unicode callbacks implementation.
267
268 - Context-aware Arabic joining.
269
270 - Misc other fixes.
271
272 - New API:
273
274   hb_feature_to/from-string()
275   hb_buffer_[sg]et_content_type()
276
277
278
279 Overview of changes leading to 0.9.4
280 Tuesday, Sep 03, 2012
281 ====================================
282
283 - Indic improvements with old-spec Malayalam.
284
285 - Better fallback glyph positioning, specially with Thai / Lao marks.
286
287 - Implement dotted-circle insertion.
288
289 - Better Arabic fallback shaping / ligation.
290
291 - Added ICU LayoutEngine backend for testing.  Call it by the 'icu_le' name.
292
293 - Misc fixes.
294
295
296
297 Overview of changes leading to 0.9.3
298 Friday, Aug 18, 2012
299 ====================================
300
301 - Fixed fallback mark positioning for left-to-right text.
302
303 - Improve mark positioning for the remaining combining classes.
304
305 - Unbreak Thai and fallback Arabic shaping.
306
307 - Port Arabic shaper to shape-plan caching.
308
309 - Use new ICU normalizer functions.
310
311
312
313 Overview of changes leading to 0.9.2
314 Friday, Aug 10, 2012
315 ====================================
316
317 - Over a thousand commits!  This is the first major release of HarfBuzz.
318
319 - HarfBuzz is feature-complete now!  It should be in par, or better, than
320   both Pango's shapers and old HarfBuzz / Qt shapers.
321
322 - New Indic shaper, supporting main Indic scripts, Sinhala, and Khmer.
323
324 - Improved Arabic shaper, with fallback Arabic shaping, supporting Arabic,
325   Sinhala, N'ko, Mongolian, and Mandaic.
326
327 - New Thai / Lao shaper.
328
329 - Tibetan / Hangul support in the generic shaper.
330
331 - Synthetic GDEF support for fonts without a GDEF table.
332
333 - Fallback mark positioning for fonts without a GPOS table.
334
335 - Unicode normalization shaping heuristic during glyph mapping.
336
337 - New experimental Graphite2 backend.
338
339 - New Uniscribe backend (primarily for testing).
340
341 - New CoreText backend (primarily for testing).
342
343 - Major optimization and speedup.
344
345 - Test suites and testing infrastructure (work in progress).
346
347 - Greatly improved hb-view cmdline tool.
348
349 - hb-shape cmdline tool.
350
351 - Unicode 6.1 support.
352
353 Summary of API changes:
354
355 o Changed API:
356
357   - Users are expected to only include main header files now (ie. hb.h,
358     hb-glib.h, hb-ft.h, ...)
359
360   - All struct tag names had their initial underscore removed.
361     Ie. "struct _hb_buffer_t" is "struct hb_buffer_t" now.
362
363   - All set_user_data() functions now take a "replace" boolean parameter.
364
365   - hb_buffer_create() takes zero arguments now.
366     Use hb_buffer_pre_allocate() to pre-allocate.
367
368   - hb_buffer_add_utf*() now accept -1 for length parameteres,
369     meaning "nul-terminated".
370
371   - hb_direction_t enum values changed.
372
373   - All *_from_string() APIs now take a length parameter to allow for
374     non-nul-terminated strings. A -1 length means "nul-terminated".
375
376   - Typedef for hb_language_t changed.
377
378   - hb_get_table_func_t renamed to hb_reference_table_func_t.
379
380   - hb_ot_layout_table_choose_script()
381
382   - Various renames in hb-unicode.h.
383
384 o New API:
385
386   - hb_buffer_guess_properties()
387     Automatically called by hb_shape().
388
389   - hb_buffer_normalize_glyphs()
390
391   - hb_tag_from_string()
392
393   - hb-coretext.h
394
395   - hb-uniscribe.h
396
397   - hb_face_reference_blob()
398   - hb_face_[sg]et_index()
399   - hb_face_set_upem()
400
401   - hb_font_get_glyph_name_func_t
402     hb_font_get_glyph_from_name_func_t
403     hb_font_funcs_set_glyph_name_func()
404     hb_font_funcs_set_glyph_from_name_func()
405     hb_font_get_glyph_name()
406     hb_font_get_glyph_from_name()
407     hb_font_glyph_to_string()
408     hb_font_glyph_from_string()
409
410   - hb_font_set_funcs_data()
411
412   - hb_ft_font_set_funcs()
413   - hb_ft_font_get_face()
414
415   - hb-gobject.h (work in progress)
416
417   - hb_ot_shape_glyphs_closure()
418     hb_ot_layout_substitute_closure_lookup()
419
420   - hb-set.h
421
422   - hb_shape_full()
423
424   - hb_unicode_combining_class_t
425
426   - hb_unicode_compose_func_t
427     hb_unicode_decompose_func_t
428     hb_unicode_decompose_compatibility_func_t
429     hb_unicode_funcs_set_compose_func()
430     hb_unicode_funcs_set_decompose_func()
431     hb_unicode_funcs_set_decompose_compatibility_func()
432     hb_unicode_compose()
433     hb_unicode_decompose()
434     hb_unicode_decompose_compatibility()
435
436 o Removed API:
437
438   - hb_ft_get_font_funcs()
439
440   - hb_ot_layout_substitute_start()
441     hb_ot_layout_substitute_lookup()
442     hb_ot_layout_substitute_finish()
443     hb_ot_layout_position_start()
444     hb_ot_layout_position_lookup()
445     hb_ot_layout_position_finish()
446
447
448
449 Overview of changes leading to 0.6.0
450 Friday, May 27, 2011
451 ====================================
452
453 - Vertical text support in GPOS
454 - Almost all API entries have unit tests now, under test/
455 - All thread-safety issues are fixed
456
457 Summary of API changes follows.
458
459
460 * Simple Types API:
461
462   o New API:
463     HB_LANGUAGE_INVALID
464     hb_language_get_default()
465     hb_direction_to_string()
466     hb_direction_from_string()
467     hb_script_get_horizontal_direction()
468     HB_UNTAG()
469
470   o Renamed API:
471     hb_category_t renamed to hb_unicode_general_category_t
472
473   o Changed API:
474     hb_language_t is a typed pointers now
475
476   o Removed API:
477     HB_TAG_STR()
478
479
480 * Use ISO 15924 tags for hb_script_t:
481
482   o New API:
483     hb_script_from_iso15924_tag()
484     hb_script_to_iso15924_tag()
485     hb_script_from_string()
486
487   o Changed API:
488     HB_SCRIPT_* enum members changed value.
489
490
491 * Buffer API streamlined:
492
493   o New API:
494     hb_buffer_reset()
495     hb_buffer_set_length()
496     hb_buffer_allocation_successful()
497
498   o Renamed API:
499     hb_buffer_ensure() renamed to hb_buffer_pre_allocate()
500     hb_buffer_add_glyph() renamed to hb_buffer_add()
501
502   o Removed API:
503     hb_buffer_clear()
504     hb_buffer_clear_positions()
505
506   o Changed API:
507     hb_buffer_get_glyph_infos() takes an out length parameter now
508     hb_buffer_get_glyph_positions() takes an out length parameter now
509
510
511 * Blob API streamlined:
512
513   o New API:
514     hb_blob_get_data()
515     hb_blob_get_data_writable()
516
517   o Renamed API:
518     hb_blob_create_empty() renamed to hb_blob_get_empty()
519
520   o Removed API:
521     hb_blob_lock()
522     hb_blob_unlock()
523     hb_blob_is_writable()
524     hb_blob_try_writable()
525
526   o Changed API:
527     hb_blob_create() takes user_data before destroy now
528
529
530 * Unicode functions API:
531
532   o Unicode function vectors can subclass other unicode function vectors now.
533     Unimplemented callbacks in the subclass automatically chainup to the parent.
534
535   o All hb_unicode_funcs_t callbacks take a user_data now.  Their setters
536     take a user_data and its respective destroy callback.
537
538   o New API:
539     hb_unicode_funcs_get_empty()
540     hb_unicode_funcs_get_default()
541     hb_unicode_funcs_get_parent()
542
543   o Changed API:
544     hb_unicode_funcs_create() now takes a parent_funcs.
545
546   o Removed func getter functions:
547     hb_unicode_funcs_get_mirroring_func()
548     hb_unicode_funcs_get_general_category_func()
549     hb_unicode_funcs_get_script_func()
550     hb_unicode_funcs_get_combining_class_func()
551     hb_unicode_funcs_get_eastasian_width_func()
552
553
554 * Face API:
555
556   o Renamed API:
557     hb_face_get_table() renamed to hb_face_reference_table()
558     hb_face_create_for_data() renamed to hb_face_create()
559
560   o Changed API:
561     hb_face_create_for_tables() takes user_data before destroy now
562     hb_face_reference_table() returns empty blob instead of NULL
563     hb_get_table_func_t accepts the face as first parameter now
564
565 * Font API:
566
567   o Fonts can subclass other fonts now.  Unimplemented callbacks in the
568     subclass automatically chainup to the parent.  When chaining up,
569     scale is adjusted if the parent font has a different scale.
570
571   o All hb_font_funcs_t callbacks take a user_data now.  Their setters
572     take a user_data and its respective destroy callback.
573
574   o New API:
575     hb_font_get_parent()
576     hb_font_funcs_get_empty()
577     hb_font_create_sub_font()
578
579   o Removed API:
580     hb_font_funcs_copy()
581     hb_font_unset_funcs()
582
583   o Removed func getter functions:
584     hb_font_funcs_get_glyph_func()
585     hb_font_funcs_get_glyph_advance_func()
586     hb_font_funcs_get_glyph_extents_func()
587     hb_font_funcs_get_contour_point_func()
588     hb_font_funcs_get_kerning_func()
589
590   o Changed API:
591     hb_font_create() takes a face and references it now
592     hb_font_set_funcs() takes user_data before destroy now
593     hb_font_set_scale() accepts signed integers now
594     hb_font_get_contour_point_func_t now takes glyph first, then point_index
595     hb_font_get_glyph_func_t returns a success boolean now
596
597
598 * Changed object model:
599
600   o All object types have a _get_empty() now:
601     hb_blob_get_empty()
602     hb_buffer_get_empty()
603     hb_face_get_empty()
604     hb_font_get_empty()
605     hb_font_funcs_get_empty()
606     hb_unicode_funcs_get_empty()
607
608   o Added _set_user_data() and _get_user_data() for all object types:
609     hb_blob_get_user_data()
610     hb_blob_set_user_data()
611     hb_buffer_get_user_data()
612     hb_buffer_set_user_data()
613     hb_face_get_user_data()
614     hb_face_set_user_data()
615     hb_font_funcs_get_user_data()
616     hb_font_funcs_set_user_data()
617     hb_font_get_user_data()
618     hb_font_set_user_data()
619     hb_unicode_funcs_get_user_data()
620     hb_unicode_funcs_set_user_data()
621
622   o Removed the _get_reference_count() from all object types:
623     hb_blob_get_reference_count()
624     hb_buffer_get_reference_count()
625     hb_face_get_reference_count()
626     hb_font_funcs_get_reference_count()
627     hb_font_get_reference_count()
628     hb_unicode_funcs_get_reference_count()
629
630   o Added _make_immutable() and _is_immutable() for all object types except for buffer:
631     hb_blob_make_immutable()
632     hb_blob_is_immutable()
633     hb_face_make_immutable()
634     hb_face_is_immutable()
635
636
637 * Changed API for vertical text support
638
639   o The following callbacks where removed:
640     hb_font_get_glyph_advance_func_t
641     hb_font_get_kerning_func_t
642
643   o The following new callbacks added instead:
644     hb_font_get_glyph_h_advance_func_t
645     hb_font_get_glyph_v_advance_func_t
646     hb_font_get_glyph_h_origin_func_t
647     hb_font_get_glyph_v_origin_func_t
648     hb_font_get_glyph_h_kerning_func_t
649     hb_font_get_glyph_v_kerning_func_t
650
651   o The following API removed as such:
652     hb_font_funcs_set_glyph_advance_func()
653     hb_font_funcs_set_kerning_func()
654     hb_font_get_glyph_advance()
655     hb_font_get_kerning()
656
657   o New API added instead:
658     hb_font_funcs_set_glyph_h_advance_func()
659     hb_font_funcs_set_glyph_v_advance_func()
660     hb_font_funcs_set_glyph_h_origin_func()
661     hb_font_funcs_set_glyph_v_origin_func()
662     hb_font_funcs_set_glyph_h_kerning_func()
663     hb_font_funcs_set_glyph_v_kerning_func()
664     hb_font_get_glyph_h_advance()
665     hb_font_get_glyph_v_advance()
666     hb_font_get_glyph_h_origin()
667     hb_font_get_glyph_v_origin()
668     hb_font_get_glyph_h_kerning()
669     hb_font_get_glyph_v_kerning()
670
671   o The following higher-leve API added for convenience:
672     hb_font_get_glyph_advance_for_direction()
673     hb_font_get_glyph_origin_for_direction()
674     hb_font_add_glyph_origin_for_direction()
675     hb_font_subtract_glyph_origin_for_direction()
676     hb_font_get_glyph_kerning_for_direction()
677     hb_font_get_glyph_extents_for_origin()
678     hb_font_get_glyph_contour_point_for_origin()
679
680
681 * OpenType Layout API:
682
683   o New API:
684     hb_ot_layout_position_start()
685     hb_ot_layout_substitute_start()
686     hb_ot_layout_substitute_finish()
687
688
689 * Glue code:
690
691   o New API:
692     hb_glib_script_to_script()
693     hb_glib_script_from_script()
694     hb_icu_script_to_script()
695     hb_icu_script_from_script()
696
697
698 * Version API added:
699
700   o New API:
701     HB_VERSION_MAJOR
702     HB_VERSION_MINOR
703     HB_VERSION_MICRO
704     HB_VERSION_STRING
705     HB_VERSION_CHECK()
706     hb_version()
707     hb_version_string()
708     hb_version_check()
709
710