Ebrahim Byagowi
28620310b8
[test] Avoid alloca use as clang complain
...
Fixes https://circleci.com/gh/harfbuzz/harfbuzz/108171 complain
6 years ago
Ebrahim Byagowi
875985cd48
[subset] Don't allow malicious fonts to insert unlimited table headers
...
Fixes https://crbug.com/oss-fuzz/16810
6 years ago
Behdad Esfahbod
dc9222b1dd
[subset] Implement AlternateSubst subsetting
6 years ago
Behdad Esfahbod
23681b6da4
Minor
6 years ago
Behdad Esfahbod
33c8e2303c
[subset] Implement MultipleSubst subsetting
6 years ago
Behdad Esfahbod
5c43a7ba7e
[GSUB] Use dagger in Ligature::intersects()
6 years ago
Behdad Esfahbod
b8c642c1f5
Minor
6 years ago
Behdad Esfahbod
dc2c9aa0c3
Rename
6 years ago
Behdad Esfahbod
bc5ef765a8
[subset] Subset ligature substitutes!
...
Test with:
$ ./hb-subset -o out.ttf NotoSansArabic-Regular.ttf --drop-tables= سلام && ./hb-view out.ttf سلام
6 years ago
Behdad Esfahbod
42d887bd22
Beef up HeadlessArrayOf<>
...
Should be merged with ArrayOf...
https://github.com/harfbuzz/harfbuzz/issues/1937
6 years ago
Behdad Esfahbod
3ca809e362
Add ArrayOf::pop()
6 years ago
Behdad Esfahbod
307bd6d79f
Add arithmetic operators to IntType<>
6 years ago
Behdad Esfahbod
2e1d00c85b
[debug] Minor
6 years ago
Behdad Esfahbod
062cad5e28
Add ArrayOf::serialize_append
6 years ago
Adrian Wong
b66076812d
Adjustments to the generated Indic table output ( #1936 )
...
* Add empty parentheses after print call
* Minor: newlines. Move #pragma pop down one; #endif up one
* Adjust #define ISC/IMC output
* Regenerate Indic table
6 years ago
Ebrahim Byagowi
4ef08dbce1
Use hb_bytes_t as<T> in hb_blob_t
6 years ago
Ebrahim Byagowi
dce42cef2b
[glyf] Move GlyphHeader::from_bytes to hb_bytes_t, introduce .as<T> ()
6 years ago
Ebrahim Byagowi
6e82d59b4f
[glyf] Revert the way indexToLocFormat is set
6 years ago
Ebrahim Byagowi
88e9db19d2
[subset] Remove subset table size assertion
...
As https://github.com/harfbuzz/harfbuzz/pull/1930#issuecomment-525036802
6 years ago
Ebrahim Byagowi
a0b4ac4dce
Turn 8 spaces to tab across the project
...
According to the current code style of the project
6 years ago
Ebrahim Byagowi
269a120f13
[subset] Raise the bar in new vs old table size
...
https://crbug.com/oss-fuzz/16740
This is actually an interesting thing that {h,v}mtx allocates as
much as a font pretends to have glyphs but the solution is not
that obvious as regular fonts can have less than actually containing
metrics in their {h,v}mtx. This change raises the bar to consider this
hmtx 4 byte for every glyph case.
Initially we wanted to just find things allocating crazy amount of
memory but having the assert has led to interesting findings also
so let's don't remove the assert and see what we can find elsewhere.
6 years ago
Ebrahim Byagowi
2f8e823331
[glyf] minor
6 years ago
Ebrahim Byagowi
07e467a30e
[glyf] Move GlyphHeader size checking to a static method
6 years ago
Ebrahim Byagowi
139d14dc89
[glyf] Move GlyphHeader related logics to its, making its fields protected
6 years ago
Ebrahim Byagowi
d57819cbdb
[glyf] format source
6 years ago
Ebrahim Byagowi
2aef3013f3
[subset] Consider instruction length place itself
...
Now fixes https://crbug.com/oss-fuzz/16639 completely
6 years ago
Ebrahim Byagowi
922898c814
[subset] Fail on table grow more than 16x+4096
6 years ago
Ebrahim Byagowi
28aba780c4
[subset] Fix blob leak of _subset2 when returns early
...
Fixes https://crbug.com/oss-fuzz/16639
6 years ago
Behdad Esfahbod
541f3c2d7d
[debug] Fix extra semicolon issue
...
https://github.com/harfbuzz/harfbuzz/issues/1923
6 years ago
Behdad Esfahbod
4dcaca8411
Whitespace
6 years ago
Behdad Esfahbod
569426d861
[debug] Fix build with HB_DEBUG
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1923
6 years ago
Khaled Hosny
f233e6c801
[doc] Update list of default features in the manual
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1921
6 years ago
Behdad Esfahbod
be97e9d678
2.6.1
6 years ago
Behdad Esfahbod
d304d60e4d
[ot-font] Prefer symbol cmap subtable if found
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1918
Hopefully doesn't break anyone...
6 years ago
Ebrahim Byagowi
2a3d4987a7
Remove hb_directwrite_shape_experimental_width public API
...
I had specially exposed the API as I didn't know how to embed harfbuzz
easily elsewhere but now with harfbuzz.cc it has become very easy
and I don't like to see its use anywhere as it has a bad naming and
its Kashida adding is bogus and only useful to check where it should
be added, not visually useful however.
6 years ago
Behdad Esfahbod
163a66dc73
[test] Add test for aaa85931f3
6 years ago
Behdad Esfahbod
aaa85931f3
[font] Update multipliers when creating sub_font
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1910
6 years ago
Ebrahim Byagowi
bbad1b8298
[trak] minor, use roundf instead round to normalize the use
...
The change to `round` wasn't intended
6 years ago
Ebrahim Byagowi
e67cb500e9
[readme] add oss-fuzz badge
...
Related:
https://github.com/google/oss-fuzz/pull/2513
ce2098b7e9
6 years ago
Ebrahim Byagowi
d59d89b281
[test] Rebase 10.14 trak related test
6 years ago
Ebrahim Byagowi
20b1a27c8a
Merge remove-coretext-96dpi-assumption, @drott
...
Remove assumption about Core Text working in 96 DPI
6 years ago
Ebrahim Byagowi
37de38adea
Merge branch 'master' into remove-coretext-96dpi-assumption
6 years ago
Behdad Esfahbod
5ee1e451cf
Minor touch-up for recent change
6 years ago
Ebrahim Byagowi
3348992844
[avar] Implement inverse map, unmap
6 years ago
Ebrahim Byagowi
981f5a54c3
[fvar] Implement inverse normalize, unnormalize
6 years ago
Behdad Esfahbod
dcb4cd400f
Minor
6 years ago
Ebrahim Byagowi
ca54440324
Remove continuous development helper script
...
Not have used it personally for a long time, lets remove it
6 years ago
Khaled Hosny
40aef1b473
[ot-shape] Keep horizontal_features array sorted
6 years ago
Khaled Hosny
da5118da77
[ot-shape] Enable abvm/blwm features by default
...
Core Text seems to apply them to Latin text, but Uniscribe doesn’t.
See https://github.com/harfbuzz/harfbuzz/pull/1908#issuecomment-521819343
6 years ago
Khaled Hosny
2164bd6f29
[ot-shape] Enable dist feature by default ( #1908 )
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1907
6 years ago