Behdad Esfahbod [Wed, 26 Jun 2019 20:21:03 +0000 (13:21 -0700)]
[config] Add HB_NO_OT_SHAPE / HB_NO_OT
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Wed, 26 Jun 2019 20:01:58 +0000 (13:01 -0700)]
Fail compile if no shapers enabled
Behdad Esfahbod [Wed, 26 Jun 2019 19:53:57 +0000 (12:53 -0700)]
[src] Add make targets "tiny" and "tinyz"
Behdad Esfahbod [Wed, 26 Jun 2019 17:44:10 +0000 (10:44 -0700)]
2.5.3
Behdad Esfahbod [Wed, 26 Jun 2019 02:07:07 +0000 (19:07 -0700)]
[gen-ucd] Protect against accidents like previous commit
https://github.com/harfbuzz/harfbuzz/pull/1796
David Corbett [Wed, 26 Jun 2019 01:08:14 +0000 (21:08 -0400)]
[ucd] Include scripts added in Unicode 10 or later
Michiharu Ariza [Thu, 20 Jun 2019 23:22:08 +0000 (16:22 -0700)]
minor
Michiharu Ariza [Thu, 20 Jun 2019 21:33:09 +0000 (14:33 -0700)]
add ops & methods to hb_bimap_t making it more like hb_map_t
moved has () to hb_bimap_t from hb_inc_bimap_t
moved identity () to hb_inc_bimap_t
removed forward()
Michiharu Ariza [Tue, 18 Jun 2019 05:12:40 +0000 (22:12 -0700)]
add hb_bimap_t, subclass hb_inc_bimap_t replacing CFF::remap_t
David Corbett [Tue, 25 Jun 2019 14:14:03 +0000 (10:14 -0400)]
Categorize U+1133B for use in Tamil
David Corbett [Tue, 25 Jun 2019 01:54:26 +0000 (21:54 -0400)]
Correct "nonunihan" to "nounihan"
Ebrahim Byagowi [Mon, 24 Jun 2019 21:12:42 +0000 (01:42 +0430)]
Replace create_from_file with empty blob if HB_NO_OPEN is defined
GaryQian [Mon, 24 Jun 2019 19:57:13 +0000 (12:57 -0700)]
Cast long->size_t to ensure comparison of similar types
Behdad Esfahbod [Mon, 24 Jun 2019 19:37:23 +0000 (12:37 -0700)]
[ucd] Use custom encoding to shrink composition data
Saves another 2.5kb.
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Mon, 24 Jun 2019 00:14:27 +0000 (17:14 -0700)]
[ucd] Save a few more bytes
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Qunxin Liu [Wed, 12 Jun 2019 18:02:48 +0000 (11:02 -0700)]
[subset] VORG table to use _subset2 method and new iterator frameworks
Ebrahim Byagowi [Sun, 23 Jun 2019 06:49:48 +0000 (11:19 +0430)]
Merge pull request #1788 from jameshilliard/configure-svg
Add missing cairo-svg dependency to test-ot-color
James Hilliard [Sun, 23 Jun 2019 01:38:48 +0000 (19:38 -0600)]
Add missing cairo-svg dependency to test-ot-color
Behdad Esfahbod [Fri, 21 Jun 2019 07:44:29 +0000 (00:44 -0700)]
[config/ucd] Add HB_NO_UNICODE_UNASSIGNED and activate in HB_TINY
Saves another 12kb:
$ python ./gen-ucd-table.py ucd.nounihan.grouped.zip > hb-ucd-table.hh && make -j5 CPPFLAGS='-Os -DHB_TINY' -C ~/hb/build/src/ && size ~/hb/build/src/.libs/libharfbuzz_la-hb-ucd.o
INFO: Loading UCDXML...
INFO: Preparing data tables...
INFO: Generating output...
INFO: Compression=1:
INFO: Dataset=gc FullCost=18612
INFO: Dataset=ccc FullCost=3550
INFO: Dataset=bmg FullCost=1548
INFO: Dataset=sc FullCost=17765
INFO: Dataset=dm FullCost=13325
INFO: Compression=3:
INFO: Dataset=gc FullCost=10726
INFO: Dataset=ccc FullCost=2389
INFO: Dataset=bmg FullCost=1052
INFO: Dataset=sc FullCost=13669
INFO: Dataset=dm FullCost=7780
INFO: Compression=5:
INFO: Dataset=gc FullCost=8274
INFO: Dataset=ccc FullCost=2055
INFO: Dataset=bmg FullCost=908
INFO: Dataset=sc FullCost=4073
INFO: Dataset=dm FullCost=7780
INFO: Done.
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Fri, 21 Jun 2019 07:42:06 +0000 (00:42 -0700)]
[config] Make test build under HB_TINY
Ebrahim Byagowi [Fri, 21 Jun 2019 18:09:42 +0000 (22:39 +0430)]
Don't define hb_blob_create_from_file if HB_NO_OPEN is defined
Behdad Esfahbod [Thu, 20 Jun 2019 21:24:43 +0000 (14:24 -0700)]
Fix build with -O0
message_impl was not defined. That causes trouble if compiler didn't
optimize the unreachable call out...
Behdad Esfahbod [Thu, 20 Jun 2019 18:57:19 +0000 (11:57 -0700)]
2.5.2
Behdad Esfahbod [Thu, 20 Jun 2019 18:48:44 +0000 (11:48 -0700)]
[config] Adjust description of HB_LEAN
https://github.com/harfbuzz/harfbuzz/commit/
d84932ba50482b3b47e393714eb77b19173d1f14
Behdad Esfahbod [Thu, 20 Jun 2019 03:34:29 +0000 (20:34 -0700)]
[config] Add HB_NO_LAYOUT_COLLECT_GLYPHS
Part of
Behdad Esfahbod [Thu, 20 Jun 2019 03:12:25 +0000 (20:12 -0700)]
[config] Add HB_NO_LAYOUT_FEATURE_PARAMS
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
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