1 Overview of changes leading to 0.9.33 2 Tuesday, July 22, 2014 3 ===================================== 4 5 - Turn off ARabic 'cswh' feature that was accidentally turned on. 6 - Add HB_TAG_MAX_SIGNED. 7 - Make hb_face_make_immutable() really make face immutable! 8 - Windows build fixes. 9 10 11 Overview of changes leading to 0.9.32 12 Thursday, July 17, 2014 13 ===================================== 14 15 - Apply Arabic shaping features in spec order exactly. 16 - Another fix for Mongolian free variation selectors. 17 - For non-Arabic scripts in Arabic shaper apply 'rlig' and 'calt' 18 together. 19 - Minor adjustment to U+FFFD logic. 20 - Fix hb-coretext build. 21 22 23 Overview of changes leading to 0.9.31 24 Wednesday, July 16, 2014 25 ===================================== 26 27 - Only accept valid UTF-8/16/32; we missed many cases before. 28 - Better shaping of invalid UTF-8/16/32. Falls back to 29 U+FFFD REPLACEMENT CHARACTER now. 30 - With all changes in this release, the buffer will contain fully 31 valid Unicode after hb_buffer_add_utf8/16/32 no matter how 32 broken the input is. This can be overriden though. See below. 33 - Fix Mongolian Variation Selectors for fonts without GDEF. 34 - Fix minor invalid buffer access. 35 - Accept zh-Hant and zh-Hans language tags. hb_ot_tag_to_language() 36 now uses these instead of private tags. 37 - Build fixes. 38 - New API: 39 * hb_buffer_add_codepoints(). This does what hb_buffer_add_utf32() 40 used to do, ie. no validity check on the input at all. add_utf32 41 now replaces invalid Unicode codepoints with the replacement 42 character (see below). 43 * hb_buffer_set_replacement_codepoint() 44 * hb_buffer_get_replacement_codepoint() 45 Previously, in hb_buffer_add_utf8 and hb_buffer_add_utf16, when 46 we detected broken input, we replaced that with (hb_codepoint_t)-1. 47 This has changed to use U+FFFD now, but can be changed using these 48 new API. 49 50 51 Overview of changes leading to 0.9.30 52 Wednesday, July 9, 2014 53 ===================================== 54 55 - Update to Unicode 7.0.0: 56 * New scripts Manichaean and Psalter Pahlavi are shaped using 57 Arabic shaper. 58 * All the other new scripts to through the generic shaper for 59 now. 60 - Minor Indic improvements. 61 - Fix graphite2 backend cluster mapping [crasher!] 62 - API changes: 63 * New HB_SCRIPT_* values for Unicode 7.0 scripts. 64 * New function hb_ot_layout_language_get_required_feature(). 65 - Build fixes. 66 67 68 Overview of changes leading to 0.9.29 69 Thursday, May 29, 2014 70 ===================================== 71 72 - Implement cmap in hb-ot-font.h. No variation-selectors yet. 73 - Myanmar: Allow MedialYa+Asat. 74 - Various Indic fixes: 75 * Support most characters in Extended Devanagary and Vedic 76 Unicode blocks. 77 * Allow digits and a some punctuation as consonant placeholders. 78 - Build fixes. 79 80 81 Overview of changes leading to 0.9.28 82 Monday, April 28, 2014 83 ===================================== 84 85 - Unbreak old-spec Indic shaping. (bug 76705) 86 - Fix shaping of U+17DD and U+0FC6. 87 - Add HB_NO_MERGE_CLUSTERS build option. NOT to be enabled by default 88 for shipping libraries. It's an option for further experimentation 89 right now. When we are sure how to do it properly, we will add 90 public run-time API for the functionality. 91 - Build fixes. 92 93 94 Overview of changes leading to 0.9.27 95 Tuesday, March 18, 2014 96 ===================================== 97 98 - Don't use "register" storage class specifier 99 - Wrap definition of free_langs() with HAVE_ATEXIT 100 - Add coretext_aat shaper and hb_coretext_face_create() constructor 101 - If HAVE_ICU_BUILTIN is defined, use hb-icu Unicode callbacks 102 - Add Myanmar test case from OpenType Myanmar spec 103 - Only do fallback Hebrew composition if no GPOS 'mark' available 104 - Allow bootstrapping without gtk-doc 105 - Use AM_MISSING_PROG for ragel and git 106 - Typo in ucdn's Makefile.am 107 - Improve MemoryBarrier() implementation 108 109 110 Overview of changes leading to 0.9.26 111 Thursday, January 30, 2014 112 ===================================== 113 114 - Misc fixes. 115 - Fix application of 'rtlm' feature. 116 - Automatically apply frac/numr/dnom around U+2044 FRACTION SLASH. 117 - New header: hb-ot-shape.h 118 - Uniscribe: fix scratch-buffer accounting. 119 - Reorder Tai Tham SAKOT to after tone-marks. 120 - Add Hangul shaper. 121 - New files: 122 hb-ot-shape-complex-hangul.cc 123 hb-ot-shape-complex-hebrew.cc 124 hb-ot-shape-complex-tibetan.cc 125 - Disable 'cswh' feature in Arabic shaper. 126 - Coretext: better handle surrogate pairs. 127 - Add HB_TAG_MAX and _HB_SCRIPT_MAX_VALUE. 128 129 130 Overview of changes leading to 0.9.25 131 Wednesday, December 4, 2013 132 ===================================== 133 134 - Myanmar shaper improvements. 135 - Avoid font fallback in CoreText backend. 136 - Additional OpenType language tag mappiongs. 137 - More aggressive shape-plan caching. 138 - Build with / require automake 1.13. 139 - Build with libtool 2.4.2.418 alpha to support ppc64le. 140 141 142 Overview of changes leading to 0.9.24 143 Tuesday, November 13, 2013 144 ===================================== 145 146 - Misc compiler warning fixes with clang. 147 - No functional changes. 148 149 150 Overview of changes leading to 0.9.23 151 Monday, October 28, 2013 152 ===================================== 153 154 - "Udupi HarfBuzz Hackfest", Paris, October 14..18 2013. 155 - Fix (Chain)Context recursion with non-monotone lookup positions. 156 - Misc Indic bug fixes. 157 - New Javanese / Buginese shaping, similar to Windows 8.1. 158 159 160 Overview of changes leading to 0.9.22 161 Thursday, October 3, 2013 162 ===================================== 163 164 - Fix use-after-end-of-scope in hb_language_from_string(). 165 - Fix hiding of default_ignorables if font doesn't have space glyph. 166 - Protect against out-of-range lookup indices. 167 168 - API Changes: 169 170 * Added hb_ot_layout_table_get_lookup_count() 171 172 173 Overview of changes leading to 0.9.21 174 Monday, September 16, 2013 175 ===================================== 176 177 - Rename gobject-introspection library name from harfbuzz to HarfBuzz. 178 - Remove (long disabled) hb-old and hb-icu-le test shapers. 179 - Misc gtk-doc and gobject-introspection annotations. 180 - Misc fixes. 181 - API changes: 182 183 * Add HB_SET_VALUE_INVALID 184 185 Overview of changes leading to 0.9.20 186 Thursday, August 29, 2013 187 ===================================== 188 189 General: 190 - Misc substitute_closure() fixes. 191 - Build fixes. 192 193 Documentation: 194 - gtk-doc boilerplate integrated. Docs are built now, but 195 contain no contents. By next release hopefully we have 196 some content in. Enable using --enable-gtk-doc. 197 198 GObject and Introspection: 199 - Added harfbuzz-gobject library (hb-gobject.h) that has type 200 bindings for all HarfBuzz objects and enums. Enable using 201 --with-gobject. 202 - Added gobject-introspection boilerplate. Nothing useful 203 right now. Work in progress. Gets enabled automatically if 204 --with-gobject is used. Override with --disable-introspection. 205 206 OpenType shaper: 207 - Apply 'mark' in Myanmar shaper. 208 - Don't apply 'dlig' by default. 209 210 Uniscribe shaper: 211 - Support user features. 212 - Fix loading of fonts that are also installed on the system. 213 - Fix shaping of Arabic Presentation Forms. 214 - Fix build with wide chars. 215 216 CoreText shaper: 217 - Support user features. 218 219 Source changes: 220 - hb_face_t code moved to hb-face.h / hb-face.cc. 221 - Added hb-deprecated.h. 222 223 API changes: 224 - Added HB_DISABLE_DEPRECATED. 225 - Deprecated HB_SCRIPT_CANADIAN_ABORIGINAL; replaced by 226 HB_SCRIPT_CANADIAN_SYLLABICS. 227 - Deprecated HB_BUFFER_FLAGS_DEFAULT; replaced by 228 HB_BUFFER_FLAG_DEFAULT. 229 - Deprecated HB_BUFFER_SERIALIZE_FLAGS_DEFAULT; replaced by 230 HB_BUFFER_SERIALIZE_FLAG_DEFAULT. 231 232 233 Overview of changes leading to 0.9.19 234 Tuesday, July 16, 2013 235 ===================================== 236 237 - Build fixes. 238 - Better handling of multiple variation selectors in a row. 239 - Pass on variation selector to GSUB if not consumed by cmap. 240 - Fix undefined memory access. 241 - Add Javanese config to Indic shaper. 242 - Misc bug fixes. 243 244 Overview of changes leading to 0.9.18 245 Tuesday, May 28, 2013 246 ===================================== 247 248 New build system: 249 250 - All unneeded code is all disabled by default, 251 252 - Uniscribe and CoreText shapers can be enabled with their --with options, 253 254 - icu_le and old shapers cannot be enabled for now, 255 256 - glib, freetype, and cairo will be detected automatically. 257 They can be force on/off'ed with their --with options, 258 259 - icu and graphite2 are default off, can be enabled with their --with 260 options, 261 262 Moreover, ICU support is now build into a separate library: 263 libharfbuzz-icu.so, and a new harfbuzz-icu.pc is shipped for it. 264 Distros can enable ICU now without every application on earth 265 getting linked to via libharfbuzz.so. 266 267 For distros I recommend that they make sure they are building --with-glib 268 --with-freetype --with-cairo, --with-icu, and optionally --with-graphite2; 269 And package harfbuzz and harfbuzz-icu separately. 270 271 272 Overview of changes leading to 0.9.17 273 Monday, May 20, 2013 274 ===================================== 275 276 - Build fixes. 277 - Fix bug in hb_set_get_min(). 278 - Fix regression with Arabic mark positioning / width-zeroing. 279 280 Overview of changes leading to 0.9.16 281 Friday, April 19, 2013 282 ===================================== 283 284 - Major speedup in OpenType lookup processing. With the Amiri 285 Arabic font, this release is over 3x faster than previous 286 release. All scripts / languages should see this speedup. 287 288 - New --num-iterations option for hb-shape / hb-view; useful for 289 profiling. 290 291 Overview of changes leading to 0.9.15 292 Friday, April 05, 2013 293 ===================================== 294 295 - Build fixes. 296 - Fix crasher in graphite2 shaper. 297 - Fix Arabic mark width zeroing regression. 298 - Don't compose Hangul jamo into Unicode syllables. 299 300 301 Overview of changes leading to 0.9.14 302 Thursday, March 21, 2013 303 ===================================== 304 305 - Build fixes. 306 - Fix time-consuming sanitize with malicious fonts. 307 - Implement hb_buffer_deserialize_glyphs() for both json and text. 308 - Do not ignore Hangul filler characters. 309 - Indic fixes: 310 * Fix Malayalam pre-base reordering interaction with post-forms. 311 * Further adjust ZWJ handling. Should fix known regressions from 312 0.9.13. 313 314 315 Overview of changes leading to 0.9.13 316 Thursday, February 25, 2013 317 ===================================== 318 319 - Build fixes. 320 - Ngapi HarfBuzz Hackfest in London (February 2013): 321 * Fixed all known Indic bugs, 322 * New Win8-style Myanmar shaper, 323 * New South-East Asian shaper for Tai Tham, Cham, and New Tai Lue, 324 * Smartly ignore Default_Ignorable characters (joiners, etc) wheb 325 matching GSUB/GPOS lookups, 326 * Fix 'Phags-Pa U+A872 shaping, 327 * Fix partial disabling of default-on features, 328 * Allow disabling of TrueType kerning. 329 - Fix possible crasher with broken fonts with overlapping tables. 330 - Removed generated files from git again. So, one needs ragel to 331 bootstrap from the git tree. 332 333 API changes: 334 - hb_shape() and related APIs now abort if buffer direction is 335 HB_DIRECTION_INVALID. Previously, hb_shape() was calling 336 hb_buffer_guess_segment_properties() on the buffer before 337 shaping. The heuristics in that function are fragile. If the 338 user really wants the old behvaior, they can call that function 339 right before calling hb_shape() to get the old behavior. 340 - hb_blob_create_sub_blob() always creates sub-blob with 341 HB_MEMORY_MODE_READONLY. See comments for the reason. 342 343 344 Overview of changes leading to 0.9.12 345 Thursday, January 18, 2013 346 ===================================== 347 348 - Build fixes for Sun compiler. 349 - Minor bug fix. 350 351 Overview of changes leading to 0.9.11 352 Thursday, January 10, 2013 353 ===================================== 354 355 - Build fixes. 356 - Fix GPOS mark attachment with null Anchor offsets. 357 - [Indic] Fix old-spec reordering of viramas if sequence ends in one. 358 - Fix multi-threaded shaper data creation crash. 359 - Add atomic ops for Solaris. 360 361 API changes: 362 - Rename hb_buffer_clear() to hb_buffer_clear_contents(). 363 364 365 Overview of changes leading to 0.9.10 366 Thursday, January 3, 2013 367 ===================================== 368 369 - [Indic] Fixed rendering of Malayalam dot-reph 370 - Updated OT language tags. 371 - Updated graphite2 backend. 372 - Improved hb_ot_layout_get_size_params() logic. 373 - Improve hb-shape/hb-view help output. 374 - Fixed hb-set.h implementation to not crash. 375 - Fixed various issues with hb_ot_layout_collect_lookups(). 376 - Various build fixes. 377 378 New API: 379 380 hb_graphite2_face_get_gr_face() 381 hb_graphite2_font_get_gr_font() 382 hb_coretext_face_get_cg_font() 383 384 Modified API: 385 386 hb_ot_layout_get_size_params() 387 388 389 Overview of changes leading to 0.9.9 390 Wednesday, December 5, 2012 391 ==================================== 392 393 - Fix build on Windows. 394 - Minor improvements. 395 396 397 Overview of changes leading to 0.9.8 398 Tuesday, December 4, 2012 399 ==================================== 400 401 402 - Actually implement hb_shape_plan_get_shaper (). 403 - Make UCDB data tables const. 404 - Lots of internal refactoring in OTLayout tables. 405 - Flesh out hb_ot_layout_lookup_collect_glyphs(). 406 407 New API: 408 409 hb_ot_layout_collect_lookups() 410 hb_ot_layout_get_size_params() 411 412 413 Overview of changes leading to 0.9.7 414 Sunday, November 21, 2012 415 ==================================== 416 417 418 HarfBuzz "All-You-Can-Eat-Sushi" (aka Vancouver) Hackfest and follow-on fixes. 419 420 - Fix Arabic contextual joining using pre-context text. 421 - Fix Sinhala "split matra" mess. 422 - Fix Khmer shaping with broken fonts. 423 - Implement Thai "PUA" shaping for old fonts. 424 - Do NOT route Kharoshthi script through the Indic shaper. 425 - Disable fallback positioning for Indic and Thai shapers. 426 - Misc fixes. 427 428 429 hb-shape / hb-view changes: 430 431 - Add --text-before and --text-after 432 - Add --bot / --eot / --preserve-default-ignorables 433 - hb-shape --output-format=json 434 435 436 New API: 437 438 hb_buffer_clear() 439 440 hb_buffer_flags_t 441 442 HB_BUFFER_FLAGS_DEFAULT 443 HB_BUFFER_FLAG_BOT 444 HB_BUFFER_FLAG_EOT 445 HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES 446 447 hb_buffer_set_flags() 448 hb_buffer_get_flags() 449 450 HB_BUFFER_SERIALIZE_FLAGS 451 hb_buffer_serialize_glyphs() 452 hb_buffer_deserialize_glyphs() 453 hb_buffer_serialize_list_formats() 454 455 hb_set_add_range() 456 hb_set_del_range() 457 hb_set_get_population() 458 hb_set_next_range() 459 460 hb_face_[sg]et_glyph_count() 461 462 hb_segment_properties_t 463 HB_SEGMENT_PROPERTIES_DEFAULT 464 hb_segment_properties_equal() 465 hb_segment_properties_hash() 466 467 hb_buffer_set_segment_properties() 468 hb_buffer_get_segment_properties() 469 470 hb_ot_layout_glyph_class_t 471 hb_ot_layout_get_glyph_class() 472 hb_ot_layout_get_glyphs_in_class() 473 474 hb_shape_plan_t 475 hb_shape_plan_create() 476 hb_shape_plan_create_cached() 477 hb_shape_plan_get_empty() 478 hb_shape_plan_reference() 479 hb_shape_plan_destroy() 480 hb_shape_plan_set_user_data() 481 hb_shape_plan_get_user_data() 482 hb_shape_plan_execute() 483 hb_shape_plan_get_shaper() 484 485 hb_ot_shape_plan_collect_lookups() 486 487 488 API changes: 489 490 - Remove "mask" parameter from hb_buffer_add(). 491 - Rename hb_ot_layout_would_substitute_lookup() and hb_ot_layout_substitute_closure_lookup(). 492 - hb-set.h API const correction. 493 - Renamed hb_set_min/max() to hb_set_get_min/max(). 494 - Rename hb_ot_layout_feature_get_lookup_indexes() to hb_ot_layout_feature_get_lookups(). 495 - Rename hb_buffer_guess_properties() to hb_buffer_guess_segment_properties(). 496 497 498 499 Overview of changes leading to 0.9.6 500 Sunday, November 13, 2012 501 ==================================== 502 503 - Don't clear pre-context text if no new context is provided. 504 - Fix ReverseChainingSubstLookup, which was totally borked. 505 - Adjust output format of hb-shape a bit. 506 - Include config.h.in in-tree. Makes it easier for alternate build systems. 507 - Fix hb_buffer_set_length(buffer, 0) invalid memory allocation. 508 - Use ICU LayoutEngine's C API instead of C++. Avoids much headache. 509 - Drop glyphs for all of Unicode Default_Ignorable characters. 510 - Misc build fixes. 511 512 Arabic shaper: 513 - Enable 'dlig' and 'mset' features in Arabic shaper. 514 - Implement 'Phags-pa shaping, improve Mongolian. 515 516 Indic shaper: 517 - Decompose Sinhala split matras the way old HarfBuzz / Pango did. 518 - Initial support for Consonant Medials. 519 - Start adding new-style Myanmar shaping. 520 - Make reph and 'pref' logic introspect the font. 521 - Route Meetei-Mayek through the Indic shaper. 522 - Don't apply 'liga' in Indic shaper. 523 - Improve Malayalam pre-base reordering Ra interaction with Chillus. 524 525 526 527 Overview of changes leading to 0.9.5 528 Sunday, October 14, 2012 529 ==================================== 530 531 - Synthetic-GSUB Arabic fallback shaping. 532 533 - Misc Indic improvements. 534 535 - Add build system support for pthread. 536 537 - Imported UCDN for in-tree Unicode callbacks implementation. 538 539 - Context-aware Arabic joining. 540 541 - Misc other fixes. 542 543 - New API: 544 545 hb_feature_to/from-string() 546 hb_buffer_[sg]et_content_type() 547 548 549 550 Overview of changes leading to 0.9.4 551 Tuesday, Sep 03, 2012 552 ==================================== 553 554 - Indic improvements with old-spec Malayalam. 555 556 - Better fallback glyph positioning, specially with Thai / Lao marks. 557 558 - Implement dotted-circle insertion. 559 560 - Better Arabic fallback shaping / ligation. 561 562 - Added ICU LayoutEngine backend for testing. Call it by the 'icu_le' name. 563 564 - Misc fixes. 565 566 567 568 Overview of changes leading to 0.9.3 569 Friday, Aug 18, 2012 570 ==================================== 571 572 - Fixed fallback mark positioning for left-to-right text. 573 574 - Improve mark positioning for the remaining combining classes. 575 576 - Unbreak Thai and fallback Arabic shaping. 577 578 - Port Arabic shaper to shape-plan caching. 579 580 - Use new ICU normalizer functions. 581 582 583 584 Overview of changes leading to 0.9.2 585 Friday, Aug 10, 2012 586 ==================================== 587 588 - Over a thousand commits! This is the first major release of HarfBuzz. 589 590 - HarfBuzz is feature-complete now! It should be in par, or better, than 591 both Pango's shapers and old HarfBuzz / Qt shapers. 592 593 - New Indic shaper, supporting main Indic scripts, Sinhala, and Khmer. 594 595 - Improved Arabic shaper, with fallback Arabic shaping, supporting Arabic, 596 Sinhala, N'ko, Mongolian, and Mandaic. 597 598 - New Thai / Lao shaper. 599 600 - Tibetan / Hangul support in the generic shaper. 601 602 - Synthetic GDEF support for fonts without a GDEF table. 603 604 - Fallback mark positioning for fonts without a GPOS table. 605 606 - Unicode normalization shaping heuristic during glyph mapping. 607 608 - New experimental Graphite2 backend. 609 610 - New Uniscribe backend (primarily for testing). 611 612 - New CoreText backend (primarily for testing). 613 614 - Major optimization and speedup. 615 616 - Test suites and testing infrastructure (work in progress). 617 618 - Greatly improved hb-view cmdline tool. 619 620 - hb-shape cmdline tool. 621 622 - Unicode 6.1 support. 623 624 Summary of API changes: 625 626 o Changed API: 627 628 - Users are expected to only include main header files now (ie. hb.h, 629 hb-glib.h, hb-ft.h, ...) 630 631 - All struct tag names had their initial underscore removed. 632 Ie. "struct _hb_buffer_t" is "struct hb_buffer_t" now. 633 634 - All set_user_data() functions now take a "replace" boolean parameter. 635 636 - hb_buffer_create() takes zero arguments now. 637 Use hb_buffer_pre_allocate() to pre-allocate. 638 639 - hb_buffer_add_utf*() now accept -1 for length parameteres, 640 meaning "nul-terminated". 641 642 - hb_direction_t enum values changed. 643 644 - All *_from_string() APIs now take a length parameter to allow for 645 non-nul-terminated strings. A -1 length means "nul-terminated". 646 647 - Typedef for hb_language_t changed. 648 649 - hb_get_table_func_t renamed to hb_reference_table_func_t. 650 651 - hb_ot_layout_table_choose_script() 652 653 - Various renames in hb-unicode.h. 654 655 o New API: 656 657 - hb_buffer_guess_properties() 658 Automatically called by hb_shape(). 659 660 - hb_buffer_normalize_glyphs() 661 662 - hb_tag_from_string() 663 664 - hb-coretext.h 665 666 - hb-uniscribe.h 667 668 - hb_face_reference_blob() 669 - hb_face_[sg]et_index() 670 - hb_face_set_upem() 671 672 - hb_font_get_glyph_name_func_t 673 hb_font_get_glyph_from_name_func_t 674 hb_font_funcs_set_glyph_name_func() 675 hb_font_funcs_set_glyph_from_name_func() 676 hb_font_get_glyph_name() 677 hb_font_get_glyph_from_name() 678 hb_font_glyph_to_string() 679 hb_font_glyph_from_string() 680 681 - hb_font_set_funcs_data() 682 683 - hb_ft_font_set_funcs() 684 - hb_ft_font_get_face() 685 686 - hb-gobject.h (work in progress) 687 688 - hb_ot_shape_glyphs_closure() 689 hb_ot_layout_substitute_closure_lookup() 690 691 - hb-set.h 692 693 - hb_shape_full() 694 695 - hb_unicode_combining_class_t 696 697 - hb_unicode_compose_func_t 698 hb_unicode_decompose_func_t 699 hb_unicode_decompose_compatibility_func_t 700 hb_unicode_funcs_set_compose_func() 701 hb_unicode_funcs_set_decompose_func() 702 hb_unicode_funcs_set_decompose_compatibility_func() 703 hb_unicode_compose() 704 hb_unicode_decompose() 705 hb_unicode_decompose_compatibility() 706 707 o Removed API: 708 709 - hb_ft_get_font_funcs() 710 711 - hb_ot_layout_substitute_start() 712 hb_ot_layout_substitute_lookup() 713 hb_ot_layout_substitute_finish() 714 hb_ot_layout_position_start() 715 hb_ot_layout_position_lookup() 716 hb_ot_layout_position_finish() 717 718 719 720 Overview of changes leading to 0.6.0 721 Friday, May 27, 2011 722 ==================================== 723 724 - Vertical text support in GPOS 725 - Almost all API entries have unit tests now, under test/ 726 - All thread-safety issues are fixed 727 728 Summary of API changes follows. 729 730 731 * Simple Types API: 732 733 o New API: 734 HB_LANGUAGE_INVALID 735 hb_language_get_default() 736 hb_direction_to_string() 737 hb_direction_from_string() 738 hb_script_get_horizontal_direction() 739 HB_UNTAG() 740 741 o Renamed API: 742 hb_category_t renamed to hb_unicode_general_category_t 743 744 o Changed API: 745 hb_language_t is a typed pointers now 746 747 o Removed API: 748 HB_TAG_STR() 749 750 751 * Use ISO 15924 tags for hb_script_t: 752 753 o New API: 754 hb_script_from_iso15924_tag() 755 hb_script_to_iso15924_tag() 756 hb_script_from_string() 757 758 o Changed API: 759 HB_SCRIPT_* enum members changed value. 760 761 762 * Buffer API streamlined: 763 764 o New API: 765 hb_buffer_reset() 766 hb_buffer_set_length() 767 hb_buffer_allocation_successful() 768 769 o Renamed API: 770 hb_buffer_ensure() renamed to hb_buffer_pre_allocate() 771 hb_buffer_add_glyph() renamed to hb_buffer_add() 772 773 o Removed API: 774 hb_buffer_clear() 775 hb_buffer_clear_positions() 776 777 o Changed API: 778 hb_buffer_get_glyph_infos() takes an out length parameter now 779 hb_buffer_get_glyph_positions() takes an out length parameter now 780 781 782 * Blob API streamlined: 783 784 o New API: 785 hb_blob_get_data() 786 hb_blob_get_data_writable() 787 788 o Renamed API: 789 hb_blob_create_empty() renamed to hb_blob_get_empty() 790 791 o Removed API: 792 hb_blob_lock() 793 hb_blob_unlock() 794 hb_blob_is_writable() 795 hb_blob_try_writable() 796 797 o Changed API: 798 hb_blob_create() takes user_data before destroy now 799 800 801 * Unicode functions API: 802 803 o Unicode function vectors can subclass other unicode function vectors now. 804 Unimplemented callbacks in the subclass automatically chainup to the parent. 805 806 o All hb_unicode_funcs_t callbacks take a user_data now. Their setters 807 take a user_data and its respective destroy callback. 808 809 o New API: 810 hb_unicode_funcs_get_empty() 811 hb_unicode_funcs_get_default() 812 hb_unicode_funcs_get_parent() 813 814 o Changed API: 815 hb_unicode_funcs_create() now takes a parent_funcs. 816 817 o Removed func getter functions: 818 hb_unicode_funcs_get_mirroring_func() 819 hb_unicode_funcs_get_general_category_func() 820 hb_unicode_funcs_get_script_func() 821 hb_unicode_funcs_get_combining_class_func() 822 hb_unicode_funcs_get_eastasian_width_func() 823 824 825 * Face API: 826 827 o Renamed API: 828 hb_face_get_table() renamed to hb_face_reference_table() 829 hb_face_create_for_data() renamed to hb_face_create() 830 831 o Changed API: 832 hb_face_create_for_tables() takes user_data before destroy now 833 hb_face_reference_table() returns empty blob instead of NULL 834 hb_get_table_func_t accepts the face as first parameter now 835 836 * Font API: 837 838 o Fonts can subclass other fonts now. Unimplemented callbacks in the 839 subclass automatically chainup to the parent. When chaining up, 840 scale is adjusted if the parent font has a different scale. 841 842 o All hb_font_funcs_t callbacks take a user_data now. Their setters 843 take a user_data and its respective destroy callback. 844 845 o New API: 846 hb_font_get_parent() 847 hb_font_funcs_get_empty() 848 hb_font_create_sub_font() 849 850 o Removed API: 851 hb_font_funcs_copy() 852 hb_font_unset_funcs() 853 854 o Removed func getter functions: 855 hb_font_funcs_get_glyph_func() 856 hb_font_funcs_get_glyph_advance_func() 857 hb_font_funcs_get_glyph_extents_func() 858 hb_font_funcs_get_contour_point_func() 859 hb_font_funcs_get_kerning_func() 860 861 o Changed API: 862 hb_font_create() takes a face and references it now 863 hb_font_set_funcs() takes user_data before destroy now 864 hb_font_set_scale() accepts signed integers now 865 hb_font_get_contour_point_func_t now takes glyph first, then point_index 866 hb_font_get_glyph_func_t returns a success boolean now 867 868 869 * Changed object model: 870 871 o All object types have a _get_empty() now: 872 hb_blob_get_empty() 873 hb_buffer_get_empty() 874 hb_face_get_empty() 875 hb_font_get_empty() 876 hb_font_funcs_get_empty() 877 hb_unicode_funcs_get_empty() 878 879 o Added _set_user_data() and _get_user_data() for all object types: 880 hb_blob_get_user_data() 881 hb_blob_set_user_data() 882 hb_buffer_get_user_data() 883 hb_buffer_set_user_data() 884 hb_face_get_user_data() 885 hb_face_set_user_data() 886 hb_font_funcs_get_user_data() 887 hb_font_funcs_set_user_data() 888 hb_font_get_user_data() 889 hb_font_set_user_data() 890 hb_unicode_funcs_get_user_data() 891 hb_unicode_funcs_set_user_data() 892 893 o Removed the _get_reference_count() from all object types: 894 hb_blob_get_reference_count() 895 hb_buffer_get_reference_count() 896 hb_face_get_reference_count() 897 hb_font_funcs_get_reference_count() 898 hb_font_get_reference_count() 899 hb_unicode_funcs_get_reference_count() 900 901 o Added _make_immutable() and _is_immutable() for all object types except for buffer: 902 hb_blob_make_immutable() 903 hb_blob_is_immutable() 904 hb_face_make_immutable() 905 hb_face_is_immutable() 906 907 908 * Changed API for vertical text support 909 910 o The following callbacks where removed: 911 hb_font_get_glyph_advance_func_t 912 hb_font_get_kerning_func_t 913 914 o The following new callbacks added instead: 915 hb_font_get_glyph_h_advance_func_t 916 hb_font_get_glyph_v_advance_func_t 917 hb_font_get_glyph_h_origin_func_t 918 hb_font_get_glyph_v_origin_func_t 919 hb_font_get_glyph_h_kerning_func_t 920 hb_font_get_glyph_v_kerning_func_t 921 922 o The following API removed as such: 923 hb_font_funcs_set_glyph_advance_func() 924 hb_font_funcs_set_kerning_func() 925 hb_font_get_glyph_advance() 926 hb_font_get_kerning() 927 928 o New API added instead: 929 hb_font_funcs_set_glyph_h_advance_func() 930 hb_font_funcs_set_glyph_v_advance_func() 931 hb_font_funcs_set_glyph_h_origin_func() 932 hb_font_funcs_set_glyph_v_origin_func() 933 hb_font_funcs_set_glyph_h_kerning_func() 934 hb_font_funcs_set_glyph_v_kerning_func() 935 hb_font_get_glyph_h_advance() 936 hb_font_get_glyph_v_advance() 937 hb_font_get_glyph_h_origin() 938 hb_font_get_glyph_v_origin() 939 hb_font_get_glyph_h_kerning() 940 hb_font_get_glyph_v_kerning() 941 942 o The following higher-leve API added for convenience: 943 hb_font_get_glyph_advance_for_direction() 944 hb_font_get_glyph_origin_for_direction() 945 hb_font_add_glyph_origin_for_direction() 946 hb_font_subtract_glyph_origin_for_direction() 947 hb_font_get_glyph_kerning_for_direction() 948 hb_font_get_glyph_extents_for_origin() 949 hb_font_get_glyph_contour_point_for_origin() 950 951 952 * OpenType Layout API: 953 954 o New API: 955 hb_ot_layout_position_start() 956 hb_ot_layout_substitute_start() 957 hb_ot_layout_substitute_finish() 958 959 960 * Glue code: 961 962 o New API: 963 hb_glib_script_to_script() 964 hb_glib_script_from_script() 965 hb_icu_script_to_script() 966 hb_icu_script_from_script() 967 968 969 * Version API added: 970 971 o New API: 972 HB_VERSION_MAJOR 973 HB_VERSION_MINOR 974 HB_VERSION_MICRO 975 HB_VERSION_STRING 976 HB_VERSION_CHECK() 977 hb_version() 978 hb_version_string() 979 hb_version_check() 980 981 982