Carlo Bramini [Sun, 30 Jun 2019 13:03:44 +0000 (15:03 +0200)]
Dynamically load DWRITE
Also checks if DWriteCreateFactory() has been executed successfully.
Behdad Esfahbod [Fri, 28 Jun 2019 23:00:37 +0000 (16:00 -0700)]
[config] Fix CoreText build with NO_AAT
Ebrahim Byagowi [Fri, 28 Jun 2019 19:30:00 +0000 (00:00 +0430)]
Apply some minor improves on CFFIndex
Ebrahim Byagowi [Fri, 28 Jun 2019 19:14:14 +0000 (23:44 +0430)]
minor, reuse StructAtOffset logic in StructAtOffsetOrNull
Ebrahim Byagowi [Fri, 28 Jun 2019 18:41:52 +0000 (23:11 +0430)]
minor style improve in hb-cff-interp-common.hh
Ebrahim Byagowi [Fri, 28 Jun 2019 18:23:51 +0000 (22:53 +0430)]
style fix for pylint complain
Behdad Esfahbod [Thu, 27 Jun 2019 21:48:10 +0000 (14:48 -0700)]
[config] Add links
Behdad Esfahbod [Thu, 27 Jun 2019 20:42:51 +0000 (13:42 -0700)]
[test] Make Unicode tests strict against internal UCD
https://github.com/harfbuzz/harfbuzz/pull/1799
David Corbett [Thu, 27 Jun 2019 01:10:11 +0000 (21:10 -0400)]
Test at least one character per Unicode version
Ebrahim Byagowi [Thu, 27 Jun 2019 17:39:28 +0000 (22:09 +0430)]
Merge pull request #1800 from harfbuzz/harfbuzz/cffnull_fix2
[CFF] fix for Subrs null ptr access
Michiharu Ariza [Thu, 27 Jun 2019 15:43:31 +0000 (08:43 -0700)]
add test case file
Michiharu Ariza [Wed, 26 Jun 2019 22:58:38 +0000 (15:58 -0700)]
alternate fix for https://crbug.com/971933
Behdad Esfahbod [Wed, 26 Jun 2019 21:57:48 +0000 (14:57 -0700)]
[config] Don't disable emoji sequences in HB_TINY
It makes sense to disable this code these if editing is not needed.
However, this is also necessary to correctly display emoji sequences
in right-to-left direction. For that reason, don't auto-disable it.
Behdad Esfahbod [Wed, 26 Jun 2019 21:51:17 +0000 (14:51 -0700)]
[config] Compile out modified combining-class if HB_NO_OT_SHAPE
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Wed, 26 Jun 2019 21:49:15 +0000 (14:49 -0700)]
[emoji] Port generator to packtab
Behdad Esfahbod [Wed, 26 Jun 2019 21:29:39 +0000 (14:29 -0700)]
[config] Add HB_NO_EMOJI
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Wed, 26 Jun 2019 20:58:40 +0000 (13:58 -0700)]
[config] Add HB_NO_SHAPER
Don't know who would want when why. But makes sense to have.
Behdad Esfahbod [Wed, 26 Jun 2019 20:49:42 +0000 (13:49 -0700)]
[config] Add HB_NO_OT_TAG
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Wed, 26 Jun 2019 20:44:10 +0000 (13:44 -0700)]
[config] Fix build with HB_NO_OT_LAYOUT
Behdad Esfahbod [Wed, 26 Jun 2019 20:38:14 +0000 (13:38 -0700)]
[config] Add dependency
Behdad Esfahbod [Wed, 26 Jun 2019 20:31:51 +0000 (13:31 -0700)]
[config] Add dependency
Behdad Esfahbod [Wed, 26 Jun 2019 20:31:01 +0000 (13:31 -0700)]
[config] Rename HB_NO_SHAPE_AAT to HB_NO_AAT_SHAPE
Behdad Esfahbod [Wed, 26 Jun 2019 20:29:58 +0000 (13:29 -0700)]
[config] Add HB_NO_OT_LAYOUT
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
Behdad Esfahbod [Wed, 26 Jun 2019 20:25:02 +0000 (13:25 -0700)]
[config] Enable HB_NO_OT_FONT in HB_NO_OT
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