1 Overview of changes leading to 0.9.3
3 ====================================
5 - Fixed fallback mark positioning for left-to-right text.
7 - Improve mark positioning for the remaining combining classes.
9 - Unbreak Thai and fallback Arabic shaping.
11 - Port Arabic shaper to shape-plan caching.
13 - Use new ICU normalizer functions.
17 Overview of changes leading to 0.9.2
19 ====================================
21 - Over a thousand commits! This is the first major release of HarfBuzz.
23 - HarfBuzz is feature-complete now! It should be in par, or better, than
24 both Pango's shapers and old HarfBuzz / Qt shapers.
26 - New Indic shaper, supporting main Indic scripts, Sinhala, and Khmer.
28 - Improved Arabic shaper, with fallback Arabic shaping, supporting Arabic,
29 Sinhala, N'ko, Mongolian, and Mandaic.
31 - New Thai / Lao shaper.
33 - Tibetan / Hangul support in the generic shaper.
35 - Synthetic GDEF support for fonts without a GDEF table.
37 - Fallback mark positioning for fonts without a GPOS table.
39 - Unicode normalization shaping heuristic during glyph mapping.
41 - New experimental Graphite2 backend.
43 - New Uniscribe backend (primarily for testing).
45 - New CoreText backend (primarily for testing).
47 - Major optimization and speedup.
49 - Test suites and testing infrastructure (work in progress).
51 - Greatly improved hb-view cmdline tool.
53 - hb-shape cmdline tool.
55 - Unicode 6.1 support.
57 Summary of API changes:
61 - Users are expected to only include main header files now (ie. hb.h,
62 hb-glib.h, hb-ft.h, ...)
64 - All struct tag names had their initial underscore removed.
65 Ie. "struct _hb_buffer_t" is "struct hb_buffer_t" now.
67 - All set_user_data() functions now take a "replace" boolean parameter.
69 - hb_buffer_create() takes zero arguments now.
70 Use hb_buffer_pre_allocate() to pre-allocate.
72 - hb_buffer_add_utf*() now accept -1 for length parameteres,
73 meaning "nul-terminated".
75 - hb_direction_t enum values changed.
77 - All *_from_string() APIs now take a length parameter to allow for
78 non-nul-terminated strings. A -1 length means "nul-terminated".
80 - Typedef for hb_language_t changed.
82 - hb_get_table_func_t renamed to hb_reference_table_func_t.
84 - hb_ot_layout_table_choose_script()
86 - Various renames in hb-unicode.h.
90 - hb_buffer_guess_properties()
91 Automatically called by hb_shape().
93 - hb_buffer_normalize_glyphs()
95 - hb_tag_from_string()
101 - hb_face_reference_blob()
102 - hb_face_[sg]et_index()
105 - hb_font_get_glyph_name_func_t
106 hb_font_get_glyph_from_name_func_t
107 hb_font_funcs_set_glyph_name_func()
108 hb_font_funcs_set_glyph_from_name_func()
109 hb_font_get_glyph_name()
110 hb_font_get_glyph_from_name()
111 hb_font_glyph_to_string()
112 hb_font_glyph_from_string()
114 - hb_font_set_funcs_data()
116 - hb_ft_font_set_funcs()
117 - hb_ft_font_get_face()
119 - hb-gobject.h (work in progress)
121 - hb_ot_shape_glyphs_closure()
122 hb_ot_layout_substitute_closure_lookup()
128 - hb_unicode_combining_class_t
130 - hb_unicode_compose_func_t
131 hb_unicode_decompose_func_t
132 hb_unicode_decompose_compatibility_func_t
133 hb_unicode_funcs_set_compose_func()
134 hb_unicode_funcs_set_decompose_func()
135 hb_unicode_funcs_set_decompose_compatibility_func()
137 hb_unicode_decompose()
138 hb_unicode_decompose_compatibility()
142 - hb_ft_get_font_funcs()
144 - hb_ot_layout_substitute_start()
145 hb_ot_layout_substitute_lookup()
146 hb_ot_layout_substitute_finish()
147 hb_ot_layout_position_start()
148 hb_ot_layout_position_lookup()
149 hb_ot_layout_position_finish()
153 Overview of changes leading to 0.6.0
155 ====================================
157 - Vertical text support in GPOS
158 - Almost all API entries have unit tests now, under test/
159 - All thread-safety issues are fixed
161 Summary of API changes follows.
168 hb_language_get_default()
169 hb_direction_to_string()
170 hb_direction_from_string()
171 hb_script_get_horizontal_direction()
175 hb_category_t renamed to hb_unicode_general_category_t
178 hb_language_t is a typed pointers now
184 * Use ISO 15924 tags for hb_script_t:
187 hb_script_from_iso15924_tag()
188 hb_script_to_iso15924_tag()
189 hb_script_from_string()
192 HB_SCRIPT_* enum members changed value.
195 * Buffer API streamlined:
199 hb_buffer_set_length()
200 hb_buffer_allocation_successful()
203 hb_buffer_ensure() renamed to hb_buffer_pre_allocate()
204 hb_buffer_add_glyph() renamed to hb_buffer_add()
208 hb_buffer_clear_positions()
211 hb_buffer_get_glyph_infos() takes an out length parameter now
212 hb_buffer_get_glyph_positions() takes an out length parameter now
215 * Blob API streamlined:
219 hb_blob_get_data_writable()
222 hb_blob_create_empty() renamed to hb_blob_get_empty()
227 hb_blob_is_writable()
228 hb_blob_try_writable()
231 hb_blob_create() takes user_data before destroy now
234 * Unicode functions API:
236 o Unicode function vectors can subclass other unicode function vectors now.
237 Unimplemented callbacks in the subclass automatically chainup to the parent.
239 o All hb_unicode_funcs_t callbacks take a user_data now. Their setters
240 take a user_data and its respective destroy callback.
243 hb_unicode_funcs_get_empty()
244 hb_unicode_funcs_get_default()
245 hb_unicode_funcs_get_parent()
248 hb_unicode_funcs_create() now takes a parent_funcs.
250 o Removed func getter functions:
251 hb_unicode_funcs_get_mirroring_func()
252 hb_unicode_funcs_get_general_category_func()
253 hb_unicode_funcs_get_script_func()
254 hb_unicode_funcs_get_combining_class_func()
255 hb_unicode_funcs_get_eastasian_width_func()
261 hb_face_get_table() renamed to hb_face_reference_table()
262 hb_face_create_for_data() renamed to hb_face_create()
265 hb_face_create_for_tables() takes user_data before destroy now
266 hb_face_reference_table() returns empty blob instead of NULL
267 hb_get_table_func_t accepts the face as first parameter now
271 o Fonts can subclass other fonts now. Unimplemented callbacks in the
272 subclass automatically chainup to the parent. When chaining up,
273 scale is adjusted if the parent font has a different scale.
275 o All hb_font_funcs_t callbacks take a user_data now. Their setters
276 take a user_data and its respective destroy callback.
280 hb_font_funcs_get_empty()
281 hb_font_create_sub_font()
285 hb_font_unset_funcs()
287 o Removed func getter functions:
288 hb_font_funcs_get_glyph_func()
289 hb_font_funcs_get_glyph_advance_func()
290 hb_font_funcs_get_glyph_extents_func()
291 hb_font_funcs_get_contour_point_func()
292 hb_font_funcs_get_kerning_func()
295 hb_font_create() takes a face and references it now
296 hb_font_set_funcs() takes user_data before destroy now
297 hb_font_set_scale() accepts signed integers now
298 hb_font_get_contour_point_func_t now takes glyph first, then point_index
299 hb_font_get_glyph_func_t returns a success boolean now
302 * Changed object model:
304 o All object types have a _get_empty() now:
306 hb_buffer_get_empty()
309 hb_font_funcs_get_empty()
310 hb_unicode_funcs_get_empty()
312 o Added _set_user_data() and _get_user_data() for all object types:
313 hb_blob_get_user_data()
314 hb_blob_set_user_data()
315 hb_buffer_get_user_data()
316 hb_buffer_set_user_data()
317 hb_face_get_user_data()
318 hb_face_set_user_data()
319 hb_font_funcs_get_user_data()
320 hb_font_funcs_set_user_data()
321 hb_font_get_user_data()
322 hb_font_set_user_data()
323 hb_unicode_funcs_get_user_data()
324 hb_unicode_funcs_set_user_data()
326 o Removed the _get_reference_count() from all object types:
327 hb_blob_get_reference_count()
328 hb_buffer_get_reference_count()
329 hb_face_get_reference_count()
330 hb_font_funcs_get_reference_count()
331 hb_font_get_reference_count()
332 hb_unicode_funcs_get_reference_count()
334 o Added _make_immutable() and _is_immutable() for all object types except for buffer:
335 hb_blob_make_immutable()
336 hb_blob_is_immutable()
337 hb_face_make_immutable()
338 hb_face_is_immutable()
341 * Changed API for vertical text support
343 o The following callbacks where removed:
344 hb_font_get_glyph_advance_func_t
345 hb_font_get_kerning_func_t
347 o The following new callbacks added instead:
348 hb_font_get_glyph_h_advance_func_t
349 hb_font_get_glyph_v_advance_func_t
350 hb_font_get_glyph_h_origin_func_t
351 hb_font_get_glyph_v_origin_func_t
352 hb_font_get_glyph_h_kerning_func_t
353 hb_font_get_glyph_v_kerning_func_t
355 o The following API removed as such:
356 hb_font_funcs_set_glyph_advance_func()
357 hb_font_funcs_set_kerning_func()
358 hb_font_get_glyph_advance()
359 hb_font_get_kerning()
361 o New API added instead:
362 hb_font_funcs_set_glyph_h_advance_func()
363 hb_font_funcs_set_glyph_v_advance_func()
364 hb_font_funcs_set_glyph_h_origin_func()
365 hb_font_funcs_set_glyph_v_origin_func()
366 hb_font_funcs_set_glyph_h_kerning_func()
367 hb_font_funcs_set_glyph_v_kerning_func()
368 hb_font_get_glyph_h_advance()
369 hb_font_get_glyph_v_advance()
370 hb_font_get_glyph_h_origin()
371 hb_font_get_glyph_v_origin()
372 hb_font_get_glyph_h_kerning()
373 hb_font_get_glyph_v_kerning()
375 o The following higher-leve API added for convenience:
376 hb_font_get_glyph_advance_for_direction()
377 hb_font_get_glyph_origin_for_direction()
378 hb_font_add_glyph_origin_for_direction()
379 hb_font_subtract_glyph_origin_for_direction()
380 hb_font_get_glyph_kerning_for_direction()
381 hb_font_get_glyph_extents_for_origin()
382 hb_font_get_glyph_contour_point_for_origin()
385 * OpenType Layout API:
388 hb_ot_layout_position_start()
389 hb_ot_layout_substitute_start()
390 hb_ot_layout_substitute_finish()
396 hb_glib_script_to_script()
397 hb_glib_script_from_script()
398 hb_icu_script_to_script()
399 hb_icu_script_from_script()