Behdad Esfahbod
7e6e094abd
[test-multithread] Install ot funcs before filling ref buffer
6 years ago
Behdad Esfahbod
21fbee831e
[test-multithread] Take num-threads and num-iters from command-line
6 years ago
Behdad Esfahbod
598be3bb38
Minor
6 years ago
Ebrahim Byagowi
c09bf3d505
test-multithread, check the results on every iteration ( #1194 )
6 years ago
Ebrahim Byagowi
dbc3070a15
Make test-multithread pass the tsan bot test ( #1193 )
6 years ago
Behdad Esfahbod
d183b33c1d
Rename test
6 years ago
Ebrahim Byagowi
39da1914b4
Test freetype funcs on test-multithread ( #1187 )
6 years ago
Ebrahim Byagowi
e88009a93f
Minor, remove the no longer needed comment on test-multithread
6 years ago
Behdad Esfahbod
34d5a25953
Fix test-multithread and increase num_threads to 30
...
What were you thinking? ;)
6 years ago
Ebrahim Byagowi
8bb73dad7f
Add a multithreaded test ( #1184 )
6 years ago
Behdad Esfahbod
d07f3111b4
Link API test programs with C++ linker
...
Needed to make ubsan work.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1174
6 years ago
Khaled Hosny
b7f1bbc2f8
[test] Fix printing subprocess error messages
...
Decode the string as Python 3 returns bytes string, and also don’t
assume that it ends with a new line.
6 years ago
Ebrahim Byagowi
403019482b
Fix test-subset-* leak issues
...
See also https://github.com/harfbuzz/harfbuzz/pull/1169
6 years ago
Ebrahim Byagowi
f6ebe1f4dc
Fix test-ot-math leak issue
...
See also https://github.com/harfbuzz/harfbuzz/pull/1169
6 years ago
Ebrahim Byagowi
669ac81ac5
Fix test-set leak issue
...
See also https://github.com/harfbuzz/harfbuzz/pull/1169
6 years ago
Ebrahim Byagowi
ef9307fd22
Fix test-font leak issue
...
See also https://github.com/harfbuzz/harfbuzz/pull/1169
6 years ago
Behdad Esfahbod
d5c509272f
[dfont] Fix test expecatation and minor touch up
...
I have no way to authoritatively know, but looks like test font only has one
face. So, adjust test expectation instead.
6 years ago
Ebrahim Byagowi
2b2ed1e536
[dfont] Add test
6 years ago
Behdad Esfahbod
cfdea88475
[random] Switch to 32bit RNG
6 years ago
Behdad Esfahbod
80de4bcd26
Minor clean up of 'rand' patchset
6 years ago
David Corbett
b545e27d88
Don't seed the RNG from the contents of the buffer
6 years ago
David Corbett
2de96e8468
Test 'rand'
6 years ago
Garret Rieger
21bf147054
[subset] Fix hdmx subsetted size calculation.
6 years ago
Behdad Esfahbod
93fe0faaee
[subset] Clean up hb_subset_input_t API
6 years ago
Behdad Esfahbod
f39166f0c0
[subset] Remove unused hb_subset_profile_t
...
We might reintroduce it later, but for now remove, as it was unused.
Some things that should have been in this object (drop_hints, etc)
are already in hb_subset_input_t. So, for now, keep everything there.
6 years ago
Behdad Esfahbod
62fc54725a
[ot-font] Fallback vertical advance to UPEM
...
Used to be ascent+descent. Whatever. This is more convenient for
upcoming changes.
6 years ago
Behdad Esfahbod
dae39c58fb
[face] Introduce character-map API
...
New API:
+hb_face_collect_unicodes
+hb_face_collect_variation_selectors
+hb_face_collect_variation_unicodes
6 years ago
Behdad Esfahbod
c77ae40852
Rename hb-*private.hh to hb-*.hh
...
Sorry for the noise, downstream custom builders. Please adjust.
6 years ago
Behdad Esfahbod
1becabe06c
[cmap] Use bsearch to find subtables
6 years ago
Behdad Esfahbod
d60c465627
Rename get_all_codepoints() to collect_unicodes()
6 years ago
Garret Rieger
2bdd903c69
[subset] limit the max codepoint value to the unicode limit.
...
When collecting all codepoints in the cmap avoid using large amount of memory for fonts that declare coverage over all 32 bit integers.
6 years ago
Garret Rieger
7278d9df30
[subset] Add hb_ot_layout_collect_features to harfbuzz-sections.txt.
...
Add the fuzzer test case for feature collection timeout.
6 years ago
Behdad Esfahbod
92ba9905ca
[indic] Allow double-halant in old-spec Devanagari
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1071
6 years ago
Behdad Esfahbod
fe099a844b
[test] Add Khmer tests, with NotoSansKhmer-Regular.ttf
...
Note that there's minor positioning differences, and ONE reordering
difference between what we get for these and what Uniscribe gets.
Probably same as what's described in commit message for
1a96cc825d
6 years ago
Behdad Esfahbod
2d6edc9008
[test] Add Khmer test texts from recent bugs
6 years ago
Behdad Esfahbod
df26a32c8f
[test] Move things around for shaper updates
6 years ago
Garret Rieger
5edf454aa6
[subset] During lookup collection remember the features we've already processed.
6 years ago
David Corbett
62fa7cd1cc
Order Chakma split vowels in accordance with NFC
...
Fixes #1105 .
6 years ago
Behdad Esfahbod
019d18e9ae
Minor
6 years ago
Behdad Esfahbod
58cb4d9f73
Minor
6 years ago
Behdad Esfahbod
9940504e93
[indic] Adjust left-matra repositioning and Halant,ZWJ sequence
...
From the new code (first paragraph is from the OT Devanagari spec.):
/* o Reorder matras:
*
* If a pre-base matra character had been reordered before applying basic
* features, the glyph can be moved closer to the main consonant based on
* whether half-forms had been formed. Actual position for the matra is
* defined as “after last standalone halant glyph, after initial matra
* position and before the main consonant”. If ZWJ or ZWNJ follow this
* halant, position is moved after it.
*
* IMPLEMENTATION NOTES:
*
* It looks like the last sentence is wrong. Testing, with Windows 7 Uniscribe
* and Devanagari shows that the behavior is best described as:
*
* "If ZWJ follows this halant, matra is NOT repositioned after this halant.
* If ZWNJ follows this halant, position is moved after it."
*
* Test case, with Adobe Devanagari or Nirmala UI:
*
* U+091F,U+094D,U+200C,U+092F,U+093F
* (Matra moves to the middle, after ZWNJ.)
*
* U+091F,U+094D,U+200D,U+092F,U+093F
* (Matra does NOT move, stays to the left.)
Fixes https://github.com/harfbuzz/harfbuzz/issues/1070
Test case added with Adobe Devanagari.
6 years ago
Garret Rieger
4f8753464a
[subset] Add fuzzer test case that caused a timeout to the corpus.
6 years ago
Ebrahim Byagowi
f57804a8a5
Resolve ttx absolute path before use ( #1075 )
6 years ago
Jonathan Kew
a95cde15af
[hb-set] Additional testcase for hb-set-intersect.
7 years ago
Garret Rieger
fc246ec985
[subset] Move variable declaration out of loop.
7 years ago
Garret Rieger
197cb18b22
[subset] Add test cases for gsub closure in subsetting.
7 years ago
Garret Rieger
37eab27be3
[subset] Add fuzzing of gsub closure to hb-subset-fuzzer.
7 years ago
Behdad Esfahbod
11f1f4131b
[set] Add is_subset
...
New API:
+hb_set_is_subset()
7 years ago
Behdad Esfahbod
4a115fe7fe
[sinhala] Move reph to after post-consonants
...
Apparently this changed between Win 7 and Win 10.
Fixes https://github.com/harfbuzz/harfbuzz/issues/967
To be continued in https://github.com/harfbuzz/harfbuzz/issues/1044
7 years ago
Behdad Esfahbod
3e494caae3
[test] Fix record-test to use gids not glyph-names
...
as those might not match what FontTools think of the glyphs if font
does NOT have glyph names.
7 years ago