test/api


Log

Author Commit Date CI Message
Behdad Esfahbod 9682ef13 2018-02-08T17:35:57 Minor fixups
Garret Rieger f2ceb5ee 2018-02-07T16:47:31 Comment out failing assert in test-subset-glyf for now. Should be re-enabled once hb_subset is writing out a new face.
Garret Rieger 89dbebd4 2018-02-07T16:32:56 Add a basic test for glyf subsetting.
Garret Rieger 0f3c756c 2018-02-08T14:59:32 Add CMake config for building a separate harfbuzz-subset.
Behdad Esfahbod c479a599 2018-02-07T21:13:10 [subset] Assemble font
Behdad Esfahbod f7010041 2018-02-07T13:58:23 [test] Minor
Behdad Esfahbod af02812f 2018-02-07T13:07:46 [subset] Change hb_subset API to remove hb_subset_face_t
Garret Rieger 7481f0ce 2018-02-05T16:05:12 Add codepoints to subset input.
Ebrahim Byagowi 8cb8bfd5 2018-02-06T20:40:42 [test] Fix test-subset on old distros (#758) https://developer.gnome.org/glib/stable/glib-Testing.html#g-assert-cmpmem
Behdad Esfahbod b7b7f0ac 2018-02-05T19:40:31 [test] Minor
Garret Rieger 5f6eb125 2018-02-05T10:23:38 Add libharfbuzz-subset.la to linking when building api tests.
Garret Rieger 76b84c36 2018-01-31T14:53:28 Whitespace
Garret Rieger a2965f2e 2018-01-31T14:53:09 Add a basic implementation of hb-subset to enable compilation of test-subset.
Garret Rieger b59c08eb 2018-01-31T11:14:53 Add the beginning of a unit test for hb-subset
Ebrahim Byagowi e849b8a8 2018-01-19T16:12:24 [cmake] Always put test/api/CMakeLists.txt on distributions
Ebrahim Byagowi 2dbdeb14 2017-12-29T23:13:29 [cmake] Run fuzzing and shaping tests (#666)
Ebrahim Byagowi 50163976 2017-12-25T01:55:48 [cmake] Enable cmake tests on distribution and test it (#664)
Khaled Hosny c8609551 2017-12-06T00:43:28 Add API tests to cmake build
Khaled Hosny f19126dd 2017-12-05T22:52:54 We are already inside “if HAVE_GLIB” check
Behdad Esfahbod 20b46727 2017-12-02T15:14:26 [set] Fix recent changes Ouch! Add tests.
ebraminio 7c6937e7 2017-11-20T14:49:22 Move all references of old url to the new address (#622)
Behdad Esfahbod cb6c6b0c 2017-10-26T11:43:33 Fix warning https://github.com/behdad/harfbuzz/commit/49a41dc75931cc2d2f7e74b7801f8cc327039e8e#commitcomment-25203194
Jonathan Kew 73399265 2017-10-26T12:55:36 [test] Extend hb_set test for issue 579 (currently failing)
Jonathan Kew 3d6f7df4 2017-10-26T17:54:55 [test] Additional coverage in test_set_iter. This adds a couple extra entries to the set used, such that iteration would fail in 1.6.2 due to the bug in hb_set_t::page_t::next().
Behdad Esfahbod 49a41dc7 2017-10-25T16:17:45 [test] Add more hb-set tests https://github.com/behdad/harfbuzz/issues/579
Behdad Esfahbod deed4a48 2017-10-15T16:53:09 Faster hb_set_t Fixes https://github.com/behdad/harfbuzz/pull/23
Behdad Esfahbod c4712f8e 2017-08-10T20:27:21 Fix test
Philip Withnall a6ced90e 2017-02-08T02:18:33 test: Fix some memory leaks in test-font.c (#409) Coverity IDs: 141039, 141040, 141041
Behdad Esfahbod a8a5e81a 2017-01-19T16:55:04 [test-ot-math] Add test with nil face/font
Behdad Esfahbod 331d07bd 2017-01-19T16:51:36 Minor
Behdad Esfahbod b5ecf1bf 2017-01-19T16:50:29 Fix warnings
Behdad Esfahbod 2f2ceee1 2017-01-19T16:48:01 Minor
Sascha Brawer 1337428e 2017-01-18T13:51:02 Update language tags to OpenType 1.8.1 (#403) Resolves https://github.com/behdad/harfbuzz/issues/324
Mike Hommey 1c98ff87 2016-09-30T18:15:37 Support building with older glib versions It is desirable to be able to build against older versions of glib. fd7a245 changed the configure check to require glib > 2.38 for G_TEST_DIST. Before that, version 2.16 was required, but in fact, since aafe395, G_PASTE is being used, which was introduced in 2.19.1. And since 0ef179e2, hb-glib uses GBytes, which were introduced in 2.31.10. 2.19.1 is rather old, but 2.38 is rather new. For Firefox, building against 2.22 is still supported, although we could probably get away with bumping that to 2.28. Either way, GBytes is not available. Arguably, if you build against a glib that doesn't support GBytes, you're not going to use the hb_glib_blob_create function, so we hide the function when building against such a glib. As for G_TEST_DIST, when building against versions of glib that don't support it, we can fallback to the previous behavior, which, AIUI, was just making the test not work when building in a separate directory.
Frédéric Wang c3fa5d0e 2016-10-24T21:42:04 Remove inexistent file ttx file from test/api/Makefile.am
Behdad Esfahbod 34fc4a2c 2016-09-28T19:17:27 Fix dist
Behdad Esfahbod 46cc4a3a 2016-09-27T16:44:22 [MATH] Rename hb_math_*_t types to hb_ot_math_*_t With this, I believe MATH table API is not ready to be merged.
Frédéric Wang 8d622f11 2016-09-27T13:53:34 Add tests for get_mathvariant (#329)
Frédéric Wang 485e4873 2016-09-27T13:18:00 Add tests for hb_ot_math_get_glyph_variants (#328)
Behdad Esfahbod a5629a2e 2016-09-27T11:30:44 [MATH] Simplify test
Frédéric Wang edcfa789 2016-09-27T11:02:08 test-ot-math: Use different scales for vertical and horizontal directions and add test for hb_ot_math_get_min_connector_overlap. (#327)
Behdad Esfahbod cdc9eef7 2016-09-26T22:18:41 [MATH] Enable tests for glyph-assembly italics-correction
Behdad Esfahbod 86106c75 2016-09-26T22:12:48 [MATH] Rename all API to hb_ot_math_*
Frédéric Wang 51da7a1c 2016-08-25T11:17:50 MATH table: Add API to access math variants.
Frédéric Wang 722e620f 2016-09-26T11:51:36 Use G_TEST_DIST to build the path of math test fonts
Behdad Esfahbod 17ff30e9 2016-09-26T12:18:32 [MATH] Clean up get_top_accent_attachment() Note, the function now returns "half of horizontal advance width" if top accent attachment for glyph is not explicitly defined. This is what the spec requires. Updated tests.
Behdad Esfahbod 8bcf517f 2016-09-26T12:12:41 [MATH] Clean up get_italics_correction()
Frédéric Wang d7182d12 2016-08-25T11:15:31 MATH Table: Add API to access glyph info.
Frédéric Wang 319ff591 2016-08-25T11:06:41 MATH Table: Add API to access math contants.
Behdad Esfahbod 4d3892e9 2016-09-26T10:45:58 [MATH] Fixups for previous commit
Frédéric Wang 5fbcb992 2016-08-25T10:47:15 MATH Table: Add API to check availability of math data.
Sascha Brawer e7ecbba2 2016-08-18T12:48:38 Support Americanist Phonetic Notation OpenType language system tag: `APPH` https://www.microsoft.com/typography/otspec/languagetags.htm IETF BCP47 variant tag: `fonnapa` http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
Behdad Esfahbod 18c19dd3 2016-08-09T13:03:14 Fix build
Behdad Esfahbod dd8598c1 2016-02-25T11:20:05 [test] Pass closure to hb_font_set_glyph_func() Exercises fix in c335fd7986fe360ab8e1c032c9b988d0d30511eb
Behdad Esfahbod da29b437 2015-11-04T20:22:44 Separate nil font-funcs from parent-peeking font-funcs API change: all fonts created with hb_font_create() now inherit from (ie have parent) hb_font_get_empty().
Behdad Esfahbod 3e905e39 2015-10-08T12:51:02 Add hb_font_set_parent() No reason to not have it. Makes life easier later. We (hb-ft, hb-ot-font, etc) can use this API to inject new parent into a font...
Behdad Esfahbod 88da7bba 2015-10-02T14:38:20 Default font scale to face upem Makes for a better default and avoids nasty inheritance issues. See mailing list thread "Default hb_font_t scale".
Behdad Esfahbod 1866e171 2015-10-02T14:21:29 Make hb_font_create_sub_font() NOT make parent immutable We don't rely on that. However, whenever hb_font_make_immutable() is called, it makes its parenting chain immutable.
Sascha Brawer f2ad935e 2015-06-28T03:29:47 Handle language tags that indicate phonetic IPA transcription The BCP-47 registry defines a variant subtag "fonipa" that can be used in combination with arbitrary other language tags. For example, "rm-CH-fonipa-sursilv" indicates the Sursilvan dialect of Romansh as used in Switzerland, transcribed used the International Phonetic Alphabet. http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
Behdad Esfahbod fad26748 2015-09-01T14:45:46 Minor
Behdad Esfahbod 31594b98 2015-08-30T17:33:04 [test] Fix test-object See previous commit.
Romain Naour 160f6355 2015-07-22T23:26:23 fix static linking with icu-uc When linking test-unicode statically it needs $(ICU_LIBS) which contains all required flags. Especially -lstdc++. Fixes: http://autobuild.buildroot.net/results/210/2107f9dfb39eeb6559fb4271c7af8b39aef521ca/ Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Behdad Esfahbod b3a2f6af 2015-06-18T17:15:33 [test] Add test for cluster merging Based on test from https://code.google.com/p/chromium/issues/detail?id=497578 Currently fails. Basically, if there's a default_ignorable at the start of text, and font has no space glyph, we remove the default_ignorable, and that makes the first char in text to correspond to no cluster. Fix coming.
Behdad Esfahbod eb0bf3ae 2014-08-06T15:36:41 Relax inert checks Previously, when creating an object from inert inputs (eg: "hb_font_create(hb_face_get_empty())") we returned the inert empty object. This is not helpful as there are legitimate usecases to do that. We now never return the inert object unless allocation failed. Tests are revised to reflect.
Behdad Esfahbod 7d5e7613 2014-12-18T18:22:21 Fail blob creation if length overflows or is too large Fail if blob start plus length overflows; or if blob length is greater than 2GB. It takes a while for fonts to get to that size. In the mean time, it protects against bugs like this: http://www.icu-project.org/trac/ticket/11450 Also avoids some weird issues with 32bit vs 64bit systems as we accept length as unsigned int. As such, a length of -1 will cause overflow on 32bit machines, but happily accepted on a 64bit machine. Avoid that.
Behdad Esfahbod b5fbc3b8 2014-08-11T18:40:01 API: Do not clear buffer-flags in hb_buffer_clear_contents() After 763e5466c0a03a7c27020e1e2598e488612529a7, one doesn't need to set flags for different pieces of text. The flags now are something the client sets up once, depending on how it actually uses the buffer. As such, don't clear it in clear_contents(). Tests updated.
Behdad Esfahbod 976c8f45 2014-07-16T15:34:20 New API: hb_buffer_[sg]et_replacement_codepoint() With this change, we now by default replace broken UTF-8/16/32 bits with U+FFFD. This can be changed by calling new API on the buffer. Previously the replacement value used to be (hb_codepoint_t)-1. Note that hb_buffer_clear_contents() does NOT reset the replacement character. See discussion here: https://github.com/behdad/harfbuzz/commit/6f13b6d62daae4989e3cc2fe4b168e5c59650964 New API: hb_buffer_set_replacement_codepoint() hb_buffer_get_replacement_codepoint()
Behdad Esfahbod e634fed4 2014-07-16T14:17:26 [buffer] Validate UTF-32 input Same as what we do for UTF-8 and UTF-16.
Behdad Esfahbod af2490c0 2014-07-11T16:10:58 Only accept well-formed UTF-8 sequences Enable tests that were disabled before, and adjust one test, and add more tests.
Behdad Esfahbod 24b2ba9d 2014-07-10T19:31:16 [test-buffer] Add test for lonely low-surrogate Currenty fails. Ouch!
Behdad Esfahbod 6334495a 2014-07-10T19:22:07 Use zh-Hans / zh-Hant when converting OT language tag to hb_language_t
Behdad Esfahbod f381e320 2014-07-10T19:20:35 Fix lang matching logic Previous code was broken logically, but harmless.
Behdad Esfahbod ee5350d6 2014-07-10T19:06:45 Accept BCP 47 zh-Hans / zh-Hant language tags
Behdad Esfahbod 2b051c60 2014-06-20T14:09:57 Rename HB_VERSION_CHECK and hb_version_check to "atleast" HB_VERSION_CHECK's comparison was originally written wrongly by mistake. When API tests were written, they were also written wrongly to pass given the wrong implementation... Sigh. Given the purpose of this API, there's no point in fixing it without renaming it. As such, rename. API changes: HB_VERSION_CHECK -> HB_VERSION_ATLEAST hb_version_check -> hb_version_atleast
Luis de Bethencourt 1eacde00 2014-02-06T23:20:47 check hb_set_is_emtpy in test-set.c
Behdad Esfahbod c77d1ade 2013-10-27T23:52:26 Fix warnings
Behdad Esfahbod 20cbc1f8 2013-09-06T15:29:22 Annotate hb-set a bit; add HB_SET_VALUE_INVALID
Behdad Esfahbod 4dc798de 2013-08-26T20:39:00 Add hb-deprecated.h, and rename a couple enum values Add deprecated alias for old name.
Behdad Esfahbod 54e6f6c5 2013-08-09T14:34:54 Clean up list of Unicode scripts Rename HB_SCRIPT_CANADIAN_ABORIGINAL to HB_SCRIPT_CANADIAN_SYLLABICS and a macro for the old name.
Behdad Esfahbod 7235f33f 2013-06-10T14:39:51 Fix misc warnings reported by cppcheck https://bugs.freedesktop.org/show_bug.cgi?id=65544
Behdad Esfahbod a4446b10 2013-06-03T18:39:14 Fix build for C89 compilers
Behdad Esfahbod 2966d360 2013-05-28T17:34:37 Fix test build
Behdad Esfahbod d9afa111 2013-05-28T15:27:40 Build hb-icu into libharfbuzz-icu.so
Behdad Esfahbod 7d395c2a 2013-05-28T15:25:06 Minor
Behdad Esfahbod dfbd115e 2013-05-14T15:30:17 [test] Add test for hb_set_get_min() bug Failing now. Bug 64476 - Typo in hb_set_t.get_min()
Behdad Esfahbod 0a2b2a50 2013-03-21T16:26:39 Remove gthread leftovers We don't use gthread anymore, remove leftovers.
Behdad Esfahbod ea11abfc 2013-03-06T20:21:11 [build] Port to newer automake recommended syntax
Behdad Esfahbod c39def9b 2013-03-06T20:20:45 Move valgrind suppressions to the correct directory
Behdad Esfahbod 9e5ac7b8 2013-02-25T17:54:10 Fix blob test to match c3ba49b6fa1865e8318926eaa6c0f2063d1053bb
Behdad Esfahbod 5898fa94 2013-02-06T15:29:07 Don't use $(ENV) As reported by Peter Breitenlohner: I think this is a very bad idea because ENV is used to specify a startup file to be read by some/all shells.
Behdad Esfahbod 1172dc73 2013-01-07T16:46:37 Rename hb_buffer_clear() to hb_buffer_clear_contents() The previous name was clashing with harfbuzz.old. There are systems that need to link both... Clash-free now again.
Behdad Esfahbod e81aff9e 2013-01-02T23:22:54 [tests] Finish test-set.c All passing now.
Behdad Esfahbod 8165f276 2013-01-02T22:50:36 [tests] Start adding tests for hb-set.h Fails now. Fixing.
Behdad Esfahbod b9d28f69 2013-01-02T22:49:58 [tests] Add set object to test-object.c
Behdad Esfahbod d04b1285 2012-11-14T10:53:10 Fix test
Behdad Esfahbod 0c7df222 2012-11-13T14:42:35 Add buffer flags New API: hb_buffer_flags_t HB_BUFFER_FLAGS_DEFAULT HB_BUFFER_FLAG_BOT HB_BUFFER_FLAG_EOT HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES hb_buffer_set_flags() hb_buffer_get_flags() We use the BOT flag to decide whether to insert dottedcircle if the first char in the buffer is a combining mark. The PRESERVE_DEFAULT_IGNORABLES flag prevents removal of characters like ZWNJ/ZWJ/...
Behdad Esfahbod c8d4f8b0 2012-11-13T14:10:19 Minor
Behdad Esfahbod 82ecaff7 2012-11-13T13:57:52 Add hb_buffer_clear() Which is like _reset(), but does NOT clear unicode-funcs.
Behdad Esfahbod de796a6f 2012-11-12T17:27:51 Add "new" Myanmar OT Script tag Windows 8 added support for Myanmar shaping using the "mym2" script tag, even though Windows never supported the old "mymr" tag.
Behdad Esfahbod 431bef2e 2012-11-01T16:26:01 Minor build fix