Behdad Esfahbod [Fri, 10 Nov 2017 02:09:40 +0000 (18:09 -0800)]
[kern] Fix invalid memory access if offset is zero
If offset is zero, we return Null() object. Wasn't prepared for that.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4088
Khaled Hosny [Fri, 3 Nov 2017 12:27:33 +0000 (14:27 +0200)]
[test] Use glyph ids instead of forcing ft funcs
We were using ft funcs because these are CFF fonts, but we can avoid
glyph names instead and keep testing both ot and ft.
Khaled Hosny [Thu, 2 Nov 2017 07:45:06 +0000 (09:45 +0200)]
[test] Fix another instance of component rounding
See https://github.com/behdad/harfbuzz/pull/590#issuecomment-
341194673
Behdad Esfahbod [Thu, 9 Nov 2017 01:04:31 +0000 (17:04 -0800)]
Fix indexing in unsafe-to-break marking for 'stch' feature
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4099
Behdad Esfahbod [Thu, 9 Nov 2017 01:03:55 +0000 (17:03 -0800)]
[tests/arabic-stch.tests] Don't show flags
We don't need to test the actual flag values. For unsafe-to-break,
the --verify in run-tests.sh checks what we are interested in.
Behdad Esfahbod [Thu, 9 Nov 2017 01:02:54 +0000 (17:02 -0800)]
Minor
David Corbett [Wed, 8 Nov 2017 18:15:27 +0000 (13:15 -0500)]
Mark non-initial left matras as unsafe to break
Behdad Esfahbod [Mon, 6 Nov 2017 20:40:07 +0000 (15:40 -0500)]
[kern] Implement format-2 kern subtable
Behdad Esfahbod [Mon, 6 Nov 2017 20:28:24 +0000 (15:28 -0500)]
[kern] Allow subtables longer than 64kb
Apparently calibri.ttf does this:
https://github.com/fonttools/fonttools/pull/1094#discussion_r148933791
Behdad Esfahbod [Sat, 4 Nov 2017 16:01:11 +0000 (12:01 -0400)]
[kern] Towards implementing format-2
David Corbett [Mon, 6 Nov 2017 19:41:55 +0000 (14:41 -0500)]
Mark glyphs involved in 'stch' as unsafe to break
Behdad Esfahbod [Sat, 4 Nov 2017 00:34:11 +0000 (20:34 -0400)]
[configure] Fix gobject default value in help output
Fixes https://github.com/behdad/harfbuzz/issues/607
Behdad Esfahbod [Fri, 3 Nov 2017 21:16:26 +0000 (17:16 -0400)]
Simplify tracing code when tracing is disabled
Fixes https://github.com/behdad/harfbuzz/pull/605
Behdad Esfahbod [Fri, 3 Nov 2017 20:57:30 +0000 (16:57 -0400)]
Consolidate debug stuff into hb-debug.hh
Part of fixing https://github.com/behdad/harfbuzz/pull/605
Behdad Esfahbod [Fri, 3 Nov 2017 20:31:47 +0000 (16:31 -0400)]
Remove NO_COPY()
Unknown [Fri, 3 Nov 2017 13:05:00 +0000 (09:05 -0400)]
Trivial typos
Found using `codespell -i 3 -w -I '../harf-whitelist.txt'`
whereas the whitelist contents were:
```
beng
iff
pres
ot
te
teh
```
ebraminio [Thu, 2 Nov 2017 16:33:12 +0000 (09:33 -0700)]
[ci] Add ArchLinux (#604)
ebraminio [Thu, 2 Nov 2017 14:56:25 +0000 (07:56 -0700)]
Copy dummy docs/circle.yml to gh-pages branch (#603)
ebraminio [Thu, 2 Nov 2017 11:55:46 +0000 (04:55 -0700)]
Add a dummy CircleCI config to gh-pages branch (#602)
Behdad Esfahbod [Thu, 2 Nov 2017 01:41:29 +0000 (19:41 -0600)]
[ot] Hook up horizontal kerning to kern table
Seems to work. Yay!
Still to do: run kerning if GPOS doesn't have 'kern' feature.
Behdad Esfahbod [Thu, 2 Nov 2017 01:33:09 +0000 (19:33 -0600)]
[kern] More...
Almost there.
Behdad Esfahbod [Thu, 2 Nov 2017 00:16:07 +0000 (18:16 -0600)]
[kern] See if this helps with making VS bot happy
Behdad Esfahbod [Thu, 2 Nov 2017 00:13:35 +0000 (18:13 -0600)]
[uniscribe] Fix a couple of VS warnings
Behdad Esfahbod [Thu, 2 Nov 2017 00:12:26 +0000 (18:12 -0600)]
[kern] Implement Format0
Behdad Esfahbod [Wed, 1 Nov 2017 23:54:56 +0000 (17:54 -0600)]
[kern] Implement some more
Behdad Esfahbod [Wed, 1 Nov 2017 23:31:29 +0000 (17:31 -0600)]
[kern] Start implementing kern table
Pushing this out early to catch bot errors since I'm using template tricks
we were not using in HarfBuzz before.
ebraminio [Wed, 1 Nov 2017 23:24:46 +0000 (16:24 -0700)]
[ci] minor cleanup (#600)
ebraminio [Wed, 1 Nov 2017 21:10:55 +0000 (14:10 -0700)]
[ci] Add Fedora builder (#598)
Khaled Hosny [Wed, 1 Nov 2017 18:49:42 +0000 (20:49 +0200)]
[test] Fix difference between ft and ot font funcs
See https://github.com/behdad/harfbuzz/pull/590#issuecomment-
341194673.
I simply removed the composite glyph and use the referenced simple
glyph directly.
Khaled Hosny [Wed, 1 Nov 2017 18:33:43 +0000 (20:33 +0200)]
Revert "[test] We don’t care about glyph positions here"
This reverts commit
70137e2b4b46918d9608f824a4b4b5cef2819158.
Khaled Hosny [Wed, 1 Nov 2017 10:06:59 +0000 (12:06 +0200)]
[test] Run shaping tests with both ot and ft funcs
Khaled Hosny [Wed, 1 Nov 2017 10:03:39 +0000 (12:03 +0200)]
[test] We don’t care about glyph positions here
Freetype and OT font functions give different positions for some glyphs
in this font (OT seems to be correct), but that is not what we are
interested in in this test.
See https://github.com/behdad/harfbuzz/pull/590#issuecomment-
341045223.
Khaled Hosny [Wed, 1 Nov 2017 08:34:36 +0000 (10:34 +0200)]
[test] Use ft functions for this test
https://github.com/behdad/harfbuzz/pull/590#issuecomment-
340967271
Khaled Hosny [Mon, 30 Oct 2017 20:02:50 +0000 (22:02 +0200)]
[test] Always use ft font funcs for these tests
These are CFF fonts and ot functions don’t support CFF glyph names yet.
The next commit will run all tests with ot functions.
ebraminio [Wed, 1 Nov 2017 10:05:46 +0000 (03:05 -0700)]
[ci] Add FreeBSD9 (gcc4) (#595)
ebraminio [Wed, 1 Nov 2017 09:10:18 +0000 (02:10 -0700)]
Enable PSVita (arm-none-eabi) compile again and add it to CI (#594)
Behdad Esfahbod [Wed, 1 Nov 2017 07:15:27 +0000 (01:15 -0600)]
[CircleCI] Ignore gh-pages branch
https://github.com/behdad/harfbuzz/pull/592
Behdad Esfahbod [Wed, 1 Nov 2017 04:58:03 +0000 (22:58 -0600)]
[indic] Use mutable for virama_glyph
Behdad Esfahbod [Wed, 1 Nov 2017 02:11:00 +0000 (20:11 -0600)]
Use bsearch() for large SFNT table directories
Behdad Esfahbod [Wed, 1 Nov 2017 02:05:37 +0000 (20:05 -0600)]
Add BinSearchArrayOf<>
Behdad Esfahbod [Wed, 1 Nov 2017 00:11:10 +0000 (18:11 -0600)]
Sanitize (Headless)ArrayOf()::len to ensure it doesn't use offsets
Behdad Esfahbod [Wed, 1 Nov 2017 00:10:40 +0000 (18:10 -0600)]
Fix HeadlessArrayOf::sanitize_shallow()
Behdad Esfahbod [Tue, 31 Oct 2017 21:34:01 +0000 (15:34 -0600)]
Rename hb-sort-r.hh -> hb-dsalgs.hh
Behdad Esfahbod [Tue, 31 Oct 2017 21:30:06 +0000 (15:30 -0600)]
Remove HB_TAG_CHAR4
David Corbett [Fri, 27 Oct 2017 16:14:00 +0000 (12:14 -0400)]
Categorize Grantha candrabindu for use in Tamil
Behdad Esfahbod [Tue, 31 Oct 2017 20:25:46 +0000 (14:25 -0600)]
[CircleCI] Fix build
Fixes https://github.com/behdad/harfbuzz/issues/589
Behdad Esfahbod [Tue, 31 Oct 2017 20:13:31 +0000 (14:13 -0600)]
Behdad Esfahbod [Tue, 31 Oct 2017 20:02:32 +0000 (14:02 -0600)]
Simplify hb-sort-r.hh
See https://github.com/behdad/harfbuzz/pull/592
ebraminio [Tue, 31 Oct 2017 19:42:08 +0000 (12:42 -0700)]
[ci] Add CircleCI for cross-compiling (#592)
Behdad Esfahbod [Tue, 31 Oct 2017 19:18:21 +0000 (13:18 -0600)]
Define _GNU_SOURCE
Might help with https://github.com/behdad/harfbuzz/pull/592
Ie. bringing in qsort_r() prototype always.
Behdad Esfahbod [Tue, 31 Oct 2017 17:17:43 +0000 (11:17 -0600)]
[coretext/uniscribe] Fix build
https://travis-ci.org/behdad/harfbuzz/jobs/
295039536#L3468
https://ci.appveyor.com/project/behdad/harfbuzz/build/1.0.697/job/dr1ujlntxafeqbej#L142
Behdad Esfahbod [Mon, 30 Oct 2017 20:11:59 +0000 (14:11 -0600)]
Fix Windows build
(And prevent it from happening in the future.)
Behdad Esfahbod [Mon, 30 Oct 2017 19:15:05 +0000 (13:15 -0600)]
[post] Implement glyph_from_name()
This concludes https://github.com/behdad/harfbuzz/pull/568
Behdad Esfahbod [Mon, 30 Oct 2017 18:21:44 +0000 (12:21 -0600)]
Make string-array return hb_string_t
Behdad Esfahbod [Mon, 30 Oct 2017 17:42:28 +0000 (11:42 -0600)]
Add hb_string_t
Behdad Esfahbod [Mon, 30 Oct 2017 15:48:09 +0000 (09:48 -0600)]
Fix tests
Behdad Esfahbod [Mon, 30 Oct 2017 15:46:36 +0000 (09:46 -0600)]
[post] Minor; towards implementing get_glyph_from_name()
Behdad Esfahbod [Sun, 29 Oct 2017 23:33:32 +0000 (17:33 -0600)]
Add hb_bsearch_r()
Behdad Esfahbod [Sun, 29 Oct 2017 23:01:47 +0000 (17:01 -0600)]
Remove hb_compare_func_t
Behdad Esfahbod [Sun, 29 Oct 2017 22:38:58 +0000 (16:38 -0600)]
Add hb-sort-r, a portable qsort_r() replacement
Behdad Esfahbod [Sun, 29 Oct 2017 21:00:54 +0000 (15:00 -0600)]
Behdad Esfahbod [Sun, 29 Oct 2017 20:52:52 +0000 (14:52 -0600)]
[post] Minor
Behdad Esfahbod [Sun, 29 Oct 2017 01:54:04 +0000 (19:54 -0600)]
[ot] Speed up get_glyph_name()
get_glyph_from_name() coming soon.
Behdad Esfahbod [Sat, 28 Oct 2017 22:58:56 +0000 (16:58 -0600)]
[post] Refactor a bit, use our data types
Behdad Esfahbod [Sat, 28 Oct 2017 18:00:49 +0000 (12:00 -0600)]
More nullptr fix
Fixes https://github.com/behdad/harfbuzz/issues/585
Behdad Esfahbod [Fri, 27 Oct 2017 22:34:01 +0000 (16:34 -0600)]
[glib/ucdn/icu/ft/ot] Make returned funcs inert
Such that client cannot accidentally destroy them, even though that
will be a bug in their code...
Behdad Esfahbod [Fri, 27 Oct 2017 22:03:51 +0000 (16:03 -0600)]
Fix previous commit
Oops.
Behdad Esfahbod [Fri, 27 Oct 2017 21:26:45 +0000 (15:26 -0600)]
[glib/icu/ucdn] Make the funcs object allocated on demand
Behdad Esfahbod [Fri, 27 Oct 2017 21:13:50 +0000 (15:13 -0600)]
Correctly mark NullPool const
Saves some more code size as well!
Behdad Esfahbod [Fri, 27 Oct 2017 21:09:22 +0000 (15:09 -0600)]
Reduce prealloced number of user-data items from 2 to 1
Even 1 is too many but putting 0 breaks compile. Saves 3k in .so
Behdad Esfahbod [Fri, 27 Oct 2017 21:01:40 +0000 (15:01 -0600)]
Make the NullPool HB_INTERNAL shared
Saves 2k of .bss section.
Behdad Esfahbod [Fri, 27 Oct 2017 20:42:59 +0000 (14:42 -0600)]
[ot] Remove shaper name
In ten years we never used them...
Behdad Esfahbod [Fri, 27 Oct 2017 20:29:12 +0000 (14:29 -0600)]
Fix IntType.cmp() to avoid narrowing down integer types
Fixes https://github.com/behdad/harfbuzz/issues/571
Behdad Esfahbod [Fri, 27 Oct 2017 16:29:25 +0000 (10:29 -0600)]
Make c++11 optional
Fixes https://github.com/behdad/harfbuzz/issues/585
Behdad Esfahbod [Fri, 27 Oct 2017 16:24:58 +0000 (10:24 -0600)]
[m4] Update ax_pthread.m4
Behdad Esfahbod [Fri, 27 Oct 2017 16:23:01 +0000 (10:23 -0600)]
[git.mk] Update
Behdad Esfahbod [Fri, 27 Oct 2017 15:29:20 +0000 (09:29 -0600)]
Use NULL instead of polyfill, if nullptr is not available
Part of fixing https://github.com/behdad/harfbuzz/issues/585
Behdad Esfahbod [Fri, 27 Oct 2017 15:22:30 +0000 (09:22 -0600)]
Include hb-private.hh more consistently
Part of fixing https://github.com/behdad/harfbuzz/issues/585
Behdad Esfahbod [Fri, 27 Oct 2017 06:25:11 +0000 (00:25 -0600)]
Towards compiling with pre-C++11 compilers and nullptr fallback
https://github.com/behdad/harfbuzz/issues/585
Behdad Esfahbod [Fri, 27 Oct 2017 02:34:04 +0000 (20:34 -0600)]
[post] Make format1 names array avoid relocations
Behdad Esfahbod [Fri, 27 Oct 2017 01:48:33 +0000 (19:48 -0600)]
Add hb-string-array.hh
Used to build static string arrays that use no relocation.
Behdad Esfahbod [Fri, 27 Oct 2017 00:23:03 +0000 (18:23 -0600)]
Minor
Behdad Esfahbod [Thu, 26 Oct 2017 18:52:02 +0000 (12:52 -0600)]
1.6.3
David Corbett [Thu, 26 Oct 2017 14:29:28 +0000 (10:29 -0400)]
Include all relevant glyphs in the subsetted font
Behdad Esfahbod [Thu, 26 Oct 2017 17:43:33 +0000 (11:43 -0600)]
Fix warning
https://github.com/behdad/harfbuzz/commit/
49a41dc75931cc2d2f7e74b7801f8cc327039e8e#commitcomment-
25203194
Jonathan Kew [Thu, 26 Oct 2017 15:59:50 +0000 (16:59 +0100)]
[set] Fix page_map[] indexing in backward loop.
Fixes https://github.com/behdad/harfbuzz/issues/579.
Jonathan Kew [Thu, 26 Oct 2017 11:55:36 +0000 (12:55 +0100)]
[test] Extend hb_set test for issue 579 (currently failing)
Jonathan Kew [Thu, 26 Oct 2017 16:54:55 +0000 (17:54 +0100)]
[test] Additional coverage in test_set_iter.
This adds a couple extra entries to the set used, such that iteration
would fail in 1.6.2 due to the bug in hb_set_t::page_t::next().
Jonathan Kew [Thu, 26 Oct 2017 14:08:29 +0000 (15:08 +0100)]
[set] Bugfix for hb_set_next
Behdad Esfahbod [Thu, 26 Oct 2017 00:22:47 +0000 (18:22 -0600)]
[post] Oops!
https://ci.appveyor.com/project/behdad/harfbuzz/build/1.0.668/job/ikfj8peowgrp059t
Behdad Esfahbod [Wed, 25 Oct 2017 23:40:50 +0000 (17:40 -0600)]
[post] Touch up and fixes
The get_glyph_from_name() is incorrect; needs fixing.
Khaled Hosny [Wed, 18 Oct 2017 18:49:16 +0000 (20:49 +0200)]
[ot-font] Implement hb_ot_get_glyph_from_name
Khaled Hosny [Mon, 16 Oct 2017 08:05:42 +0000 (10:05 +0200)]
[ot-font] Implement hb_ot_get_glyph_name
Turns out we already have support for “post” table, it just needed to be
activated and put in use.
Behdad Esfahbod [Wed, 25 Oct 2017 23:23:20 +0000 (17:23 -0600)]
Behdad Esfahbod [Wed, 25 Oct 2017 22:17:45 +0000 (16:17 -0600)]
[test] Add more hb-set tests
https://github.com/behdad/harfbuzz/issues/579
David Corbett [Wed, 25 Oct 2017 18:31:22 +0000 (14:31 -0400)]
Use `mktemp -d` instead of `mktemp --directory`
David Corbett [Wed, 25 Oct 2017 20:06:40 +0000 (16:06 -0400)]
Fix and run indic-script-extensions.tests
David Corbett [Wed, 25 Oct 2017 20:06:01 +0000 (16:06 -0400)]
Fix code point iteration in narrow Python
Behdad Esfahbod [Wed, 25 Oct 2017 16:09:11 +0000 (12:09 -0400)]
Check for headers in builddir first, in check-*.sh
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=103346
Behdad Esfahbod [Tue, 24 Oct 2017 14:06:25 +0000 (10:06 -0400)]
check-externs.sh: Make output more verbose
Trying to figure out why this is failing on some Debian bots:
https://bugs.freedesktop.org/show_bug.cgi?id=103346
Maybe I should check for GNU grep specifically now that I'm using -n as well.