Behdad Esfahbod
43314ff4c0
More fixes
...
test-subset-glyf still failing. No idea why :(
2018-02-10 15:40:03 -06:00
Behdad Esfahbod
9682ef135f
Minor fixups
2018-02-08 17:35:57 -06:00
Garret Rieger
0f3c756cbf
Add CMake config for building a separate harfbuzz-subset.
2018-02-08 17:31:11 -06:00
Garret Rieger
f2ceb5ee4d
Comment out failing assert in test-subset-glyf for now. Should be re-enabled once hb_subset is writing out a new face.
2018-02-08 17:31:11 -06:00
Garret Rieger
89dbebd4ad
Add a basic test for glyf subsetting.
2018-02-08 17:31:11 -06:00
Behdad Esfahbod
c479a59988
[subset] Assemble font
2018-02-07 21:26:04 -06:00
Behdad Esfahbod
f70100417c
[test] Minor
2018-02-07 13:58:23 -05:00
Behdad Esfahbod
af02812fc5
[subset] Change hb_subset API to remove hb_subset_face_t
2018-02-07 13:07:46 -05:00
Garret Rieger
7481f0ce21
Add codepoints to subset input.
2018-02-07 12:41:21 -05:00
Ebrahim Byagowi
8cb8bfd5b5
[test] Fix test-subset on old distros ( #758 )
...
https://developer.gnome.org/glib/stable/glib-Testing.html#g-assert-cmpmem
2018-02-06 20:40:42 +03:30
Behdad Esfahbod
b7b7f0ac59
[test] Minor
2018-02-05 19:40:31 -05:00
Garret Rieger
5f6eb1256f
Add libharfbuzz-subset.la to linking when building api tests.
2018-02-05 10:23:38 -08:00
Garret Rieger
76b84c36b9
Whitespace
2018-02-04 12:57:34 -08:00
Garret Rieger
a2965f2ea5
Add a basic implementation of hb-subset to enable compilation of test-subset.
2018-02-04 12:57:33 -08:00
Garret Rieger
b59c08eb04
Add the beginning of a unit test for hb-subset
2018-02-04 12:57:33 -08:00
Ebrahim Byagowi
e849b8a85b
[cmake] Always put test/api/CMakeLists.txt on distributions
2018-01-19 16:12:24 +03:30
Ebrahim Byagowi
2dbdeb1421
[cmake] Run fuzzing and shaping tests ( #666 )
2017-12-29 23:13:29 +03:30
Ebrahim Byagowi
50163976d2
[cmake] Enable cmake tests on distribution and test it ( #664 )
2017-12-25 01:55:48 +03:30
Khaled Hosny
c860955148
Add API tests to cmake build
2017-12-06 15:25:10 +02:00
Khaled Hosny
f19126dd35
We are already inside “if HAVE_GLIB” check
2017-12-06 15:25:10 +02:00
Behdad Esfahbod
20b4672754
[set] Fix recent changes
...
Ouch!
Add tests.
2017-12-02 15:15:50 -08:00
ebraminio
7c6937e7c7
Move all references of old url to the new address ( #622 )
2017-11-20 14:49:22 -05:00
Behdad Esfahbod
cb6c6b0c42
Fix warning
...
49a41dc759 (commitcomment-25203194)
2017-10-26 11:43:33 -06:00
Jonathan Kew
7339926525
[test] Extend hb_set test for issue 579 (currently failing)
2017-10-26 12:33:05 -05:00
Jonathan Kew
3d6f7df42a
[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().
2017-10-26 12:30:52 -05:00
Behdad Esfahbod
49a41dc759
[test] Add more hb-set tests
...
https://github.com/behdad/harfbuzz/issues/579
2017-10-25 16:17:45 -06:00
Behdad Esfahbod
deed4a48d1
Faster hb_set_t
...
Fixes https://github.com/behdad/harfbuzz/pull/23
2017-10-15 16:45:33 -03:00
Behdad Esfahbod
c4712f8e37
Fix test
2017-08-10 20:27:21 -07:00
Philip Withnall
a6ced90efc
test: Fix some memory leaks in test-font.c ( #409 )
...
Coverity IDs: 141039, 141040, 141041
2017-02-07 18:18:33 -08:00
Behdad Esfahbod
a8a5e81a52
[test-ot-math] Add test with nil face/font
2017-01-19 16:55:04 -08:00
Behdad Esfahbod
331d07bd40
Minor
2017-01-19 16:51:36 -08:00
Behdad Esfahbod
b5ecf1bfa4
Fix warnings
2017-01-19 16:50:29 -08:00
Behdad Esfahbod
2f2ceee185
Minor
2017-01-19 16:48:01 -08:00
Sascha Brawer
1337428e4f
Update language tags to OpenType 1.8.1 ( #403 )
...
Resolves https://github.com/behdad/harfbuzz/issues/324
2017-01-18 04:51:02 -08:00
Mike Hommey
1c98ff87c7
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.
2016-12-18 01:37:07 -06:00
Frédéric Wang
c3fa5d0e03
Remove inexistent file ttx file from test/api/Makefile.am
2016-10-24 21:42:04 +02:00
Behdad Esfahbod
34fc4a2cfa
Fix dist
2016-10-04 14:47:12 -07:00
Behdad Esfahbod
46cc4a3a2a
[MATH] Rename hb_math_*_t types to hb_ot_math_*_t
...
With this, I believe MATH table API is not ready to be merged.
2016-09-27 16:44:22 +02:00
Frédéric Wang
8d622f1114
Add tests for get_mathvariant ( #329 )
2016-09-27 13:53:34 +02:00
Frédéric Wang
485e4873fb
Add tests for hb_ot_math_get_glyph_variants ( #328 )
2016-09-27 13:18:00 +02:00
Behdad Esfahbod
a5629a2ed9
[MATH] Simplify test
2016-09-27 11:31:29 +02:00
Frédéric Wang
edcfa789bf
test-ot-math: Use different scales for vertical and horizontal directions and add test for hb_ot_math_get_min_connector_overlap. ( #327 )
2016-09-27 11:02:08 +02:00
Behdad Esfahbod
cdc9eef7da
[MATH] Enable tests for glyph-assembly italics-correction
2016-09-26 22:18:41 +02:00
Behdad Esfahbod
86106c7528
[MATH] Rename all API to hb_ot_math_*
2016-09-26 22:14:29 +02:00
Frédéric Wang
51da7a1cd6
MATH table: Add API to access math variants.
2016-09-26 15:18:16 +01:00
Frédéric Wang
722e620f20
Use G_TEST_DIST to build the path of math test fonts
2016-09-26 13:49:18 +01:00
Behdad Esfahbod
17ff30e9af
[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.
2016-09-26 12:21:27 +01:00
Behdad Esfahbod
8bcf517fe5
[MATH] Clean up get_italics_correction()
2016-09-26 12:13:14 +01:00
Frédéric Wang
d7182d1296
MATH Table: Add API to access glyph info.
2016-09-26 11:32:25 +01:00
Frédéric Wang
319ff59161
MATH Table: Add API to access math contants.
2016-09-26 10:49:09 +01:00