Behdad Esfahbod
d03f11f246
Fix buffer_diff for empty buffers
...
If buffers are empty, content type should be ignored.
This fixes last of the failing tests: fuzzed.tests. Green again!
7 years ago
Behdad Esfahbod
7cc348041d
[unsafe-to-break] Fix unsafe-to-break for cluster-level=1
...
Fixes tests/shaping/tests/cluster.tests
7 years ago
Behdad Esfahbod
61a9d7e6d0
Minor
7 years ago
Behdad Esfahbod
03a5a6f873
[util] Add --unicodes to hb-view / hb-shape
...
Fixes https://github.com/behdad/harfbuzz/issues/154
7 years ago
Behdad Esfahbod
0e5b475d98
Minor
7 years ago
Behdad Esfahbod
3e1fc6d18b
Minor
7 years ago
Behdad Esfahbod
04f009f848
Add test accidentally removed in previous commit
7 years ago
Behdad Esfahbod
06cb162cd7
[indic] Treat Consonant_With_Stacker as consonant
...
Fixes https://github.com/behdad/harfbuzz/issues/528
"Kannada JIHVAMULIYA and UPADHMANIYA insert dotted circles"
7 years ago
Behdad Esfahbod
c449d2d8c9
[unsafe-to-break] Mark during fraction-slash formation
...
Fixes tests/automatic-fractions.tests
7 years ago
Behdad Esfahbod
b262ebcc9c
[util] Fix cluster sweeping during --verify
...
If *I* get this wrong in 2017, I have no idea how others get their head around
cluster math...
Fixes tests/arabic-fallback-shaping.tests
7 years ago
Behdad Esfahbod
69d701b02e
[util] When --verify fails, return reconstructed shape results
7 years ago
Behdad Esfahbod
099472e08b
hb_buffer_diff() tweak
...
I like to have a mode where CONTAINS_NOTDEF and CONTAINS_DOTTEDCIRCLE are not
returned. Abused a value of -1 for that. hb-shape now uses it. Fixes two
of the six tests failing with --verify in test/shaping/run-tests.sh.
7 years ago
Behdad Esfahbod
e8b364b860
1.5.0
7 years ago
Behdad Esfahbod
224d20e4e1
[docs] Minor
7 years ago
Behdad Esfahbod
4387b059a0
[test] Add --verify to hb-shape
...
Disabled for now. Will enable and fix failures after next release.
7 years ago
Behdad Esfahbod
b2dd0c1c32
Add hb_glyph_info_get_glyph_flags()
...
New API.
7 years ago
Behdad Esfahbod
3e8f4f1452
Rename HB_BUFFER_DIFF_FLAG_MASK_MISMATCH to HB_BUFFER_DIFF_FLAG_GLYPH_FLAGS_MISMATCH
7 years ago
Behdad Esfahbod
a9e52a1af4
[util] Prefix trace lines with "trace:", and error lines with "error:"
7 years ago
Behdad Esfahbod
7ea10c35a3
[util] Respect eot/bot in safe-to-break test; hook up hb_buffer_diff()
7 years ago
Behdad Esfahbod
8820ba29df
Fix warning about "may be used uninitialized"
7 years ago
Emil A Eklund (eae)
91770e1c56
Fix signed/unsigned warning ( #522 )
...
Change hb_buffer_diff to explicitly cast result of abs to unsigned when
comparing with position_fuzz to avoid unsafe signed/unsigned comparions
warnings on windows.
7 years ago
Behdad Esfahbod
587f15ece3
Minor
7 years ago
Behdad Esfahbod
a88e2a73f3
[util] Fix leaks
7 years ago
Behdad Esfahbod
338e61ad1b
Fix typo
7 years ago
Jonathan Kew
331d66c7fe
Add function to compare two buffers
...
Based on patch from Jonathan Kew.
Needs more cleaning up and documentation.
New API:
hb_buffer_diff_flags_t
hb_buffer_diff()
7 years ago
Behdad Esfahbod
219af509ef
[graphite2] Fix warning
7 years ago
Behdad Esfahbod
239119a631
[unsafe-to-break] Mark all positions as unsafe in alternative shapers
7 years ago
Behdad Esfahbod
05fabbd03e
[unsafe-to-break] Towards verifying unsafe-to-break in --verify
...
We break and shape fragments and reconstruct shape result from them.
Remains to compare to original buffer. Going to add some buffer
comparison API and use here, instead of open-coding.
7 years ago
Behdad Esfahbod
6ce25f57c6
Fix hb_buffer_append()
...
Ouch!
7 years ago
Behdad Esfahbod
1c17c2bde5
[unsafe-to-break] Copy flag to all glyphs in a cluster
...
Makes consumption easier.
7 years ago
Behdad Esfahbod
ec104e5912
[unsafe-to-break] Mark unsafe is cluster merging is disabled
...
We were relying on cluster merges not requiring unsafe flagging because
they get merged. If cluster level requests no merging, then we flag
unsafe when merge would have happened.
7 years ago
Behdad Esfahbod
39a9749430
New API: hb_buffer_append()
7 years ago
Behdad Esfahbod
d2052278f2
[util] Add --verify to hb-shape / hb-view that verifies shape results
...
Right now it checks for monotone cluster values. Other checks to be added.
7 years ago
Behdad Esfahbod
14a639ea59
[unsafe-to-break] Fix Use-of-uninitialized-value in unsafe_to_break_set_mask
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3011
7 years ago
Behdad Esfahbod
e43aad5552
[unsafe-to-break] Flag in Thai PUA shaping
7 years ago
Behdad Esfahbod
eae009602b
[unsafe-to-break] Flag in Hangul shaper
7 years ago
Behdad Esfahbod
b65aa1cd47
[unsafe-to-break] Flag during mark attachment
7 years ago
Behdad Esfahbod
c4712f8e37
Fix test
7 years ago
Behdad Esfahbod
882ebdadd6
[unsafe-to-break] Flag during cursive positioning
7 years ago
Behdad Esfahbod
2d158ca376
[unsafe-to-break] Flag during kerning
7 years ago
Behdad Esfahbod
a7c4972cce
[unsafe-to-break] Flag during fallback positioning
7 years ago
Behdad Esfahbod
e2a2b5b229
[unsafe-to-break] Be careful with flag propagation when merging clusters
7 years ago
Behdad Esfahbod
f2868c2008
Set mask to 0, instead of 1, by default
...
This shouldn't matter.
7 years ago
Behdad Esfahbod
9e005c5d86
[unsafe-to-break] Mark Indic-like clusters as unsafe-to-break
7 years ago
Behdad Esfahbod
5287ccc935
[unsafe-to-break] Allocate public bits from 0
7 years ago
Behdad Esfahbod
91ce0c45d6
[safe-to-break] Fix logic when there is no out-buffer
7 years ago
Behdad Esfahbod
a043c99f77
[unsafe-to-break] Simplify logic
...
Always use the algorithm for non-monotone case. It's more robust.
7 years ago
Behdad Esfahbod
40bd7e9a1c
[unsafe-to-break] Add UNSAFE_TO_BREAK flag
...
Not all shapers code is updated to set this properly.
GSUB and Arabic shaper are updated.
GPOS and other shapers are NOT.
Fixes https://github.com/behdad/harfbuzz/issues/224
7 years ago
Behdad Esfahbod
3e44748ebe
[util] Fix two other Coverity warnings
7 years ago
Behdad Esfahbod
356f93b64b
[util] Fix warning
7 years ago