Behdad Esfahbod
|
9552f4ef0d
|
[kern] Don't enforce length of last subtable
|
2018-11-23 15:24:17 -05:00 |
Behdad Esfahbod
|
748962264a
|
[aat] Disable mark advance zeroing if kern table has state-machines
Geeza Pro for example, relies on that for fancy mark positioning.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1405
|
2018-11-23 11:10:17 -05:00 |
Behdad Esfahbod
|
758c9d68e2
|
[morx/kerx] Limit range to subtable when sanitizing
|
2018-11-22 22:16:12 -05:00 |
Behdad Esfahbod
|
a9fe787a11
|
[sanitizer] Add reset_object(), make set_object() do bounds-check
Affects morx/kerx run-time only currently. Will adjust their sanitize next.
|
2018-11-22 22:12:36 -05:00 |
Behdad Esfahbod
|
2c8188bf59
|
[kerx] Make sure subtables are non-zero-length
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11400
|
2018-11-22 22:02:19 -05:00 |
Behdad Esfahbod
|
274f4c726f
|
Rename check_array2() to check_array()
|
2018-11-12 14:24:36 -05:00 |
Behdad Esfahbod
|
c8f4cc4927
|
[kerx] Fix integer overflow in multiply
Fixes https://oss-fuzz.com/v2/testcase-detail/5754863779053568
|
2018-11-12 14:11:29 -05:00 |
Behdad Esfahbod
|
1300f027a9
|
[kerx] Minor tweak on previous commit
|
2018-11-12 13:56:48 -05:00 |
Behdad Esfahbod
|
a549aa14a0
|
[kerx] Protect against stack underflow
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11367
|
2018-11-12 13:02:39 -05:00 |
Behdad Esfahbod
|
752bd8a192
|
[kerx] Fix Format1 tupleKern sanitization
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11312
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11305
|
2018-11-10 21:13:32 -05:00 |
Behdad Esfahbod
|
b18a56a290
|
[kerx] Comment
|
2018-11-07 18:13:22 -05:00 |
Behdad Esfahbod
|
006386be3a
|
[kern] Implement negative state numbers
Let the fuzzing bots rip this code apart...
|
2018-11-07 18:04:53 -05:00 |
Behdad Esfahbod
|
9af983af24
|
[kern] Switch to dispatch
|
2018-11-07 16:03:09 -05:00 |
Behdad Esfahbod
|
bc06e2805a
|
[kerx/kern] Add has_cross_stream()
|
2018-11-07 16:02:40 -05:00 |
Behdad Esfahbod
|
ea579f9ccc
|
[kerx] Fix peculiar indexing that was needed previously
Not needed now that we use GPOS attachment for cursive kerx.
|
2018-11-07 15:50:23 -05:00 |
Behdad Esfahbod
|
7a9629f2f1
|
[kerx] Implement CrossStream kerning for non-state-machine subtables
Untested.
|
2018-11-07 14:52:57 -05:00 |
Behdad Esfahbod
|
0eb4157011
|
[kerx] Disable backwards-kerning for non-state-machine tables
That's what the spec says for Backwards flag, only applicable to
formats 1 and 4.
|
2018-11-07 14:42:15 -05:00 |
Behdad Esfahbod
|
b2f687c256
|
[kerx] Use GPOS attachment facilities for CrossStream kerning
|
2018-11-07 14:38:29 -05:00 |
Behdad Esfahbod
|
e10a856eb2
|
[kerx] Format
|
2018-11-07 14:11:48 -05:00 |
Behdad Esfahbod
|
649cc3ef27
|
[kerx] Don't disable crossKerning if kern feature is off
|
2018-11-07 14:07:13 -05:00 |
Behdad Esfahbod
|
0c3b061ac2
|
[kern] Apply erlier, where GPOS/kerx are applied
|
2018-11-07 13:58:41 -05:00 |
Behdad Esfahbod
|
f4bad0086e
|
[kerx] Implement tupleKerning for Format1
Untested.
|
2018-11-07 13:51:17 -05:00 |
Behdad Esfahbod
|
39b4ef6f18
|
[kerx] Better sanitize tupleKerning
|
2018-11-07 13:48:45 -05:00 |
Behdad Esfahbod
|
14772da06f
|
[kern/kerx] Share KernTable, renamed to KerxTable
|
2018-11-07 13:40:22 -05:00 |
Behdad Esfahbod
|
db6e658e8c
|
[kern/kerx] More towards sharing KernTable
|
2018-11-07 13:33:23 -05:00 |
Behdad Esfahbod
|
8e9f6cd0fd
|
[kerx] More minor
|
2018-11-07 12:49:20 -05:00 |
Behdad Esfahbod
|
f8c3df7d4a
|
[kern/kerx] Minor
|
2018-11-07 12:48:06 -05:00 |
Behdad Esfahbod
|
f5e0a63a22
|
[kern/kerx] Towards sharing KernTable
|
2018-11-07 12:32:51 -05:00 |
Behdad Esfahbod
|
330508497d
|
[kern/kerx] Minor
|
2018-11-07 12:27:44 -05:00 |
Behdad Esfahbod
|
1a5ef84900
|
[kern/kerx] Share Format2
This, enables Format2 for kern table, which was disabled before.
|
2018-11-07 12:19:52 -05:00 |
Behdad Esfahbod
|
8faec4e334
|
[kerx] Towards merging Format2
|
2018-11-07 12:16:38 -05:00 |
Behdad Esfahbod
|
e72e041c3c
|
[kerx] Rename
|
2018-11-07 11:56:36 -05:00 |
Behdad Esfahbod
|
241ba7da51
|
[morx/kerx] Rename types
|
2018-11-07 11:51:40 -05:00 |
Behdad Esfahbod
|
c808e444da
|
[kern/kerx] Share Format1 subtable
|
2018-11-07 11:47:12 -05:00 |
Behdad Esfahbod
|
a244190afa
|
[kerx] Minor
|
2018-11-07 11:47:12 -05:00 |
Behdad Esfahbod
|
2a72091196
|
[kerx] Minor
|
2018-11-07 11:26:57 -05:00 |
Behdad Esfahbod
|
f5f4ca7871
|
[kern/kerx] Enable crossStream kerning in vertical
CoreText doesn't, but no reason we shouldn't do.
|
2018-11-07 11:21:09 -05:00 |
Behdad Esfahbod
|
d5c88af4a2
|
[kerx] More towards sharing Format1
|
2018-11-07 11:20:14 -05:00 |
Behdad Esfahbod
|
ce3451dc2a
|
[kerx] Towards sharing Format1
|
2018-11-07 11:02:04 -05:00 |
Behdad Esfahbod
|
5b17853547
|
[kern/kerx] Share Format0
|
2018-11-07 10:45:25 -05:00 |
Behdad Esfahbod
|
c97dde5d55
|
[kern/kerx] Towards merge more
|
2018-11-07 10:39:39 -05:00 |
Behdad Esfahbod
|
540ccc38b0
|
[kern/kerx] More towards sharing
|
2018-11-07 10:33:46 -05:00 |
Behdad Esfahbod
|
d0f8f4c200
|
[kern] Move kern machine to hb-kern.hh
|
2018-11-07 10:25:25 -05:00 |
Behdad Esfahbod
|
a6acff252c
|
[kerx] Towards sharing subtables with kern
|
2018-11-07 10:19:57 -05:00 |
Behdad Esfahbod
|
59e04e4231
|
[kern/kerx] Fix cursive joining
Tested with Waseem TTC:
$ hb-shape Waseem.ttc جحخج
[F1Jeem_R2=3@0,180+479|M1Khah_L2_R2=2@0,682+403|M1Hah_L2_R2=1@0,1184+403|I1Jeem_L2=0@0,1184+744]
|
2018-11-07 00:27:20 -05:00 |
Behdad Esfahbod
|
8d0f797139
|
[kern/kerx] Fix "reset" magic value
|
2018-11-07 00:05:10 -05:00 |
Behdad Esfahbod
|
0123976a0c
|
[kerx] Adjust CrossStream kern to match 'kern' table
|
2018-11-06 21:46:14 -05:00 |
Behdad Esfahbod
|
01bf43ac01
|
[kern] Implement CrossStream kerning
|
2018-11-06 17:59:31 -05:00 |
Behdad Esfahbod
|
220a5991ba
|
[kern/kerx] Fix trace numbering
|
2018-11-06 17:16:23 -05:00 |
Behdad Esfahbod
|
bfafe208da
|
[kern] Switch to dispatch
|
2018-11-06 12:13:20 -05:00 |