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
Behdad Esfahbod
6ddd669e20
[khmer] Clear syllables before presentation features
...
Probably not what Uniscribe does, but good idea?
6 years ago
Behdad Esfahbod
8eef1964a7
[khmer] Revert previous change, and remove pauses
...
This makes test suite happy again (at 44) while fixing the sequences
we were fixing, which were the following with KhmerUI.ttf:
U+1789,U+17BC
U+1789,U+17D2,U+1789
U+1789,U+17D2,U+1789,U+17BC
Fixes rest of https://github.com/harfbuzz/harfbuzz/issues/974
6 years ago
Behdad Esfahbod
7c658ea2f2
[khmer] Apply ccmp after basic features
...
Part of https://github.com/harfbuzz/harfbuzz/issues/974
6 years ago
Behdad Esfahbod
1a96cc825d
[khmer] Rewrite most of shaper to better follow spec
...
Khmer spec has only one reordering phase, and only simple prebase
matra and Coeng-Ro reordering. Implement that. Specifically,
this was done to address recognizing different orders of the matra
and Coeng-Ro sequence. That said, some combinations are now
reordered differently from Uniscribe. Not clear if that's intended
or a bug in Uniscribe. The following two sequences render the same
in Uniscribe whereas we reorder them differently:
U+17A0,U+17D2,U+179A,U+17C2
U+17A0,U+17C2,U+17D2,U+179A
For that reason, our test suite numbers regressed slightly. Used
to be at 34 for fails, now at:
KHMER: 299080 out of 299124 tests passed. 44 failed (0.0147096%)
But generally a good change, and removed lots of code.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1026
6 years ago
Behdad Esfahbod
f5152cea42
[shaper] Move code around
6 years ago
Behdad Esfahbod
36d0fbbc52
[shaper] Remove a macro
6 years ago
Behdad Esfahbod
b1e5650c67
[atomic] Make pointer get op relaxed instead of acquire
...
We only use it before cmpexch, so relaxed is fine and faster for
common case.
6 years ago
Behdad Esfahbod
66ccd8ac40
[serialize] Increase stage count from 8 to 32
...
Indic shaper uses many stages. Now we are provably not limiting
functionality whereas the previous limit of 8 was assuming real-world
practices.
6 years ago
Behdad Esfahbod
ee8cf91965
[serialize] Remove unused truncate() method
6 years ago
Garret Rieger
5edf454aa6
[subset] During lookup collection remember the features we've already processed.
6 years ago
Behdad Esfahbod
42c183f803
Minor
6 years ago
Behdad Esfahbod
ecab6604e5
[serialize] Allocate for markFilteringSet
6 years ago
Behdad Esfahbod
7f08818c44
Minor
6 years ago
prrace
2e25d8f491
Fix unlikely leaks
6 years ago
Behdad Esfahbod
3c2842cbcf
Add hb-iter-private.hh
...
Unused so far.
6 years ago
Behdad Esfahbod
92b1e025c6
Move some code from hb-open-type-private.hh to hb-machinery-private.hh
6 years ago
Behdad Esfahbod
6b11fea997
[closure] Allocate out set on the stack
6 years ago
Behdad Esfahbod
74467b7901
Fix compile
6 years ago
Behdad Esfahbod
bf90f35302
[coretext] Add note
6 years ago
Garret Rieger
fb58cb4b5c
[subset] Only used reachable lookups for gsub closure.
6 years ago
Behdad Esfahbod
c38bd4025f
[closure] Separate in and out glyphs
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1107
6 years ago
Garret Rieger
85646fdadb
[subset] Limit the iterations of the closure algorithm.
...
Prevents O(n^2) run times.
6 years ago
Behdad Esfahbod
94759d4cf8
Fix visibility on mingw32
...
Should fix bots again.
6 years ago
Behdad Esfahbod
61eddbd8ef
Fix infinite loop in loading num_glyphs within sanitizer
6 years ago
Behdad Esfahbod
e22a48ac95
One more visibility trick
...
Should fix Windows build again.
6 years ago
Behdad Esfahbod
e57a638bde
One more
6 years ago
Behdad Esfahbod
36ed163fdd
Remove unnecessary OT:: namespace specifiers
6 years ago
Behdad Esfahbod
c6bc7c3831
Set num glyphs on sanitizer reference_table()
...
Move out-of-class definitions of two methods to hb-static so they
are accessible in libharfbuzz-subset.
6 years ago
Behdad Esfahbod
9401829d4e
Remove Sanitizer<>
6 years ago
Behdad Esfahbod
8e3e41272b
Port rest of code away from Sanitizer<>
6 years ago
Behdad Esfahbod
d6a8f64045
Port dump-emoji away from Sanitizer<>
6 years ago
Behdad Esfahbod
14f78d2b3b
.
6 years ago
Behdad Esfahbod
4547051f48
Minor
6 years ago
Behdad Esfahbod
740ae27d5c
Port sbix off of Sanitizer<>
6 years ago
Behdad Esfahbod
9583e0077d
Port more off of Sanitizer<>
6 years ago
Behdad Esfahbod
e7737b41d7
Add sanitizer reference_table, also fix clang build
...
Clang is being really peculiar. Fix with:
- inline hb_blob_t *sanitize (hb_blob_t *blob) { return c->sanitize<Type> (blob); }
+ inline hb_blob_t *sanitize (hb_blob_t *blob) { return c[0].template/*clang idiosyncrasy*/sanitize_blob<Type> (blob); }
6 years ago
David Corbett
62fa7cd1cc
Order Chakma split vowels in accordance with NFC
...
Fixes #1105 .
6 years ago
Ebrahim Byagowi
0c1b287b72
Add a new API, hb_ot_layout_get_feature_name_ids ( #976 )
...
This new API returns cvXX and ssXX related NameId, things like
featUiLabelNameId, featUiTooltipTextNameId, sampleTextNameId, ... of cvXX
and UINameId of ssXX, in a unified way.
However HarfBuzz currently doesn't expose an API for retrieving the actual
information associated with NameId from the `name` table and that should be
done separately.
6 years ago
Ebrahim Byagowi
93b65d9fe3
Remove dump-fon ( #1100 )
...
It had interesting stuffs like EXE parsing and
big-endian parsers but added in an attempt to find
a solution for #681 which later found not related.
6 years ago
Ebrahim Byagowi
d5cd47a69c
Remove AAT's gcid/fmtx ( #1099 )
...
We are not going to use them, at least in the foreseeable future
6 years ago
Behdad Esfahbod
1e9e344b2b
Fix hb_face_count() sanitize referencing
6 years ago
Behdad Esfahbod
a8cc0b5907
Remove TODO that is not gonna be done
...
Previously the idea was to cache sanitize results externally (think,
in Fontconfig) and avoid resanitizing every time. That's, not a good
idea.
6 years ago
Behdad Esfahbod
be70738400
Move sanitizer code around a bit
6 years ago
Behdad Esfahbod
db5d430eff
[aat] Update for blob changes
...
Also, uncomment code again, just "if (0)" it out, so it doesn't get stale again.
6 years ago
Behdad Esfahbod
68310a65cb
1.8.4
6 years ago
Behdad Esfahbod
04b7b81bcb
Reland "Implement C++11-style GCC builtin atomic ops"
...
Fixed the crasher in it.
6 years ago
Behdad Esfahbod
019d18e9ae
Minor
6 years ago
Behdad Esfahbod
3edef5a19b
Revert "Implement C++11-style GCC builtin atomic ops"
...
This reverts commit 21fa170f0b
.
Is crashing. Oops.
6 years ago