Michiharu Ariza [Mon, 8 Oct 2018 22:07:58 +0000 (15:07 -0700)]
Merge branch 'master' into cff-subset
Michiharu Ariza [Mon, 8 Oct 2018 22:05:36 +0000 (15:05 -0700)]
added CFF2 get_extents
added source hb-ot-cff2-table.cc
augmented VariationData to return scalars
misc bug fixes, renaming, cleanup
Behdad Esfahbod [Mon, 8 Oct 2018 00:46:11 +0000 (20:46 -0400)]
Rename invisible_codepoint to invisible_glyph in API
Deleted recently added API:
hb_buffer_set_invisible_codepoint()
hb_buffer_get_invisible_codepoint()
hb-shape / hb-view --invisible-codepoint
New API:
hb_buffer_set_invisible_glyph()
hb_buffer_get_invisible_glyph()
hb-shape / hb-view --invisible-glyph
Fixes https://github.com/harfbuzz/harfbuzz/issues/1216
Behdad Esfahbod [Mon, 8 Oct 2018 00:36:46 +0000 (20:36 -0400)]
Revert "[morx] Fix MORX-35"
This reverts commit
f62f6e90ad1f1a83f77771ad65ee1ffb79470a8a.
Behdad Esfahbod [Mon, 8 Oct 2018 00:35:06 +0000 (20:35 -0400)]
[buffer] Improve shift_forward()
"Improve" is a strong word in this case though, I understand.
Behdad Esfahbod [Sun, 7 Oct 2018 22:06:53 +0000 (18:06 -0400)]
[morx] Fix MORX-35
Fixes https://github.com/harfbuzz/harfbuzz/issues/1224
Behdad Esfahbod [Sun, 7 Oct 2018 22:52:12 +0000 (18:52 -0400)]
Remove some code
We use scratch-flags to short-circuit this function. No need for previous
early loop.
Behdad Esfahbod [Sun, 7 Oct 2018 22:00:14 +0000 (18:00 -0400)]
[test/text-rendering-tests] Update from upstream
Behdad Esfahbod [Sun, 7 Oct 2018 18:01:33 +0000 (14:01 -0400)]
[kerx] Clean up kerx and KerxTable structures
Behdad Esfahbod [Sun, 7 Oct 2018 16:41:52 +0000 (18:41 +0200)]
Add API for setting invisible-codepoint
Fixes https://github.com/harfbuzz/harfbuzz/issues/1216
New API:
hb_buffer_set_invisible_codepoint()
hb_buffer_get_invisible_codepoint()
hb-shape / hb-view --invisible-codepoint
Behdad Esfahbod [Sun, 7 Oct 2018 16:23:45 +0000 (18:23 +0200)]
[ot-font] Load hmtx/vmtx lazily
Since we have get_*_advanes() API now, the overhead is once per shape,
not once per glyph.
Only cmap is warmed-up at set_funcs() time now.
Behdad Esfahbod [Sun, 7 Oct 2018 16:21:15 +0000 (18:21 +0200)]
Minor
Behdad Esfahbod [Sun, 7 Oct 2018 15:51:50 +0000 (17:51 +0200)]
Minor
Behdad Esfahbod [Sun, 7 Oct 2018 14:31:33 +0000 (16:31 +0200)]
[coretext] Fix OS X check
Fixes https://github.com/harfbuzz/harfbuzz/issues/1230
Michiharu Ariza [Sat, 6 Oct 2018 21:49:44 +0000 (14:49 -0700)]
Merge branch 'master' into cff-subset
Behdad Esfahbod [Sat, 6 Oct 2018 19:31:44 +0000 (21:31 +0200)]
[morx] Fix memory access issues with unsafe_to_break
Ebrahim Byagowi [Sat, 6 Oct 2018 19:12:56 +0000 (22:42 +0330)]
Make msan output a little more readable
Ebrahim Byagowi [Sat, 6 Oct 2018 08:49:33 +0000 (12:19 +0330)]
Use tempfile in run-tests as a fix for Windows CI fails (#1228)
Behdad Esfahbod [Sat, 6 Oct 2018 00:40:57 +0000 (02:40 +0200)]
[uniscribe/coretext] Fix for previous change
Behdad Esfahbod [Fri, 5 Oct 2018 16:39:48 +0000 (18:39 +0200)]
[vector] Make hb_vector_t relocatable / nestable
Ugly, but...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1227
Behdad Esfahbod [Fri, 5 Oct 2018 16:21:08 +0000 (18:21 +0200)]
Add hb_vector_t::fini_deep ()
Behdad Esfahbod [Fri, 5 Oct 2018 16:14:13 +0000 (18:14 +0200)]
[morx] Fix memory access issue
If buffer was enlarged, info was being outdated.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1225
Behdad Esfahbod [Fri, 5 Oct 2018 09:33:19 +0000 (11:33 +0200)]
[test/text-rendering-tests] Update from upstream
Behdad Esfahbod [Fri, 5 Oct 2018 00:49:29 +0000 (02:49 +0200)]
Change vendor features from Harf/Buzz to HARF/BUZZ
https://github.com/harfbuzz/harfbuzz/commit/
a01194aaf4c15160330b4042066263b2c963b658#commitcomment-
30772041
"The tag space of tags consisting of four uppercase letters (A-Z) with no punctuation,
spaces, or numbers, is reserved as a vendor space. Font vendors may use such tags to
identify private features."
Michiharu Ariza [Thu, 4 Oct 2018 21:16:07 +0000 (14:16 -0700)]
fixed leak exposed by test-ot-extents-cff
Michiharu Ariza [Thu, 4 Oct 2018 20:59:36 +0000 (13:59 -0700)]
added CFF glyph extents API test
Michiharu Ariza [Thu, 4 Oct 2018 16:37:57 +0000 (09:37 -0700)]
tweaked previous warning fixes
Behdad Esfahbod [Thu, 4 Oct 2018 14:36:42 +0000 (16:36 +0200)]
More bot fixes
Behdad Esfahbod [Thu, 4 Oct 2018 14:31:14 +0000 (16:31 +0200)]
Fix a warning
Behdad Esfahbod [Thu, 4 Oct 2018 14:23:42 +0000 (16:23 +0200)]
[test] Choose 'ot' shaper specifically
Now that we added morx support, our OS X bot is running them through CoreText
and failing (with a DoS / infinite loop no less!). Always run tests through
our own shaper.
Behdad Esfahbod [Thu, 4 Oct 2018 11:28:13 +0000 (13:28 +0200)]
[TODO] Clean up
Behdad Esfahbod [Thu, 4 Oct 2018 11:00:37 +0000 (13:00 +0200)]
Enable two OpenType features, 'Harf' and 'Buzz'
One early, before script-specific features, one late, after. Allows font
developers to detect us and behave differently if needed.
Behdad Esfahbod [Thu, 4 Oct 2018 10:13:55 +0000 (12:13 +0200)]
[test/text-rendering-tests] Update from upstream
Behdad Esfahbod [Thu, 4 Oct 2018 10:09:45 +0000 (12:09 +0200)]
Minor
Behdad Esfahbod [Thu, 4 Oct 2018 09:34:21 +0000 (11:34 +0200)]
Apply morx if there's no GSUB!
Behdad Esfahbod [Thu, 4 Oct 2018 09:08:15 +0000 (11:08 +0200)]
[aat] Add +hb_aat_layout_has_substitution
Sascha Brawer [Thu, 4 Oct 2018 07:17:08 +0000 (09:17 +0200)]
Minor: Fix autoconf warning
Before this change, autoconf was emitting the following warnings:
```
configure.ac:22: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:22: the top level
configure.ac:22: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:22: the top level
configure.ac:22: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:22: the top level
configure.ac:22: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:22: the top level
configure.ac:22: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:22: the top level
configure.ac:22: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:22: the top level
configure.ac:22: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:22: the top level
configure.ac:22: warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:22: the top level
```
Sascha Brawer [Thu, 4 Oct 2018 07:24:08 +0000 (09:24 +0200)]
[morx] Only insert glyphs at mark when a mark has been set before
This reverts commit
f4072e8cb81072cd6d51a2607efedb76c02e7db1.
https://github.com/harfbuzz/harfbuzz/issues/1195
Michiharu Ariza [Thu, 4 Oct 2018 01:08:25 +0000 (18:08 -0700)]
fixed warnings
Michiharu Ariza [Thu, 4 Oct 2018 00:44:45 +0000 (17:44 -0700)]
fixed cff2 subset test data
Michiharu Ariza [Thu, 4 Oct 2018 00:06:18 +0000 (17:06 -0700)]
Merge branch 'master' into cff-subset
Ebrahim Byagowi [Wed, 3 Oct 2018 22:44:18 +0000 (02:14 +0330)]
Minor, fix double-promotion warnings (#1221)
Ebrahim Byagowi [Wed, 3 Oct 2018 20:59:40 +0000 (00:29 +0330)]
State our graphite2 dependency no-deprecated compile flag (#1220)
mhosken [Wed, 3 Oct 2018 19:33:26 +0000 (02:33 +0700)]
Update Graphite API to latest (#1215)
Behdad Esfahbod [Wed, 3 Oct 2018 19:30:48 +0000 (21:30 +0200)]
Add emoji test for recent work
Ebrahim Byagowi [Wed, 3 Oct 2018 19:19:02 +0000 (22:49 +0330)]
[ci] Delete azure-pipelines
End of experiment, we might get back to it later
Behdad Esfahbod [Wed, 3 Oct 2018 19:17:59 +0000 (21:17 +0200)]
Clean Fitzpatrick hack
Behdad Esfahbod [Wed, 3 Oct 2018 19:11:13 +0000 (21:11 +0200)]
Unbreak Fitzpatrick
Fixes https://github.com/harfbuzz/harfbuzz/issues/1159
Behdad Esfahbod [Wed, 3 Oct 2018 19:02:16 +0000 (21:02 +0200)]
Rewrite grapheme-formation in terms of new work
Also, don't attach ZWNJ to previous cluster. Closer to Unicode graphemes.
Behdad Esfahbod [Wed, 3 Oct 2018 18:50:12 +0000 (20:50 +0200)]
Minor
Behdad Esfahbod [Wed, 3 Oct 2018 18:45:19 +0000 (20:45 +0200)]
[test] Split a test
Ebrahim Byagowi [Wed, 3 Oct 2018 18:22:15 +0000 (21:52 +0330)]
Update azure-pipelines.yml
Behdad Esfahbod [Wed, 3 Oct 2018 18:19:17 +0000 (20:19 +0200)]
Fix distcheck
Behdad Esfahbod [Wed, 3 Oct 2018 18:16:03 +0000 (20:16 +0200)]
[thai] Set continuation on decomposed nikhahit
Behdad Esfahbod [Wed, 3 Oct 2018 18:13:20 +0000 (20:13 +0200)]
[indic] Reset continuation on inserted dottedcircle
Behdad Esfahbod [Wed, 3 Oct 2018 18:09:14 +0000 (20:09 +0200)]
[buffer] Inline some more
Behdad Esfahbod [Wed, 3 Oct 2018 18:06:32 +0000 (20:06 +0200)]
Add code
Behdad Esfahbod [Wed, 3 Oct 2018 18:05:28 +0000 (20:05 +0200)]
[indic] Simplify dottedcircle
Behdad Esfahbod [Wed, 3 Oct 2018 17:44:15 +0000 (19:44 +0200)]
[emoji] Mark emoji contination sequences as continuation
This adds a new grapheme bit. Not used yet.
Part of https://github.com/harfbuzz/harfbuzz/issues/1159
Behdad Esfahbod [Wed, 3 Oct 2018 17:19:51 +0000 (19:19 +0200)]
Dotted-circle all marks, not just non-spacing, at text beginning
Ebrahim Byagowi [Wed, 3 Oct 2018 17:56:58 +0000 (21:26 +0330)]
[test] Use an in-repo font for test-multithread (#1218)
As Khaled's suggestion, hard-coded font paths was only for my own testing.
azure-pipelines[bot] [Wed, 3 Oct 2018 17:47:05 +0000 (17:47 +0000)]
[ci] Add a test Azure Pipelines Linux bot
Related #1219
Behdad Esfahbod [Wed, 3 Oct 2018 17:10:28 +0000 (19:10 +0200)]
Fix build
Behdad Esfahbod [Wed, 3 Oct 2018 16:07:49 +0000 (18:07 +0200)]
[indic] Fix clang everything
Behdad Esfahbod [Wed, 3 Oct 2018 15:54:09 +0000 (17:54 +0200)]
Minor
Behdad Esfahbod [Wed, 3 Oct 2018 15:46:48 +0000 (17:46 +0200)]
[emoji] Add emoji Extended_Pictographic table and function
Part of https://github.com/harfbuzz/harfbuzz/issues/1159
.
Behdad Esfahbod [Wed, 3 Oct 2018 15:27:46 +0000 (17:27 +0200)]
[os2] Minor rename/shuffle
lantw44 [Wed, 3 Oct 2018 15:22:43 +0000 (23:22 +0800)]
Fix test-multithread build on FreeBSD (#1217)
Add the default font path used by FreeBSD ports.
Behdad Esfahbod [Wed, 3 Oct 2018 12:44:25 +0000 (14:44 +0200)]
[indic] Disallow vowel mark combinations that spoof other vowel marks
Fixes https://github.com/harfbuzz/harfbuzz/issues/1019
New numbers:
BENGALI: 353725 out of 354188 tests passed. 463 failed (0.130722%)
DEVANAGARI: 707261 out of 707394 tests passed. 133 failed (0.0188014%)
GUJARATI: 366353 out of 366457 tests passed. 104 failed (0.0283799%)
GURMUKHI: 60729 out of 60747 tests passed. 18 failed (0.0296311%)
KANNADA: 951300 out of 951913 tests passed. 613 failed (0.0643966%)
MALAYALAM: 1048136 out of 1048334 tests passed. 198 failed (0.0188871%)
ORIYA: 42327 out of 42329 tests passed. 2 failed (0.
00472489%)
SINHALA: 271596 out of 271847 tests passed. 251 failed (0.0923313%)
TAMIL: 1091754 out of 1091754 tests passed. 0 failed (0%)
TELUGU: 970555 out of 970573 tests passed. 18 failed (0.
00185457%)
Devanagari regressed because Uniscribe doesn't enforce the full set.
Tests added with the *-vowel-letters.txt files in tree and Noto fonts.
Behdad Esfahbod [Wed, 3 Oct 2018 12:44:19 +0000 (14:44 +0200)]
[thai] Minor
Behdad Esfahbod [Wed, 3 Oct 2018 11:54:21 +0000 (13:54 +0200)]
Typo
Behdad Esfahbod [Wed, 3 Oct 2018 11:26:26 +0000 (13:26 +0200)]
Minor
Behdad Esfahbod [Wed, 3 Oct 2018 10:53:54 +0000 (12:53 +0200)]
Minor
HinTak [Tue, 2 Oct 2018 23:11:22 +0000 (07:11 +0800)]
Missing colon for gobject annotation
There should be a colon separating "(transfer full)" and the rest. Warned by g-ir-scanner.
Behdad Esfahbod [Wed, 3 Oct 2018 10:29:56 +0000 (12:29 +0200)]
[use] Add Halant_Or_Vowel_Modifier category
Fixes https://github.com/harfbuzz/harfbuzz/issues/1102
Michiharu Ariza [Wed, 3 Oct 2018 04:08:36 +0000 (21:08 -0700)]
silence warning ^3
Michiharu Ariza [Wed, 3 Oct 2018 03:44:30 +0000 (20:44 -0700)]
silence warning ^2
Michiharu Ariza [Tue, 2 Oct 2018 22:05:26 +0000 (15:05 -0700)]
rm build files
Michiharu Ariza [Tue, 2 Oct 2018 21:38:06 +0000 (14:38 -0700)]
silence warnings
Michiharu Ariza [Tue, 2 Oct 2018 21:13:36 +0000 (14:13 -0700)]
silence & fix new warnings
Michiharu Ariza [Tue, 2 Oct 2018 20:45:14 +0000 (13:45 -0700)]
redefine OpCodes as define instead of enum
in order to eradicate duplicate enum warnings
Michiharu Ariza [Tue, 2 Oct 2018 20:43:21 +0000 (13:43 -0700)]
Merge branch 'master' into cff-subset
Ebrahim Byagowi [Tue, 2 Oct 2018 18:09:19 +0000 (21:39 +0330)]
[circleci] Fix some of warnings from clang-everything bot (#1211)
* -Wshift-sign-overflow
* -Wmissing-prototypes
Behdad Esfahbod [Tue, 2 Oct 2018 16:56:20 +0000 (18:56 +0200)]
[tests] Allow test-runner to ignore shaping output
Fixes https://github.com/harfbuzz/harfbuzz/issues/1212
Behdad Esfahbod [Tue, 2 Oct 2018 16:46:13 +0000 (18:46 +0200)]
[tibetan] Remove unused Tibetan shaper
Behdad Esfahbod [Tue, 2 Oct 2018 16:43:29 +0000 (18:43 +0200)]
[tibetan] Route Tibetan through USE
Fixes https://github.com/harfbuzz/harfbuzz/pull/933
https://github.com/harfbuzz/harfbuzz/issues/1012
Tibetan failures go from 0 to 2:
TIBETAN: 208467 out of 208469 tests passed. 2 failed (0.
000959375%)
Behdad Esfahbod [Tue, 2 Oct 2018 16:20:16 +0000 (18:20 +0200)]
[khmer] Remove unused khmer_position()
Behdad Esfahbod [Tue, 2 Oct 2018 15:49:06 +0000 (17:49 +0200)]
[indic/use] Factor common expressions in ragel machine
No machine change.
Behdad Esfahbod [Tue, 2 Oct 2018 15:46:27 +0000 (17:46 +0200)]
[indic] Minor flip grammar around
No behavior change.
Behdad Esfahbod [Tue, 2 Oct 2018 15:16:01 +0000 (17:16 +0200)]
[indic] Add some confusable sequences from Unicode Standard
Behdad Esfahbod [Tue, 2 Oct 2018 15:04:05 +0000 (17:04 +0200)]
[ragel] Use ts/te (token-start / token-end) instead of manual tracking
Behdad Esfahbod [Tue, 2 Oct 2018 14:05:26 +0000 (16:05 +0200)]
Treat a base+mark... ligature as base, not ligature
Fixes https://github.com/harfbuzz/harfbuzz/issues/746
Behdad Esfahbod [Tue, 2 Oct 2018 13:02:16 +0000 (15:02 +0200)]
Move code around
Behdad Esfahbod [Tue, 2 Oct 2018 12:48:39 +0000 (14:48 +0200)]
Minor
Behdad Esfahbod [Tue, 2 Oct 2018 12:45:09 +0000 (14:45 +0200)]
Minor
Behdad Esfahbod [Tue, 2 Oct 2018 12:40:14 +0000 (14:40 +0200)]
Disable joiner-skipping when looking back for base to attach mark to
Fixes https://github.com/harfbuzz/harfbuzz/issues/1189
Behdad Esfahbod [Tue, 2 Oct 2018 12:34:29 +0000 (14:34 +0200)]
[arabic] Use manual-zwj instead of flipping joiners
Behdad Esfahbod [Tue, 2 Oct 2018 12:17:42 +0000 (14:17 +0200)]
Minor
Behdad Esfahbod [Tue, 2 Oct 2018 11:27:11 +0000 (13:27 +0200)]
Minor
Behdad Esfahbod [Tue, 2 Oct 2018 11:24:40 +0000 (13:24 +0200)]
Move things