Behdad Esfahbod [Thu, 20 Jun 2019 03:07:02 +0000 (20:07 -0700)]
[config] Add HB_NO_FACE_COLLECT_UNICODES
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Thu, 20 Jun 2019 02:50:54 +0000 (19:50 -0700)]
[config] Add HB_NO_CMAP_LEGACY_SUBTABLES
Part of https://vimeo.com/
331852453/
06eec89c65
Behdad Esfahbod [Thu, 20 Jun 2019 02:58:24 +0000 (19:58 -0700)]
Fix MSVC build
MSVC warning:
c:\projects\harfbuzz\src\hb-ot-layout-gsubgpos.hh(2732): error C2121: '#': invalid character: possibly the result of a macro expansion [C:\projects\harfbuzz\build\harfbuzz.vcxproj]
Clang warning for it:
./hb-ot-layout-gsubgpos.hh:2729:2: error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive]
Behdad Esfahbod [Thu, 20 Jun 2019 02:33:15 +0000 (19:33 -0700)]
[config] Add HB_NO_HINTING, enabled by HB_TINY
Disables HintingDevice tables and Anchors addressing contour points.
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Thu, 20 Jun 2019 02:26:22 +0000 (19:26 -0700)]
[config] Add HB_NO_VAR to disable variations support, enabled by HB_TINY
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Thu, 20 Jun 2019 01:49:52 +0000 (18:49 -0700)]
[config] Add HB_NO_OT_FONT_GLYPH_NAMES
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Thu, 20 Jun 2019 01:42:39 +0000 (18:42 -0700)]
[subset] Simplify collect_name_ids
Behdad Esfahbod [Thu, 20 Jun 2019 01:36:35 +0000 (18:36 -0700)]
[config] Add HB_NO_STAT
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Thu, 20 Jun 2019 01:33:29 +0000 (18:33 -0700)]
[config] Don't include name table in face if HB_NO_NAME
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Thu, 20 Jun 2019 01:32:40 +0000 (18:32 -0700)]
[config] Disable hb-ot-font code if HB_NO_OT_FONT
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Thu, 20 Jun 2019 00:34:12 +0000 (17:34 -0700)]
[ucd] Print out table sizes
Behdad Esfahbod [Thu, 20 Jun 2019 00:08:26 +0000 (17:08 -0700)]
[config] Disable AAT map
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Thu, 20 Jun 2019 00:04:16 +0000 (17:04 -0700)]
[config] Disable more legacy kerning
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Thu, 20 Jun 2019 00:02:32 +0000 (17:02 -0700)]
[config] More trak disabling
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Wed, 19 Jun 2019 23:57:48 +0000 (16:57 -0700)]
[config] add HB_NO_OT_SHAPE_FRACTIONS, enabled in HB_LEAN
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Wed, 19 Jun 2019 23:51:13 +0000 (16:51 -0700)]
[config] Minor trak disable
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Wed, 19 Jun 2019 23:37:35 +0000 (16:37 -0700)]
[config] Add HB_NO_LANGUAGE_PRIVATE_SUBTAG
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Wed, 19 Jun 2019 23:36:09 +0000 (16:36 -0700)]
Restructure code
Behdad Esfahbod [Wed, 19 Jun 2019 23:28:08 +0000 (16:28 -0700)]
[config] Remove remaining AAT context bits if HB_NO_OT_KERN
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Wed, 19 Jun 2019 23:24:51 +0000 (16:24 -0700)]
[config] Add HB_NO_OT_KERN, enabled by HB_MINI / HB_NO_LEGACY
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Wed, 19 Jun 2019 22:50:13 +0000 (15:50 -0700)]
Fix build
Behdad Esfahbod [Wed, 19 Jun 2019 22:36:14 +0000 (15:36 -0700)]
[config] Remove tables from hb_face_t for disabled features
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Misty De Meo [Tue, 18 Jun 2019 22:20:38 +0000 (15:20 -0700)]
coretext: remove trailing macro from SCRATCH_RESTORE
Behdad Esfahbod [Tue, 18 Jun 2019 22:15:06 +0000 (15:15 -0700)]
[coretext/uniscribe/directwrite] Remove extra semicolons
Fixes https://github.com/harfbuzz/harfbuzz/pull/1783
Behdad Esfahbod [Tue, 18 Jun 2019 21:40:24 +0000 (14:40 -0700)]
Remove dead code
Behdad Esfahbod [Tue, 18 Jun 2019 21:38:05 +0000 (14:38 -0700)]
[config] Don't use VORG table if HB_NO_OT_FONT_CFF
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 21:33:49 +0000 (14:33 -0700)]
[config] Fixup for AAT ltag table access
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 21:29:27 +0000 (14:29 -0700)]
[config] One more morx disabling
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 21:25:52 +0000 (14:25 -0700)]
[config] Don't compile AAT API if HB_NO_AAT
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 20:31:35 +0000 (13:31 -0700)]
[config] Don't compile unused layout API if HB_NO_LAYOUT_UNUSED
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 20:29:55 +0000 (13:29 -0700)]
[config] Dont' compile buffer message API if HB_NO_BUFFER_MESSAGE
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 20:26:03 +0000 (13:26 -0700)]
[config] Don't compile buffer serialize API if HB_NO_BUFFER_SERIALIZE
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 20:21:25 +0000 (13:21 -0700)]
Minor header include cleanup
Behdad Esfahbod [Tue, 18 Jun 2019 20:18:15 +0000 (13:18 -0700)]
[config] Don't compile color API if HB_NO_COLOR
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 20:11:41 +0000 (13:11 -0700)]
[config] Don't compile name table API if HB_NO_NAME
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 20:09:22 +0000 (13:09 -0700)]
[config] Don't compile math API if HB_NO_MATH
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 20:07:44 +0000 (13:07 -0700)]
Streamline HB_NO_CFF
Behdad Esfahbod [Tue, 18 Jun 2019 20:01:11 +0000 (13:01 -0700)]
Remove HB_VECTOR_SIZE
It was cumbersome to get it to work reliably, for dubious performance
gain, mostly in the subsetter maybe...
Life is easier without. It was disabled forever anyway.
Behdad Esfahbod [Tue, 18 Jun 2019 19:50:42 +0000 (12:50 -0700)]
Add hb_bitwise_neg
Behdad Esfahbod [Tue, 18 Jun 2019 19:44:03 +0000 (12:44 -0700)]
Remove accidentally left cruft
Behdad Esfahbod [Tue, 18 Jun 2019 19:41:56 +0000 (12:41 -0700)]
Remove (unused) posix_memalign fallback
Was wrong. The returned pointer couldn't be passed to free(). Ouch!
Ebrahim Byagowi [Tue, 18 Jun 2019 07:44:10 +0000 (12:14 +0430)]
[ci] Test no build system builds
Introduced in aa3450c, let's preserve it
Behdad Esfahbod [Tue, 18 Jun 2019 05:57:51 +0000 (22:57 -0700)]
Fix cmake build
Hopefullly.
Behdad Esfahbod [Tue, 18 Jun 2019 05:41:49 +0000 (22:41 -0700)]
[config] Don't compile disabled features
This makes it possible to include all .cc files into build, even if not
building CoreText, Uniscribe, etc.
This was mostly to help custom builders. But also means that we can
include all files in our own build system. Not sure if we should.
Definitely simplifies things, but slightly only.
Behdad Esfahbod [Tue, 18 Jun 2019 04:54:20 +0000 (21:54 -0700)]
[config] Flesh out CONFIG.md
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 03:35:04 +0000 (20:35 -0700)]
Minor
Behdad Esfahbod [Tue, 18 Jun 2019 03:29:29 +0000 (20:29 -0700)]
[config] Replace HAVE_FALLBACK with HB_NO_FALLBACK_SHAPE
This disables fallback shaper in tiny builds. Projects that don't
use our build system and want to disable fallback shaper (eg. Firefox)
should define HB_NO_FALLBACK_SHAPE now.
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Tue, 18 Jun 2019 03:10:36 +0000 (20:10 -0700)]
Add CONFIG.md
https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Mon, 17 Jun 2019 21:23:04 +0000 (14:23 -0700)]
[serialize] Fix copy() calling operator=
https://github.com/googlefonts/harfbuzz/commit/
9f610ae239a11e86f94621e26bc15849b65ce41b#commitcomment-
33944686
Behdad Esfahbod [Mon, 17 Jun 2019 21:19:13 +0000 (14:19 -0700)]
Minor
Behdad Esfahbod [Mon, 17 Jun 2019 21:12:11 +0000 (14:12 -0700)]
Use injected class name
Behdad Esfahbod [Mon, 17 Jun 2019 21:06:04 +0000 (14:06 -0700)]
Disable non-OpenType kerning with hb-ft in HB_TINY
Behdad Esfahbod [Mon, 17 Jun 2019 21:02:47 +0000 (14:02 -0700)]
Deprecate v_kerning callback again
Part of https://github.com/harfbuzz/harfbuzz/issues/1682
Behdad Esfahbod [Mon, 17 Jun 2019 20:42:53 +0000 (13:42 -0700)]
Minor
Behdad Esfahbod [Mon, 17 Jun 2019 20:39:49 +0000 (13:39 -0700)]
Partially revert "[ft/ot] Remove implementation of deprecated kerning funcs"
This reverts commit
47030b1855f04c0d75899ffb6f5021fea3c19b90.
Reverts only the hb-ft part, to reinstate non-OpenType kerning with
FreeType.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1682
Behdad Esfahbod [Mon, 17 Jun 2019 20:38:08 +0000 (13:38 -0700)]
Revert "Deprecate font kern API"
This reverts commit
d219f899f4b2fb4b39ebc1dff9fb648fc5d6d112.
API change: Un-deprecate font kern API.
Part of https://github.com/harfbuzz/harfbuzz/issues/1682
We should document that this API is only necessary to hook up
non-OpenType kerning. hb-ot-font will continue to NOT implement them.
David Corbett [Sun, 16 Jun 2019 01:38:27 +0000 (21:38 -0400)]
Canonically reorder U+0C55 and U+0C56
Michiharu Ariza [Fri, 14 Jun 2019 17:49:42 +0000 (10:49 -0700)]
enable cff subset tests
add Unicode UCS-4 cmap
fix Unicode bits in OS/2
add Unicode cmap sub-table in SourceHanSans-Regular_subset.otf
regenerate cff subset test expected results
Ebrahim Byagowi [Thu, 13 Jun 2019 10:34:51 +0000 (15:04 +0430)]
[cff] minor format (#1774)
David Corbett [Tue, 11 Jun 2019 21:55:31 +0000 (17:55 -0400)]
Remove 'mym3'
Michiharu Ariza [Tue, 11 Jun 2019 19:28:30 +0000 (12:28 -0700)]
change assert(false) to failure
Behdad Esfahbod [Mon, 10 Jun 2019 21:06:25 +0000 (14:06 -0700)]
Fix typo :)
Ebrahim Byagowi [Mon, 10 Jun 2019 21:03:30 +0000 (01:33 +0430)]
Move HB_NO_SETLOCALE to closer place to its to unbreak HB_TINY build (#1768)
Ebrahim Byagowi [Mon, 10 Jun 2019 21:03:09 +0000 (01:33 +0430)]
Add HB_NO_OEPN (#1767)
Ebrahim Byagowi [Mon, 10 Jun 2019 11:18:28 +0000 (15:48 +0430)]
Add HB_NO_SETLOCALE
Ebrahim Byagowi [Mon, 10 Jun 2019 11:02:54 +0000 (15:32 +0430)]
Remove round polyfill
Added in 01dff1e and
19256bef, this was targeted at older
msvc versions that don't support C99 but now as we require
C++11 we don't target places those envs thus removing this.
Behdad Esfahbod [Mon, 10 Jun 2019 19:48:25 +0000 (12:48 -0700)]
Simplify HB_PARTIALIZE impl
+this works on gcc 4.8 as well as default code path.
Behdad Esfahbod [Mon, 10 Jun 2019 19:46:54 +0000 (12:46 -0700)]
Revert "Test new solution for HB_PARTIALIZE"
This reverts commit
a0c4900799c26e4ff34180842a5ff21048fe31a0.
Behdad Esfahbod [Mon, 10 Jun 2019 19:33:23 +0000 (12:33 -0700)]
Test new solution for HB_PARTIALIZE
Just testing bots. Will finish based on results.
Ebrahim Byagowi [Mon, 10 Jun 2019 15:16:51 +0000 (08:16 -0700)]
[ci] Use HB_OPTIMIZE_SIZE instead of __OPTIMIZE_SIZE__
Ebrahim Byagowi [Mon, 10 Jun 2019 11:26:36 +0000 (15:56 +0430)]
[ci] Test -Os and optimize size in Alpine bot
__OPTIMIZE_SIZE__ should be defined whenever -Os but some Internet thread
indicate may not so lets do that ourselves as that is the main intention
Ebrahim Byagowi [Mon, 10 Jun 2019 10:47:43 +0000 (15:17 +0430)]
minor, add HB_USE_INTERNAL_QSORT
The only thing I need for a working wasm in a minimum libc,
otherwise I have to provide the very same qsort inside that libc
Ebrahim Byagowi [Mon, 10 Jun 2019 10:23:14 +0000 (14:53 +0430)]
[ci] remove wine from fedora bot
We are not testing Windows exes in fedora mingw bot, we don't have to as
probably won't go that smoothly and we have real Windows bots anyway
and as wine installation itself is time taking let's remove it
Ebrahim Byagowi [Sun, 9 Jun 2019 07:28:08 +0000 (11:58 +0430)]
[stat] minor format
Ebrahim Byagowi [Sun, 9 Jun 2019 07:21:58 +0000 (11:51 +0430)]
[stat] minor
Ebrahim Byagowi [Sun, 9 Jun 2019 07:20:36 +0000 (11:50 +0430)]
[algs] minor
Ebrahim Byagowi [Sun, 9 Jun 2019 07:19:25 +0000 (11:49 +0430)]
[cff] Use switch on multi-format structs (#1762)
Ebrahim Byagowi [Fri, 7 Jun 2019 08:28:09 +0000 (12:58 +0430)]
Update and use internal qsort everywhere
Behdad Esfahbod [Fri, 7 Jun 2019 21:20:45 +0000 (14:20 -0700)]
[ucd] Save another 1.5kb
https://github.com/harfbuzz/harfbuzz/issues/1652
Ebrahim Byagowi [Fri, 7 Jun 2019 20:10:18 +0000 (00:40 +0430)]
[ci] use trusty for its gcc 4.8 again
Behdad Esfahbod [Fri, 7 Jun 2019 19:49:06 +0000 (12:49 -0700)]
Disable clang gcc impersonator
Behdad Esfahbod [Fri, 7 Jun 2019 19:41:09 +0000 (12:41 -0700)]
Fix build on gcc 4.8
Fixes https://github.com/harfbuzz/harfbuzz/issues/1724
Behdad Esfahbod [Fri, 7 Jun 2019 17:56:24 +0000 (10:56 -0700)]
Downgrade double-promotion from error to warning
https://github.com/harfbuzz/harfbuzz/issues/1740
Ebrahim Byagowi [Fri, 7 Jun 2019 17:44:53 +0000 (10:44 -0700)]
Minor, fix gcc maybe-uninitialized complain
I guess all of its field will be initialized anyway here but lets make it more defensive
Ebrahim Byagowi [Thu, 6 Jun 2019 21:31:27 +0000 (02:01 +0430)]
Minor, remove unnecessary semicolon
Causing -Wextra-semi-stmt build error when no primitive has chosen
Interesting that nobody has noticed it yet.
Garret Rieger [Thu, 6 Jun 2019 00:40:59 +0000 (17:40 -0700)]
[subset] Move OS/2 to subset2.
Qunxin Liu [Wed, 5 Jun 2019 23:51:31 +0000 (16:51 -0700)]
[subset] post table to use _subset2
Qunxin Liu [Tue, 4 Jun 2019 17:30:53 +0000 (10:30 -0700)]
[subset] maxp table to use _subset2
Eli Zaretskii [Wed, 5 Jun 2019 19:20:03 +0000 (22:20 +0300)]
This makes minor changes to allow building HarfBuzz with
mingw.org's MinGW.
src/hb-algs.hh: Don't compile _BitScanForward and _BitScanReverse
for GCC >= 4. mingw.org's MinGW doesn't have these functions.
src/hb-atomic.hh: MemoryBarrier does exist in mingw.org's MinGW,
but it is not a macro, it is an inline function. __MINGW32_VERSION
is a macro that exists only in mingw.org's MinGW, so conditioning
on it should not affect MinGW64, where MemoryBarrier is a macro.
src/hb-uniscribe.cc: Define E_NOT_SUFFICIENT_BUFFER if it is not
defined (mingw.org's MinGW doesn't).
src/hb.hh: Don't include intrin.h for mingw.org's MinGW, since that
header is not available; instead, include windows.h. Conditioned
on __MINGW32_VERSION to avoid affecting MinGW64.
Behdad Esfahbod [Wed, 5 Jun 2019 19:13:49 +0000 (12:13 -0700)]
Slightly massage buffer-messaging commit
Saves a few bytes.
Ebrahim Byagowi [Wed, 5 Jun 2019 08:27:28 +0000 (12:57 +0430)]
Merge pull request #1755 from ebraminio/slim
Don't use vsnprintf when HB_NO_BUFFER_MESSAGE is defined
Ebrahim Byagowi [Wed, 5 Jun 2019 06:08:06 +0000 (10:38 +0430)]
Don't use vsnprintf when HB_NO_BUFFER_MESSAGE is defined
Bruce Mitchener [Mon, 3 Jun 2019 15:31:50 +0000 (22:31 +0700)]
Use C++11 override keyword.
David Corbett [Sun, 2 Jun 2019 00:54:46 +0000 (20:54 -0400)]
[myanmar] Make medial_group match the OT spec
Sometime between [July 2018] and [January 2019], the OpenType Myanmar
grammar changed: one asat is now allowed after a medial ya, before any
other medial consonant.
[July 2018]: http://web.archive.org/web/
20180711011550/https://docs.microsoft.com/en-us/typography/script-development/myanmar
[January 2019]: http://web.archive.org/web/
20190115044451/https://docs.microsoft.com/en-us/typography/script-development/myanmar
This also reverts commit
439b05867c0856a81fa8f9bea3a7465b4b4bdd91, which
allowed an asat immediately after a medial ra.
Qunxin Liu [Wed, 29 May 2019 21:03:17 +0000 (14:03 -0700)]
[subset] Hmtx/vmtx tables to use subset2 and new iterator frameworks
Ebrahim Byagowi [Tue, 4 Jun 2019 06:22:16 +0000 (10:52 +0430)]
Merge pull request #1747 from harfbuzz/cff2-fdselect-fix
fixed faulty FDSelect::sanitize
Michiharu Ariza [Mon, 3 Jun 2019 23:40:03 +0000 (16:40 -0700)]
added parentheses to FDSelect::sanitize as well
Michiharu Ariza [Mon, 3 Jun 2019 23:31:41 +0000 (16:31 -0700)]
added test data
Michiharu Ariza [Mon, 3 Jun 2019 22:52:23 +0000 (15:52 -0700)]
parenthesized cond-exp in CFF2FDSelect::sanitize
Ebrahim Byagowi [Mon, 3 Jun 2019 12:48:04 +0000 (05:48 -0700)]
Reapply possible bsearch overflow fix
Originally introduced in 21ede86 (#1314) but as it wasn't applied to hb_bsearch
accidentally removed while merging hb_bsearch_r to it.