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
Behdad Esfahbod [Mon, 9 Jan 2017 23:49:08 +0000 (15:49 -0800)]
Typo
ebraminio [Mon, 9 Jan 2017 09:42:09 +0000 (13:12 +0330)]
Make UCDN default enabled (fixes #389) (#391)
Behdad Esfahbod [Mon, 9 Jan 2017 08:00:49 +0000 (00:00 -0800)]
Minor
Should be enough to get -hangul.cc out of SOURCES in Firefox build:
https://dxr.mozilla.org/mozilla-central/source/gfx/harfbuzz/src/moz.build
No one else should care!
Behdad Esfahbod [Mon, 9 Jan 2017 07:55:54 +0000 (23:55 -0800)]
[USE] Remove non-canonical decompositions
We have had added this in Indic shaper to assist shaping these scripts.
In Universal Shaping Engine however, it is up to font designer to
decompose them. Hence moving them from Indic shaper to USE was
wrong.
Fixup for
f6ba63b2e8eb577385f70758efdd3b8408c8a9cb
Part of fixing https://github.com/behdad/harfbuzz/issues/387
Behdad Esfahbod [Fri, 6 Jan 2017 04:24:41 +0000 (20:24 -0800)]
1.4.1
Behdad Esfahbod [Fri, 6 Jan 2017 04:20:06 +0000 (20:20 -0800)]
Add tests for USE using Marchen font and text
From http://www.babelstone.co.uk/Fonts/Marchen.html
Behdad Esfahbod [Fri, 6 Jan 2017 04:12:32 +0000 (20:12 -0800)]
Ship UCDN and use it by default
So we are not relying on version of Unicode data in glib...
Fixes https://github.com/behdad/harfbuzz/issues/386
Fixes https://github.com/behdad/harfbuzz/issues/388
Behdad Esfahbod [Thu, 5 Jan 2017 09:27:49 +0000 (01:27 -0800)]
1.4.0
Frédéric Wang [Tue, 3 Jan 2017 04:55:09 +0000 (05:55 +0100)]
Move math-specific code from hb-ot-layout to hb-ot-math #235 (#384)
Behdad Esfahbod [Wed, 28 Dec 2016 20:51:57 +0000 (15:51 -0500)]
Remove Android.mk
Android uses its own file these days and third-party developers should
be using the autotools-based system against Android NDK.
Behdad Esfahbod [Wed, 28 Dec 2016 18:46:21 +0000 (13:46 -0500)]
Remove Tibetan decomposition rules from Indic shaper
The decomposition is very obscure and unlikely to help
any fonts. Just remove it since Uniscribe probably doesn't
do this either.
Fixes https://github.com/behdad/harfbuzz/issues/382
Behdad Esfahbod [Wed, 28 Dec 2016 18:45:32 +0000 (13:45 -0500)]
Port decompositions from Indic to USE shaper
Part of https://github.com/behdad/harfbuzz/issues/382
Behdad Esfahbod [Mon, 26 Dec 2016 19:11:59 +0000 (14:11 -0500)]
[indic] Remove Chakma decomposition rule from Indic shaper
This is now added to USE:
https://github.com/behdad/harfbuzz/pull/383
See:
https://github.com/behdad/harfbuzz/issues/381
https://github.com/behdad/harfbuzz/issues/382
jfkthame [Wed, 28 Dec 2016 18:00:51 +0000 (18:00 +0000)]
[use] Special-case Chakma split-vowel decomp in the USE shaper. (#383)
Behdad Esfahbod [Mon, 26 Dec 2016 19:52:08 +0000 (14:52 -0500)]
Revert "[indic] Remove redundant Chakma decomposition rule"
This reverts commit
805f76fc002d703acfcc4c5727f0b4d1baecefaa.
Need to investigate why having this rule (with the reversed order)
fixes decomposition as reported by punchcutter:
https://github.com/behdad/harfbuzz/issues/381#issuecomment-
269237796
Behdad Esfahbod [Mon, 26 Dec 2016 19:11:59 +0000 (14:11 -0500)]
[indic] Remove redundant Chakma decomposition rule
This was not used BTW since Chakma doesn't go through Indic shaper
anymore.
See:
https://github.com/behdad/harfbuzz/issues/381
https://github.com/behdad/harfbuzz/issues/382
Behdad Esfahbod [Mon, 26 Dec 2016 18:10:31 +0000 (13:10 -0500)]
[indix] Comment
nvelinov [Sat, 24 Dec 2016 01:46:37 +0000 (02:46 +0100)]
Compilation Error for ASSERT_STATIC on Some Compilers (#380)
* this pointer in type definitions is not interpreted as a constant.
This rule is not enforced strictly by all compilers, but the Green Hills Software compiler will regard this as an error.
* Merging branches for the DEFINE_SIZE_UNION macro
Adding check for the existence of static_size field in the tested member.
Behdad Esfahbod [Thu, 22 Dec 2016 20:40:19 +0000 (14:40 -0600)]
Disable OTL processing for Hebrew if GPOS doesn't have Hebrew subtable
New approach to fix this:
https://github.com/behdad/harfbuzz/commit/
69f9fbc4200442a35484d3c790ae8f4979be5d60
Previous approach was reverted as it was too broad. See context:
https://github.com/behdad/harfbuzz/issues/347#issuecomment-
267838368
With U+05E9,U+05B8,U+05C1,U+05DC and Arial Unicode, we now (correctly) disable
GDEF and GPOS, so we get results very close to Uniscribe, but slightly different
since our fallback position logic is not exactly the same:
Before: [gid1166=3+991|gid1142=0+737|gid5798=0+1434]
After: [gid1166=3+991|gid1142=0@402,-26+0|gid5798=0+1434]
Uniscribe: [gid1166=3+991|gid1142=0@348,0+0|gid5798=0+1434]
Behdad Esfahbod [Thu, 22 Dec 2016 19:33:54 +0000 (13:33 -0600)]
Revert "Synthesize GDEF glyph class for any glyph that does not have one in GDEF"
This reverts commit
69f9fbc4200442a35484d3c790ae8f4979be5d60.
See https://github.com/behdad/harfbuzz/issues/347#issuecomment-
268873401
Fixes https://github.com/behdad/harfbuzz/issues/347
Behdad Esfahbod [Thu, 22 Dec 2016 05:10:43 +0000 (23:10 -0600)]
Fix assert fail with contextual matching
As discovered by libFuzzer / Chromium fuzzing.
Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=659496
CC https://github.com/behdad/harfbuzz/issues/139
Behdad Esfahbod [Thu, 22 Dec 2016 01:27:30 +0000 (19:27 -0600)]
Improve debug output with really deep nesting
Behdad Esfahbod [Wed, 21 Dec 2016 21:51:28 +0000 (15:51 -0600)]
Avoid infinite loop in CoverageFormat2 iteration with bad fonts
Fixes https://github.com/behdad/harfbuzz/issues/363
Behdad Esfahbod [Wed, 21 Dec 2016 02:52:50 +0000 (20:52 -0600)]
Ouch, finish previous change
Behdad Esfahbod [Wed, 21 Dec 2016 02:50:38 +0000 (20:50 -0600)]
[fuzzer] Separate main() into a new file
Behdad Esfahbod [Tue, 20 Dec 2016 21:01:16 +0000 (15:01 -0600)]
Protect collect_glyphs() and closure() against malicious DDOS fonts
Fixes https://github.com/behdad/harfbuzz/issues/363
Mike Hommey [Fri, 30 Sep 2016 09:15:37 +0000 (18:15 +0900)]
Support building with older glib versions
It is desirable to be able to build against older versions of glib.
fd7a245 changed the configure check to require glib > 2.38 for
G_TEST_DIST. Before that, version 2.16 was required, but in fact,
since
aafe395, G_PASTE is being used, which was introduced in 2.19.1.
And since
0ef179e2, hb-glib uses GBytes, which were introduced in
2.31.10.
2.19.1 is rather old, but 2.38 is rather new. For Firefox, building
against 2.22 is still supported, although we could probably get away
with bumping that to 2.28. Either way, GBytes is not available.
Arguably, if you build against a glib that doesn't support GBytes,
you're not going to use the hb_glib_blob_create function, so we hide
the function when building against such a glib.
As for G_TEST_DIST, when building against versions of glib that don't
support it, we can fallback to the previous behavior, which, AIUI, was
just making the test not work when building in a separate directory.
Volker H. Simonis [Wed, 14 Dec 2016 17:56:17 +0000 (18:56 +0100)]
Minor fixes to pacify Coverity code scan
Fixes https://github.com/behdad/harfbuzz/pull/377
ebraminio [Sat, 17 Dec 2016 07:00:40 +0000 (10:30 +0330)]
[dwrite] Provide an experimental API for justification (#279)
elmarb [Wed, 7 Dec 2016 10:50:27 +0000 (11:50 +0100)]
NMake ICU option builds with builtin ICU (#375)
Khaled Hosny [Mon, 5 Dec 2016 21:20:47 +0000 (23:20 +0200)]
[win32] Fix wrong description of the ICU option (#372)
Behdad Esfahbod [Wed, 28 Sep 2016 15:16:06 +0000 (17:16 +0200)]
Fix build after rebasing opentype-gx branch on top of MATH table
Behdad Esfahbod [Wed, 28 Sep 2016 15:05:43 +0000 (17:05 +0200)]
[GX] Apply 'rvrn' feature before any other feature
Behdad Esfahbod [Tue, 13 Sep 2016 21:49:46 +0000 (23:49 +0200)]
[GX] Fix build with older FreeType
Sascha Brawer [Tue, 13 Sep 2016 16:40:07 +0000 (18:40 +0200)]
Call hb_font_set_var_coords_normalized() from FT_Face coords
Behdad Esfahbod [Sat, 10 Sep 2016 11:52:34 +0000 (04:52 -0700)]
[GX] Make FeatureVariations actually work
Yay!!!!
Behdad Esfahbod [Sat, 10 Sep 2016 10:57:24 +0000 (03:57 -0700)]
[GX] Hook up feature variations
Shape-plan caching is not implemented.
Behdad Esfahbod [Sat, 10 Sep 2016 10:53:11 +0000 (03:53 -0700)]
[GX] Add hb_ot_layout_feature_with_variations_get_lookups()
Behdad Esfahbod [Sat, 10 Sep 2016 10:32:39 +0000 (03:32 -0700)]
[GX] Add hb_ot_layout_table_find_feature_variations()
Behdad Esfahbod [Sat, 10 Sep 2016 09:44:20 +0000 (02:44 -0700)]
Shuffle code around
Behdad Esfahbod [Sat, 10 Sep 2016 09:43:20 +0000 (02:43 -0700)]
Move add_lookups from map to map-builder
In prep for more changes.
Behdad Esfahbod [Sat, 10 Sep 2016 09:11:05 +0000 (02:11 -0700)]
[GX] Remove (partial) support for anisotropic variations
It doesn't always work, not part of FreeType, and we were not going
to expose it in the API anyway. Can always be added later.
Behdad Esfahbod [Sat, 10 Sep 2016 08:58:27 +0000 (01:58 -0700)]
[GX] Handle setting var coords to NULL
Behdad Esfahbod [Sat, 10 Sep 2016 08:24:28 +0000 (01:24 -0700)]
[GX] Implement Feature Variations
Not hooked up to shaper yet.
Behdad Esfahbod [Sat, 10 Sep 2016 07:25:16 +0000 (00:25 -0700)]
[GX] Fix another x/y thinko
Thanks Werner!
Behdad Esfahbod [Sat, 10 Sep 2016 07:22:24 +0000 (00:22 -0700)]
[GX] Rename VarStore to VariationStore
Behdad Esfahbod [Sat, 10 Sep 2016 07:01:10 +0000 (00:01 -0700)]
[GX] Fix build with some compilers
Eg. https://ci.appveyor.com/project/behdad/harfbuzz/build/1.0.48/job/o9mnd33kcdeeg30r
hb-open-type-private.hh:103:29: error: static data member 'OT::Device::<anonymous union>::<anonymous struct>::static_size' in unnamed class [-fpermissive]
Behdad Esfahbod [Sat, 10 Sep 2016 06:12:14 +0000 (23:12 -0700)]
[GX] Skip tail zero entries when setting variation coordinates
Behdad Esfahbod [Sat, 10 Sep 2016 05:48:27 +0000 (22:48 -0700)]
[GX] Fix thinko
Behdad Esfahbod [Sat, 10 Sep 2016 05:23:34 +0000 (22:23 -0700)]
[GX] Add new API hb_font_set_var_coords_normalized()
Will probably change.
Behdad Esfahbod [Sat, 10 Sep 2016 00:03:11 +0000 (17:03 -0700)]
[GX] Hook up GPOS to Variation Store stored in GDEF
Untested.
Behdad Esfahbod [Fri, 9 Sep 2016 23:51:07 +0000 (16:51 -0700)]
[GX] Change GDEF API to return varStore
Behdad Esfahbod [Fri, 9 Sep 2016 23:27:03 +0000 (16:27 -0700)]
[GX] Pass apply-context down to get_anchor()
Needed to access GDEF for varStore.
Behdad Esfahbod [Fri, 9 Sep 2016 23:22:45 +0000 (16:22 -0700)]
[GX] Add varStore member to GDEF
Still not hooked up from GPOS.
Behdad Esfahbod [Fri, 9 Sep 2016 23:05:17 +0000 (16:05 -0700)]
Minor change to GDEF, in prep for new version
Behdad Esfahbod [Fri, 9 Sep 2016 22:40:15 +0000 (15:40 -0700)]
[GX] Port variation stuff to Variation Store design
Not hooked up to GDEF yet.
Behdad Esfahbod [Fri, 9 Sep 2016 22:39:52 +0000 (15:39 -0700)]
Make OffsetArrayOf take OffsetType template argument
Behdad Esfahbod [Fri, 9 Sep 2016 20:17:33 +0000 (13:17 -0700)]
[GX] Revert "[GX] Add VariationAlternates, to allow conditional lookups in GSUB/GPOS"
This reverts commit
2859f1c7174d6f7ae5dcf0db5411bc0182b21594.
We are going in a different direction.
Behdad Esfahbod [Fri, 9 Sep 2016 20:08:52 +0000 (13:08 -0700)]
[GX] Free GX coordinates
Behdad Esfahbod [Fri, 18 Mar 2016 22:52:24 +0000 (15:52 -0700)]
[GX] Add compact VariationDevice implementation
Add compact format that uses signed bytes instead of shorts.
Behdad Esfahbod [Sun, 13 Mar 2016 07:49:09 +0000 (23:49 -0800)]
[GX] Add VariationAlternates, to allow conditional lookups in GSUB/GPOS
Not hooked up to runtime yet.
Behdad Esfahbod [Sun, 13 Mar 2016 07:28:12 +0000 (23:28 -0800)]
[GX] Minor
Behdad Esfahbod [Wed, 2 Mar 2016 20:54:35 +0000 (12:54 -0800)]
[GX] Minor
Behdad Esfahbod [Wed, 2 Mar 2016 03:41:49 +0000 (12:41 +0900)]
[GX] Minor rename
Behdad Esfahbod [Wed, 2 Mar 2016 03:21:36 +0000 (12:21 +0900)]
[GX] Hookup VariationDevice to Device table implementation
Behdad Esfahbod [Tue, 1 Mar 2016 10:42:24 +0000 (19:42 +0900)]
[GX] Break out early if factor is zero
Also disable sanity-checking of variation records.
Behdad Esfahbod [Tue, 1 Mar 2016 10:29:36 +0000 (19:29 +0900)]
[GX] Towards anisotropic interpolation
Also hookup to ValueRecord and Anchors.
Behdad Esfahbod [Tue, 1 Mar 2016 10:12:08 +0000 (19:12 +0900)]
[GX] Add data types for encoding numerical variations
Behdad Esfahbod [Mon, 5 Dec 2016 21:42:28 +0000 (13:42 -0800)]
1.3.4
Behdad Esfahbod [Mon, 5 Dec 2016 04:28:38 +0000 (20:28 -0800)]
[hb-fuzzer] Get glyph extents for output glyphs
To exercise glyph-extents codepaths (glyf / CBLC+CBDT).
Behdad Esfahbod [Mon, 5 Dec 2016 03:55:17 +0000 (19:55 -0800)]
[CBDT] Add test for fetching glyph extents
Behdad Esfahbod [Mon, 5 Dec 2016 03:43:33 +0000 (19:43 -0800)]
[CBDT] Minor
Behdad Esfahbod [Mon, 5 Dec 2016 03:36:30 +0000 (19:36 -0800)]
[CBDT] Fix thinko!
Behdad Esfahbod [Mon, 5 Dec 2016 03:26:54 +0000 (19:26 -0800)]
[CBDT] Implement IndexSubtableFormat3
Behdad Esfahbod [Mon, 5 Dec 2016 03:12:52 +0000 (19:12 -0800)]
[cbdt] Move some more code around
Behdad Esfahbod [Mon, 5 Dec 2016 02:56:24 +0000 (18:56 -0800)]
Behdad Esfahbod [Sat, 3 Dec 2016 06:43:05 +0000 (22:43 -0800)]
[cbdt] Last of sanitization fixes
Should be all good now..
Behdad Esfahbod [Sat, 3 Dec 2016 05:36:42 +0000 (21:36 -0800)]
[cbdt] Clean up some more
Almost there..
Behdad Esfahbod [Sat, 3 Dec 2016 04:12:57 +0000 (20:12 -0800)]
[cbdt] More sanitize work
Behdad Esfahbod [Sat, 3 Dec 2016 03:51:23 +0000 (19:51 -0800)]
Check for offset overflows during sanitize
Behdad Esfahbod [Sat, 3 Dec 2016 03:25:54 +0000 (19:25 -0800)]
[cbdt] Start fixing sanitization (or lack thereof)
Behdad Esfahbod [Fri, 2 Dec 2016 23:21:43 +0000 (15:21 -0800)]
[CBDT] Use CHAR instead of int8_t
Behdad Esfahbod [Fri, 2 Dec 2016 23:11:37 +0000 (15:11 -0800)]
Rename 'ebdt' to 'cbdt' since we only support the PNG format
Seigo Nonaka [Fri, 2 Dec 2016 23:03:50 +0000 (15:03 -0800)]
Introduce get_extent support for color bitmap font. (#351)
hb_font_get_glyph_extents now works for color bitmap fonts.
Currently only font having index format 1 and image format 17
is supported.
Ebrahim Byagowi [Fri, 28 Oct 2016 18:19:11 +0000 (21:49 +0330)]
Fix "nmake install" when ADDITIONAL_LIB_DIR is provided and test it on CI (#356)
Behdad Esfahbod [Wed, 26 Oct 2016 16:27:48 +0000 (18:27 +0200)]
[tests] Add tests for vertical origin with ft and ot font-funcs
Behdad Esfahbod [Wed, 26 Oct 2016 16:12:50 +0000 (18:12 +0200)]
Use horizontal ascent as fallback vertical origin
Behdad Esfahbod [Wed, 26 Oct 2016 16:08:41 +0000 (18:08 +0200)]
Move code around
Behdad Esfahbod [Wed, 26 Oct 2016 15:54:04 +0000 (17:54 +0200)]
[hb-ot-font] Use ascent+descent as fallback vertical advance
Behdad Esfahbod [Wed, 26 Oct 2016 15:44:16 +0000 (17:44 +0200)]
Fix vertical glyph origin with hb-ot-font
Behdad Esfahbod [Wed, 26 Oct 2016 15:19:07 +0000 (17:19 +0200)]
Fix vertical font metrics
Ouch!
Behdad Esfahbod [Wed, 26 Oct 2016 14:17:15 +0000 (16:17 +0200)]
1.3.3
Behdad Esfahbod [Wed, 26 Oct 2016 14:04:30 +0000 (16:04 +0200)]
Fix "make distcheck"
Behdad Esfahbod [Wed, 26 Oct 2016 08:33:33 +0000 (10:33 +0200)]
[ci] Fix appveyor.yml syntax error
Behdad Esfahbod [Sun, 23 Oct 2016 12:39:43 +0000 (14:39 +0200)]
[gobject] Update for new MATH structs
Khaled Hosny [Mon, 24 Oct 2016 21:31:36 +0000 (00:31 +0300)]
Merge pull request #352 from fred-wang/makefile-am
Remove inexistent file ttx file from test/api/Makefile.am