Dominik Röttsches
a657f23ca3
Blacklist another instance of Padauk ( #419 )
...
In https://crbug.com/681813 another instance of Padauk was identified
triggering collapsed glyphs. Blacklist this version by patching
hb-ot-layout.cc to print out gdef, gsub, and gpos table length, then
adding those to the list of blacklisted versions.
8 years ago
ebraminio
70202983f5
[ci] Disable vcpkg freetype installation and fix Appveyor CI ( #422 )
8 years ago
jfkthame
44f7d6ecde
Guard against underflow when adjusting length ( #421 )
...
* Guard against underflow when adjusting length
With the fuzz-testcase in mozilla bug 1295299, we end up with a recursed lookup that removes 3 items, when `match_positions[idx]` is 0, which results in (unsigned) `end` wrapping to a huge value.
Making `end` a signed int is probably the simplest route to a fix.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1295299 .
* Add testcase for #421 .
8 years ago
jfkthame
45766b673f
[indic] Add support for Grantha marks that may be used in Tamil to th… ( #401 )
...
* [indic] Add support for Grantha marks that may be used in Tamil to the Indic table.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1331339 .
Testcase: U+0BA4,U+0BC6,U+1133c,U+0BAA,U+1133c,U+0BC6,U+1133c
* [indic] Add test for Grantha nukta that is allowed in Tamil by ScriptExtensions.txt
8 years ago
Behdad Esfahbod
d4bb52b9fd
Unbreak hb-coretext build
8 years ago
Behdad Esfahbod
c8dfed8e1e
Merge pull request #357 from khaledhosny/graphite-scale
...
[graphite] Fix shaping with varying font sizes
8 years ago
Behdad Esfahbod
7c47474f20
Set LC_ALL instead of LANG when creating harfbuzz.def
...
Hopefully fixes Travis faliure?
https://github.com/behdad/harfbuzz/pull/413#issuecomment-278481882
https://travis-ci.org/khaledhosny/harfbuzz/jobs/199785332#L1065
8 years ago
Philip Withnall
ffde3c9f9e
hb-font: Fix a potentially undefined use of memcmp() ( #413 )
...
While it’s fine to call memcmp(x, 0, 0) in practice, the C99 standard
explicitly says that this is not allowed: even if the length is zero,
the pointer arguments must be valid.
http://stackoverflow.com/a/16363034
Coverity ID: 141178
Signed-off-by: Philip Withnall <withnall@endlessm.com>
8 years ago
Behdad Esfahbod
09594df1ae
Update ax_pthread.m4 to latest upstream version
...
Might help with https://github.com/behdad/harfbuzz/issues/399
8 years ago
Philip Withnall
a6ced90efc
test: Fix some memory leaks in test-font.c ( #409 )
...
Coverity IDs: 141039, 141040, 141041
8 years ago
Philip Withnall
925ceacfed
util: Add missing field initialisers in constructor ( #410 )
...
Coverity ID: 141042
8 years ago
Behdad Esfahbod
73c6dcbb45
Silence Coverity warning
...
Fixes https://github.com/behdad/harfbuzz/issues/408
8 years ago
Behdad Esfahbod
466b3e58bd
Shuffle things around a bit
8 years ago
Behdad Esfahbod
fc8189b639
Minor
8 years ago
Behdad Esfahbod
d3d3691806
Add dirty-state tracking to hb_face_t
8 years ago
Behdad Esfahbod
2171f48b4b
Add dirty-state tracking to hb_font_t
8 years ago
Behdad Esfahbod
95808bad2c
Add new API hb_font_set_face()
...
For completeness.
8 years ago
jfkthame
4ec19319ab
Add Win10 Anniversary Update version of Tahoma to GDEF blacklist. ( #412 )
8 years ago
Behdad Esfahbod
1dd630a7f2
Minor
...
Fixes https://github.com/behdad/harfbuzz/issues/411
8 years ago
Behdad Esfahbod
e888f642db
Route Adlam through Arabic shaper
...
Fixes joined Adlam rendering.
Fixes https://github.com/googlei18n/noto-fonts/issues/828
8 years ago
jfkthame
72c754873c
Add Win7 version of himalaya.ttf to the GDEF table blacklist. ( #407 )
8 years ago
Behdad Esfahbod
22af28a3f1
[var] Implement MVAR table
...
Unhooked. Untested.
8 years ago
Behdad Esfahbod
67a191164d
[var] Whitespace
8 years ago
Behdad Esfahbod
6af6c1114a
1.4.2
8 years ago
Behdad Esfahbod
79e8e27ffd
[var] Hook up advance variations to hb-ot-font
...
Yay, works!
8 years ago
Behdad Esfahbod
6074340371
[var] Fix bug in HVAR/VVAR impl
8 years ago
Behdad Esfahbod
bd3b11d926
[var] Prepare for hooking up advance variations to hb-ot-font
8 years ago
Behdad Esfahbod
a4fca9f005
[var] Implement DeltaSetIndexMap and advance delta fetching
...
Not hooked up to hb-ot-font yet.
8 years ago
Behdad Esfahbod
7b399f73ef
[var] Start adding HVAR/VVAR
8 years ago
Behdad Esfahbod
b732c53eb5
Add LArrayOf<>
8 years ago
Behdad Esfahbod
5e156fa5ed
Add LOffsetTo<>
8 years ago
Behdad Esfahbod
d6bdbbca30
[var] Remove HB_OT_TAG_fvar/avar
...
We're not going to define public macros for tags for tables.
There's little use to those and they are implementation detail.
8 years ago
Behdad Esfahbod
a11d9a0466
Minor
8 years ago
Behdad Esfahbod
7a860f656e
[var] Add macros for standard axes
8 years ago
Behdad Esfahbod
a484e237b1
[var] Implement 'avar' table mapping
...
Untested!
8 years ago
Behdad Esfahbod
a429090572
[var] Flesh out --variations documentation
8 years ago
Behdad Esfahbod
5ec96d30ca
[var] Adjust API in prep for 'avar' implementation
...
The 'avar' table does not allow random access to axis maps,
so change API to avoid quadratic-time implementation.
Removed -hb_ot_var_normalize_axis_value(), added
+hb_ot_var_normalize_variations() and
+hb_ot_var_normalize_coords() instead.
8 years ago
Behdad Esfahbod
8a577aaa0d
[var] Stub implementation of avar table
8 years ago
Behdad Esfahbod
7647a05a0b
Minor
8 years ago
Behdad Esfahbod
d2f249e745
Stub out doc comments for new symbols
8 years ago
Behdad Esfahbod
5dfd341f51
Minor
8 years ago
Behdad Esfahbod
825e40407d
[hb-ft] Remove use of variable-length array
...
Hopefully also fixes build failure on msvc.
8 years ago
Behdad Esfahbod
47ee34e847
[var] Hook up variations to FreeType face
...
hb-view correctly renders variations with ft font-funcs now.
hb-ot-font needs HVAR implementation.
8 years ago
Behdad Esfahbod
111f3e5517
[util] Add --variations
...
Is hooked up to the font, but not to FreeType, so raster doesn't show yet.
Documentation needs to be done.
8 years ago
Behdad Esfahbod
bb1e19268f
[var] Rename var_coord to variation
...
Looks much better.
8 years ago
Behdad Esfahbod
64fe92bf2d
[var] Remove use of variable-length arrays
8 years ago
Behdad Esfahbod
2491134b38
[var] Add hb_font_set_var_coords()
8 years ago
Behdad Esfahbod
113393efec
Remove a few unused includes
8 years ago
Behdad Esfahbod
2d40923ca9
Minor
8 years ago
Behdad Esfahbod
8b2a580470
[var] Add hb_font_set_var_coords_design()
8 years ago