ebraminio [Tue, 11 Apr 2017 18:48:18 +0000 (23:18 +0430)]
[cmake] Improve third party libraries support (#461)
ebraminio [Tue, 11 Apr 2017 17:02:14 +0000 (21:32 +0430)]
[cmake] Add utils build support (#460)
Chun-wei Fan [Thu, 6 Apr 2017 10:44:28 +0000 (18:44 +0800)]
NMake Makefiles: Fix ICU builds
Fix the check conditions in config-msvc.mak and info-msvc.mak so that
the ICU items does indeed get built into the HarfBuzz main DLL, and that
the correct configuration info is displayed.
Also update the checks in detectenv-msvc.mak so that we can detect that
we are using Visual Studio 2017 (although the 2015-built binaries use
the same CRT DLL as the 2017 ones).
Behdad Esfahbod [Wed, 5 Apr 2017 13:42:11 +0000 (15:42 +0200)]
Move list of ragel sources to Makefile.sources as well
ebraminio [Wed, 5 Apr 2017 09:21:23 +0000 (02:21 -0700)]
Split ragel generated files lists and remove hardcoded rl files lists (#453)
ebraminio [Tue, 4 Apr 2017 10:33:51 +0000 (15:03 +0430)]
Add CMake build support (#444)
jfkthame [Mon, 3 Apr 2017 11:22:39 +0000 (12:22 +0100)]
avoid UBSan warning in get_stage_lookups (#450)
See https://bugzilla.mozilla.org/show_bug.cgi?id=1336600
Dominik Schloesser [Sun, 26 Mar 2017 07:22:34 +0000 (09:22 +0200)]
Current fonttools (3.9.1) generate subset-file called font.subset.ttf instead of older font.ttf.subset
Dominik Schloesser [Sun, 26 Mar 2017 07:21:13 +0000 (09:21 +0200)]
Updated samples: record-it.sh is now record-test.sh
Khaled Hosny [Sun, 26 Mar 2017 08:48:53 +0000 (10:48 +0200)]
[tools] Make hb-unicode-code work with Python 3
Related to https://github.com/behdad/harfbuzz/pull/445
Behdad Esfahbod [Fri, 24 Mar 2017 17:24:52 +0000 (10:24 -0700)]
Blacklist more versions of Padauk
Patch from Phil Race.
Khaled Hosny [Wed, 22 Mar 2017 22:35:36 +0000 (00:35 +0200)]
[ci] Fix msys2 build on AppVeyor
For whatever reason the env variables need to be the Windows way or they
end up being empty.
Khaled Hosny [Wed, 22 Mar 2017 21:07:15 +0000 (23:07 +0200)]
Just always use strtod here
Chun-wei Fan [Fri, 24 Feb 2017 09:58:25 +0000 (17:58 +0800)]
src/hb-common.cc: Fix build on older Visual Studio
Visual Studio only supported strtof() from Visual Studio 2013 onwards, so
use strtod() instead to do the operation, which should do the same thing,
sans going to a double, not a float.
Chun-wei Fan [Fri, 24 Feb 2017 09:47:44 +0000 (17:47 +0800)]
Visual Studio builds: Fix Introspection when UCDN enabled
The sources in src/hb-ucdn and not included correctly into the NMake
Makefiles, as we need their explicit relative location as we pass all the
sources we used into the introspection scanner. This was not an issue
before as we excluded the UCDN sources in the build when we enabled
introspection (meaning GLib is enabled), but since we default on using
UCDN on all builds unless explicitly disabled, we need to deal with this.
This did not affect builds using UCDN without introspection due to the use
of NMake batch rules.
Fix this by creating a NMake Makefile module on-the-fly with the correct
subdir info, and using that list in there instead.
Chun-wei Fan [Thu, 23 Feb 2017 05:02:49 +0000 (13:02 +0800)]
Update Visual Studio builds for UCDN usage
We now use UCDN by default, so make it so in the build files; however
don't hardcode HAVE_UCDN as one may still opt not to use it (but pass
it in as a CFLAG unless one explicitly disables UCDN by using NO_UCDN=1
on the NMake command line).
Note that we are not blocking builds where UCDN is disabled along with
GLib and ICU, as that will trigger a build error anyways which will tell
the user what needs to be done to remedy this.
Behdad Esfahbod [Sat, 11 Mar 2017 07:02:28 +0000 (23:02 -0800)]
1.4.5
Behdad Esfahbod [Fri, 10 Mar 2017 21:23:02 +0000 (13:23 -0800)]
Revert "Fix Context lookup application when moving back after a glyph delete"
This reverts commit
b9b005f3a44ccf78a45b212b126287b69b9f4b40.
This introduced invalid access cases. Revert until I fix correctly.
Behdad Esfahbod [Wed, 8 Mar 2017 02:13:28 +0000 (18:13 -0800)]
Fix buffer serialize of empty buffer
Ouch!
Behdad Esfahbod [Sun, 5 Mar 2017 21:54:56 +0000 (13:54 -0800)]
1.4.4
Behdad Esfahbod [Sun, 5 Mar 2017 21:51:01 +0000 (13:51 -0800)]
Add TODO item
Behdad Esfahbod [Thu, 2 Mar 2017 19:46:33 +0000 (11:46 -0800)]
Remove TODO item that is not going to happen
Behdad Esfahbod [Wed, 1 Mar 2017 22:27:23 +0000 (14:27 -0800)]
Fix Context lookup application when moving back after a glyph delete
This was broken forever, since days that we did not allow moving
tape backwards. Works now. Reported by Doug Felt.
Behdad Esfahbod [Sat, 25 Feb 2017 21:37:54 +0000 (13:37 -0800)]
Add few tests found by libFuzzer and oss-fuzz
Behdad Esfahbod [Sat, 25 Feb 2017 21:30:38 +0000 (13:30 -0800)]
Fix buffer-overrun with Bengali reph positioning code
This has no security implications whatsoever since we always keep
and extra element at the end of buffer, just in case.
Discovered by oss-fuzz
CC https://github.com/behdad/harfbuzz/issues/139
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=660
Behdad Esfahbod [Sat, 25 Feb 2017 19:35:05 +0000 (11:35 -0800)]
1.4.3
Dominik Röttsches [Mon, 20 Feb 2017 19:52:07 +0000 (21:52 +0200)]
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.
ebraminio [Sat, 18 Feb 2017 07:07:36 +0000 (10:37 +0330)]
[ci] Disable vcpkg freetype installation and fix Appveyor CI (#422)
jfkthame [Fri, 17 Feb 2017 03:03:24 +0000 (03:03 +0000)]
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.
jfkthame [Thu, 16 Feb 2017 17:40:21 +0000 (17:40 +0000)]
[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
Behdad Esfahbod [Thu, 9 Feb 2017 22:13:25 +0000 (14:13 -0800)]
Unbreak hb-coretext build
Behdad Esfahbod [Wed, 8 Feb 2017 22:36:18 +0000 (14:36 -0800)]
Merge pull request #357 from khaledhosny/graphite-scale
[graphite] Fix shaping with varying font sizes
Behdad Esfahbod [Wed, 8 Feb 2017 22:33:28 +0000 (14:33 -0800)]
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
Philip Withnall [Wed, 8 Feb 2017 21:56:57 +0000 (21:56 +0000)]
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>
Behdad Esfahbod [Wed, 8 Feb 2017 02:25:12 +0000 (18:25 -0800)]
Update ax_pthread.m4 to latest upstream version
Might help with https://github.com/behdad/harfbuzz/issues/399
Philip Withnall [Wed, 8 Feb 2017 02:18:33 +0000 (02:18 +0000)]
test: Fix some memory leaks in test-font.c (#409)
Coverity IDs: 141039, 141040, 141041
Philip Withnall [Wed, 8 Feb 2017 02:17:48 +0000 (02:17 +0000)]
util: Add missing field initialisers in constructor (#410)
Coverity ID: 141042
Behdad Esfahbod [Wed, 8 Feb 2017 00:53:21 +0000 (16:53 -0800)]
Silence Coverity warning
Fixes https://github.com/behdad/harfbuzz/issues/408
Behdad Esfahbod [Sat, 4 Feb 2017 00:43:25 +0000 (16:43 -0800)]
Shuffle things around a bit
Behdad Esfahbod [Sat, 4 Feb 2017 00:17:08 +0000 (16:17 -0800)]
Minor
Behdad Esfahbod [Fri, 3 Feb 2017 23:42:03 +0000 (15:42 -0800)]
Add dirty-state tracking to hb_face_t
Behdad Esfahbod [Fri, 3 Feb 2017 18:58:09 +0000 (10:58 -0800)]
Add dirty-state tracking to hb_font_t
Behdad Esfahbod [Fri, 3 Feb 2017 18:39:40 +0000 (10:39 -0800)]
Add new API hb_font_set_face()
For completeness.
jfkthame [Thu, 2 Feb 2017 18:48:23 +0000 (18:48 +0000)]
Add Win10 Anniversary Update version of Tahoma to GDEF blacklist. (#412)
Behdad Esfahbod [Wed, 1 Feb 2017 19:57:21 +0000 (11:57 -0800)]
Minor
Fixes https://github.com/behdad/harfbuzz/issues/411
Behdad Esfahbod [Thu, 26 Jan 2017 22:50:14 +0000 (14:50 -0800)]
Route Adlam through Arabic shaper
Fixes joined Adlam rendering.
Fixes https://github.com/googlei18n/noto-fonts/issues/828
jfkthame [Thu, 26 Jan 2017 22:35:41 +0000 (22:35 +0000)]
Add Win7 version of himalaya.ttf to the GDEF table blacklist. (#407)
Behdad Esfahbod [Tue, 24 Jan 2017 07:42:53 +0000 (23:42 -0800)]
[var] Implement MVAR table
Unhooked. Untested.
Behdad Esfahbod [Tue, 24 Jan 2017 07:21:30 +0000 (23:21 -0800)]
[var] Whitespace
Behdad Esfahbod [Tue, 24 Jan 2017 02:35:00 +0000 (18:35 -0800)]
1.4.2
Behdad Esfahbod [Tue, 24 Jan 2017 01:55:31 +0000 (17:55 -0800)]
[var] Hook up advance variations to hb-ot-font
Yay, works!
Behdad Esfahbod [Tue, 24 Jan 2017 01:55:16 +0000 (17:55 -0800)]
[var] Fix bug in HVAR/VVAR impl
Behdad Esfahbod [Tue, 24 Jan 2017 01:34:44 +0000 (17:34 -0800)]
[var] Prepare for hooking up advance variations to hb-ot-font
Behdad Esfahbod [Mon, 23 Jan 2017 19:56:08 +0000 (11:56 -0800)]
[var] Implement DeltaSetIndexMap and advance delta fetching
Not hooked up to hb-ot-font yet.
Behdad Esfahbod [Mon, 23 Jan 2017 19:41:43 +0000 (11:41 -0800)]
[var] Start adding HVAR/VVAR
Behdad Esfahbod [Mon, 23 Jan 2017 04:31:53 +0000 (20:31 -0800)]
Add LArrayOf<>
Behdad Esfahbod [Mon, 23 Jan 2017 04:28:56 +0000 (20:28 -0800)]
Add LOffsetTo<>
Behdad Esfahbod [Mon, 23 Jan 2017 04:16:51 +0000 (20:16 -0800)]
[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.
Behdad Esfahbod [Mon, 23 Jan 2017 04:09:47 +0000 (20:09 -0800)]
Minor
Behdad Esfahbod [Mon, 23 Jan 2017 03:52:09 +0000 (19:52 -0800)]
[var] Add macros for standard axes
Behdad Esfahbod [Mon, 23 Jan 2017 03:41:33 +0000 (19:41 -0800)]
[var] Implement 'avar' table mapping
Untested!
Behdad Esfahbod [Mon, 23 Jan 2017 03:01:07 +0000 (19:01 -0800)]
[var] Flesh out --variations documentation
Behdad Esfahbod [Mon, 23 Jan 2017 02:52:00 +0000 (18:52 -0800)]
[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.
Behdad Esfahbod [Mon, 23 Jan 2017 02:22:40 +0000 (18:22 -0800)]
[var] Stub implementation of avar table
Behdad Esfahbod [Mon, 23 Jan 2017 01:47:49 +0000 (17:47 -0800)]
Minor
Behdad Esfahbod [Mon, 23 Jan 2017 01:42:33 +0000 (17:42 -0800)]
Stub out doc comments for new symbols
Behdad Esfahbod [Mon, 23 Jan 2017 00:55:40 +0000 (16:55 -0800)]
Minor
Behdad Esfahbod [Mon, 23 Jan 2017 00:41:45 +0000 (16:41 -0800)]
[hb-ft] Remove use of variable-length array
Hopefully also fixes build failure on msvc.
Behdad Esfahbod [Sun, 22 Jan 2017 02:10:08 +0000 (18:10 -0800)]
[var] Hook up variations to FreeType face
hb-view correctly renders variations with ft font-funcs now.
hb-ot-font needs HVAR implementation.
Behdad Esfahbod [Sun, 22 Jan 2017 01:51:41 +0000 (17:51 -0800)]
[util] Add --variations
Is hooked up to the font, but not to FreeType, so raster doesn't show yet.
Documentation needs to be done.
Behdad Esfahbod [Sun, 22 Jan 2017 01:41:37 +0000 (17:41 -0800)]
[var] Rename var_coord to variation
Looks much better.
Behdad Esfahbod [Sat, 21 Jan 2017 23:36:35 +0000 (15:36 -0800)]
[var] Remove use of variable-length arrays
Behdad Esfahbod [Sat, 21 Jan 2017 23:21:50 +0000 (15:21 -0800)]
[var] Add hb_font_set_var_coords()
Behdad Esfahbod [Sat, 21 Jan 2017 23:12:03 +0000 (15:12 -0800)]
Remove a few unused includes
Behdad Esfahbod [Sat, 21 Jan 2017 23:06:15 +0000 (15:06 -0800)]
Minor
Behdad Esfahbod [Sat, 21 Jan 2017 23:05:00 +0000 (15:05 -0800)]
[var] Add hb_font_set_var_coords_design()
Behdad Esfahbod [Sat, 21 Jan 2017 22:50:22 +0000 (14:50 -0800)]
[var] Minor lifecycle adjustment
Behdad Esfahbod [Sat, 21 Jan 2017 22:48:46 +0000 (14:48 -0800)]
[var] Add hb_font_get_var_coords_normalized()
Behdad Esfahbod [Sat, 21 Jan 2017 04:30:03 +0000 (20:30 -0800)]
[var] Add hb_var_coord_t and parsing routines
Behdad Esfahbod [Sat, 21 Jan 2017 04:16:53 +0000 (20:16 -0800)]
Move code around
Behdad Esfahbod [Sat, 21 Jan 2017 03:57:27 +0000 (19:57 -0800)]
[var] Flesh out some more
Behdad Esfahbod [Sat, 21 Jan 2017 03:14:54 +0000 (19:14 -0800)]
[var] Flesh out a bit
Behdad Esfahbod [Sat, 21 Jan 2017 02:19:28 +0000 (18:19 -0800)]
Minor
Behdad Esfahbod [Sat, 21 Jan 2017 01:42:18 +0000 (17:42 -0800)]
[var] Remove over-optimization
Behdad Esfahbod [Sat, 21 Jan 2017 01:40:46 +0000 (17:40 -0800)]
[var] Change double to float in API
Behdad Esfahbod [Fri, 20 Jan 2017 03:35:48 +0000 (19:35 -0800)]
Start adding hb-ot-var.h and implementation
Supports enumerating variation axes, normalizing values, etc.
Behdad Esfahbod [Fri, 20 Jan 2017 03:33:07 +0000 (19:33 -0800)]
Minor
Behdad Esfahbod [Fri, 20 Jan 2017 00:55:04 +0000 (16:55 -0800)]
[test-ot-math] Add test with nil face/font
Behdad Esfahbod [Fri, 20 Jan 2017 00:51:36 +0000 (16:51 -0800)]
Minor
Behdad Esfahbod [Fri, 20 Jan 2017 00:50:29 +0000 (16:50 -0800)]
Fix warnings
Behdad Esfahbod [Fri, 20 Jan 2017 00:48:01 +0000 (16:48 -0800)]
Minor
Khaled Hosny [Wed, 18 Jan 2017 20:48:13 +0000 (22:48 +0200)]
[ot] Fix automatic fraction for RTL scripts (#405)
The numbers for right-to-left scripts are processed also from right to
left, so the order of applying “numr” and “dnom” features should be
reversed in such case.
Fixes https://github.com/behdad/harfbuzz/issues/395
Sascha Brawer [Wed, 18 Jan 2017 12:51:02 +0000 (13:51 +0100)]
Update language tags to OpenType 1.8.1 (#403)
Resolves https://github.com/behdad/harfbuzz/issues/324
Behdad Esfahbod [Wed, 11 Jan 2017 19:58:13 +0000 (11:58 -0800)]
Fix build with clang
Behdad Esfahbod [Tue, 10 Jan 2017 07:50:56 +0000 (23:50 -0800)]
Port math table to hb_lazy_table_loader_t
Behdad Esfahbod [Tue, 10 Jan 2017 06:45:25 +0000 (22:45 -0800)]
Add hb_lazy_table_loader_t
Behdad Esfahbod [Tue, 10 Jan 2017 06:22:37 +0000 (22:22 -0800)]
Move lazy-loader to more generic place
Behdad Esfahbod [Tue, 10 Jan 2017 06:20:38 +0000 (22:20 -0800)]
In lazy-loading, remember allocation failure
Behdad Esfahbod [Tue, 10 Jan 2017 05:18:55 +0000 (21:18 -0800)]
Minor
Behdad Esfahbod [Tue, 10 Jan 2017 05:11:00 +0000 (21:11 -0800)]
Rename hb-ot-layout-math-table.hh to hb-ot-math-table.hh