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.
Bruce Mitchener [Mon, 3 Jun 2019 08:00:25 +0000 (15:00 +0700)]
test: Use nullptr in C++ code. (#1744)
Ebrahim Byagowi [Sun, 2 Jun 2019 09:21:26 +0000 (13:51 +0430)]
[ci] revert to xenial
It should've done in a branch
Ebrahim Byagowi [Sat, 1 Jun 2019 20:06:30 +0000 (00:36 +0430)]
minor
Ebrahim Byagowi [Sat, 1 Jun 2019 19:49:57 +0000 (00:19 +0430)]
Use a unified bsearch (#1741)
A part of #593
Ebrahim Byagowi [Sat, 1 Jun 2019 16:55:09 +0000 (21:25 +0430)]
[ci] Downgrade Travis distribution upon Behdad request
Ebrahim Byagowi [Sat, 1 Jun 2019 06:32:25 +0000 (11:02 +0430)]
[ci] Install ragel on appveyor mingw bots
Hopefully autotools timestamps issues will go
Ebrahim Byagowi [Sat, 1 Jun 2019 06:25:37 +0000 (10:55 +0430)]
[dwrite] Replace REPLACEME with release version the symbol had
Behdad Esfahbod [Sat, 1 Jun 2019 05:53:27 +0000 (22:53 -0700)]
2.5.1
Behdad Esfahbod [Sat, 1 Jun 2019 05:56:37 +0000 (22:56 -0700)]
[docs] Fix dist
Behdad Esfahbod [Sat, 1 Jun 2019 05:31:35 +0000 (22:31 -0700)]
Fourth try at building VS bots
Based on https://github.com/harfbuzz/harfbuzz/issues/1730#issuecomment-
497151210
Behdad Esfahbod [Sat, 1 Jun 2019 05:12:23 +0000 (22:12 -0700)]
[ci] Disable VS 2013
That one doesn't even understand constexpr.
Behdad Esfahbod [Sat, 1 Jun 2019 05:11:27 +0000 (22:11 -0700)]
Third try at fixing VS build
https://github.com/harfbuzz/harfbuzz/issues/1730
Behdad Esfahbod [Sat, 1 Jun 2019 04:41:40 +0000 (21:41 -0700)]
Second VS fix try
https://github.com/harfbuzz/harfbuzz/issues/1730
Behdad Esfahbod [Sat, 1 Jun 2019 04:08:39 +0000 (21:08 -0700)]
Try fixing VS builds
Hopefully fixes https://github.com/harfbuzz/harfbuzz/issues/1730
Behdad Esfahbod [Sat, 1 Jun 2019 03:20:43 +0000 (20:20 -0700)]
[ci] Enable other versions of Visual Studio
https://github.com/harfbuzz/harfbuzz/issues/1730
Behdad Esfahbod [Sat, 1 Jun 2019 03:16:25 +0000 (20:16 -0700)]
Whitespace
rsheeter [Fri, 31 May 2019 22:14:44 +0000 (15:14 -0700)]
[subset] Correct calculation of max offset; fixes bug where loca would erroneously be short
Behdad Esfahbod [Fri, 31 May 2019 22:48:54 +0000 (15:48 -0700)]
[gsub] Minor
Behdad Esfahbod [Fri, 31 May 2019 22:38:11 +0000 (15:38 -0700)]
[gsub] Porting serialize to iterators
Behdad Esfahbod [Fri, 31 May 2019 21:39:32 +0000 (14:39 -0700)]
[serialize] Pass offset to serialize_subset()
Behdad Esfahbod [Fri, 31 May 2019 21:34:34 +0000 (14:34 -0700)]
[serialize] Pass offset to serialize_copy()
Behdad Esfahbod [Thu, 30 May 2019 15:26:17 +0000 (11:26 -0400)]
[math] Rename HB_MATH_GLYPH_PART_FLAG_EXTENDER
To HB_OT_MATH_GLYPH_PART_FLAG_EXTENDER. Added a deprecated macro.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1734
Ebrahim Byagowi [Tue, 28 May 2019 21:25:31 +0000 (01:55 +0430)]
[ci] Clean up and add disabled bots of other msvc versions (#1733)
Bruce Mitchener [Tue, 28 May 2019 14:50:17 +0000 (21:50 +0700)]
Fix some typos.
Ebrahim Byagowi [Tue, 28 May 2019 09:24:45 +0000 (13:54 +0430)]
[test] minor, fix copyright
nothing important, fixing a copy paste error inconsistency
Ebrahim Byagowi [Tue, 28 May 2019 09:18:39 +0000 (13:48 +0430)]
[test] minor style improve
David Corbett [Sun, 26 May 2019 15:05:54 +0000 (11:05 -0400)]
[use] Allow U+1A60 TAI THAM SIGN SAKOT after vowel
Behdad Esfahbod [Mon, 27 May 2019 17:08:07 +0000 (13:08 -0400)]
[atomic] Fix warning, second time
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1554306
Behdad Esfahbod [Sat, 25 May 2019 20:33:21 +0000 (16:33 -0400)]
[ucd] Update for latest packTab
Behdad Esfahbod [Sat, 25 May 2019 19:58:45 +0000 (15:58 -0400)]
[ucd] Update for recent packTab
No need for separate youseedy package.
Ebrahim Byagowi [Sat, 25 May 2019 18:25:06 +0000 (22:55 +0430)]
[ci] minor
Ebrahim Byagowi [Sat, 25 May 2019 18:16:10 +0000 (22:46 +0430)]
[ci] minor
Ebrahim Byagowi [Sat, 25 May 2019 18:03:02 +0000 (22:33 +0430)]
[ci] Store dist-win result instead
Behdad Esfahbod [Sat, 25 May 2019 16:59:01 +0000 (12:59 -0400)]
[atomic] Fix warnings
https://bugzilla.mozilla.org/show_bug.cgi?id=1554306
Behdad Esfahbod [Sat, 25 May 2019 16:52:16 +0000 (12:52 -0400)]
[mingw] Update instructions
https://github.com/harfbuzz/harfbuzz/issues/1728
Behdad Esfahbod [Sat, 25 May 2019 16:49:20 +0000 (12:49 -0400)]
[mutex] Prefer pthread over windows
https://github.com/harfbuzz/harfbuzz/issues/1728
Behdad Esfahbod [Sat, 25 May 2019 16:45:40 +0000 (12:45 -0400)]
Look for pthread even if win32
https://github.com/harfbuzz/harfbuzz/issues/1728
Behdad Esfahbod [Sat, 25 May 2019 16:42:38 +0000 (12:42 -0400)]
[mingw] Some more tweaks
It now survives ./config.status --recheck as well.
https://github.com/harfbuzz/harfbuzz/issues/1728
Behdad Esfahbod [Sat, 25 May 2019 16:35:09 +0000 (12:35 -0400)]
[mingw] Add "make dist-win" to toplevel Makefile
Behdad Esfahbod [Sat, 25 May 2019 16:16:28 +0000 (12:16 -0400)]
[mingw] More
Ebrahim Byagowi [Sat, 25 May 2019 16:10:03 +0000 (20:40 +0430)]
[ci] Remove --without-icu now that we have it in ./mingw{32,64} scripts
Behdad Esfahbod [Sat, 25 May 2019 16:08:05 +0000 (12:08 -0400)]
[mingw] Force off ICU
If cross-compiled ICU is not available, we might end up finding the
native ICU via icu-config. That's distracting.
Ebrahim Byagowi [Sat, 25 May 2019 15:57:29 +0000 (20:27 +0430)]
[ci] Build mingw on Fedora and store .exe outputs
Behdad Esfahbod [Sat, 25 May 2019 15:37:23 +0000 (11:37 -0400)]
[ming2] Update instructions
Part of https://github.com/harfbuzz/harfbuzz/issues/1728
Only left to write how to create a win32 bundle.
Behdad Esfahbod [Sat, 25 May 2019 15:18:40 +0000 (11:18 -0400)]
[mingw] Rename README.wine
Behdad Esfahbod [Sat, 25 May 2019 15:17:56 +0000 (11:17 -0400)]
[mingw] Update for recent change
Behdad Esfahbod [Sat, 25 May 2019 15:15:15 +0000 (11:15 -0400)]
[mingw] Update for Fedora mingw installation location
Also adds --with-uniscribe by default.
Part of https://github.com/harfbuzz/harfbuzz/issues/1728
n8willis [Sat, 25 May 2019 15:05:07 +0000 (16:05 +0100)]
Merge pull request #1691 from n8willis/usermanual-shaping
Usermanual: Add new chapters.
Nathan Willis [Sat, 25 May 2019 11:26:50 +0000 (12:26 +0100)]
Usermanual; minor.
Behdad Esfahbod [Fri, 24 May 2019 21:02:38 +0000 (17:02 -0400)]
[win] Add mingw-ldd.py
Part of https://github.com/harfbuzz/harfbuzz/issues/1728
Behdad Esfahbod [Fri, 24 May 2019 19:56:15 +0000 (15:56 -0400)]
2.5.0
Behdad Esfahbod [Fri, 24 May 2019 19:41:34 +0000 (15:41 -0400)]
Put back Since: tags for hb_color_get_*
Nathan Willis [Fri, 24 May 2019 19:30:22 +0000 (20:30 +0100)]
Usermanual-buffers-chapter: trim out fallback-of-ufuncs talk and just mention that stuff exists if you care to go find it.
Qunxin Liu [Fri, 24 May 2019 17:58:52 +0000 (10:58 -0700)]
Fix fuzzer crash testcase
Add a check for stringOffSet(uint16) overflow,
return early if overflow happens
Nathan Willis [Fri, 24 May 2019 19:13:35 +0000 (20:13 +0100)]
Usermanual-buffers-chapter: explain ICU fallback for Ufuncs.