platform/upstream/libHarfBuzzSharp.git
5 years agoRemove round polyfill
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.

5 years agoSimplify HB_PARTIALIZE impl
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.

5 years agoRevert "Test new solution for HB_PARTIALIZE"
Behdad Esfahbod [Mon, 10 Jun 2019 19:46:54 +0000 (12:46 -0700)]
Revert "Test new solution for HB_PARTIALIZE"

This reverts commit a0c4900799c26e4ff34180842a5ff21048fe31a0.

5 years agoTest new solution for HB_PARTIALIZE
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.

5 years ago[ci] Use HB_OPTIMIZE_SIZE instead of __OPTIMIZE_SIZE__
Ebrahim Byagowi [Mon, 10 Jun 2019 15:16:51 +0000 (08:16 -0700)]
[ci] Use HB_OPTIMIZE_SIZE instead of __OPTIMIZE_SIZE__

5 years ago[ci] Test -Os and optimize size in Alpine bot
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

5 years agominor, add HB_USE_INTERNAL_QSORT
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

5 years ago[ci] remove wine from fedora bot
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

5 years ago[stat] minor format
Ebrahim Byagowi [Sun, 9 Jun 2019 07:28:08 +0000 (11:58 +0430)]
[stat] minor format

5 years ago[stat] minor
Ebrahim Byagowi [Sun, 9 Jun 2019 07:21:58 +0000 (11:51 +0430)]
[stat] minor

5 years ago[algs] minor
Ebrahim Byagowi [Sun, 9 Jun 2019 07:20:36 +0000 (11:50 +0430)]
[algs] minor

5 years ago[cff] Use switch on multi-format structs (#1762)
Ebrahim Byagowi [Sun, 9 Jun 2019 07:19:25 +0000 (11:49 +0430)]
[cff] Use switch on multi-format structs (#1762)

5 years agoUpdate and use internal qsort everywhere
Ebrahim Byagowi [Fri, 7 Jun 2019 08:28:09 +0000 (12:58 +0430)]
Update and use internal qsort everywhere

5 years ago[ucd] Save another 1.5kb
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

5 years ago[ci] use trusty for its gcc 4.8 again
Ebrahim Byagowi [Fri, 7 Jun 2019 20:10:18 +0000 (00:40 +0430)]
[ci] use trusty for its gcc 4.8 again

5 years agoDisable clang gcc impersonator
Behdad Esfahbod [Fri, 7 Jun 2019 19:49:06 +0000 (12:49 -0700)]
Disable clang gcc impersonator

5 years agoFix build on gcc 4.8
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

5 years agoDowngrade double-promotion from error to warning
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

5 years agoMinor, fix gcc maybe-uninitialized complain
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

5 years agoMinor, remove unnecessary semicolon
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.

5 years ago[subset] Move OS/2 to subset2.
Garret Rieger [Thu, 6 Jun 2019 00:40:59 +0000 (17:40 -0700)]
[subset] Move OS/2 to subset2.

5 years ago[subset] post table to use _subset2
Qunxin Liu [Wed, 5 Jun 2019 23:51:31 +0000 (16:51 -0700)]
[subset] post table to use _subset2

5 years ago[subset] maxp table to use _subset2
Qunxin Liu [Tue, 4 Jun 2019 17:30:53 +0000 (10:30 -0700)]
[subset] maxp table to use _subset2

5 years agoThis makes minor changes to allow building HarfBuzz with
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.

5 years agoSlightly massage buffer-messaging commit
Behdad Esfahbod [Wed, 5 Jun 2019 19:13:49 +0000 (12:13 -0700)]
Slightly massage buffer-messaging commit

Saves a few bytes.

5 years agoMerge pull request #1755 from ebraminio/slim
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

5 years agoDon'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

5 years agoUse C++11 override keyword.
Bruce Mitchener [Mon, 3 Jun 2019 15:31:50 +0000 (22:31 +0700)]
Use C++11 override keyword.

5 years ago[myanmar] Make medial_group match the OT spec
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.

5 years ago[subset] Hmtx/vmtx tables to use subset2 and new iterator frameworks
Qunxin Liu [Wed, 29 May 2019 21:03:17 +0000 (14:03 -0700)]
[subset] Hmtx/vmtx tables to use subset2 and new iterator frameworks

5 years agoMerge pull request #1747 from harfbuzz/cff2-fdselect-fix
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

5 years agoadded parentheses to FDSelect::sanitize as well
Michiharu Ariza [Mon, 3 Jun 2019 23:40:03 +0000 (16:40 -0700)]
added parentheses to FDSelect::sanitize as well

5 years agoadded test data
Michiharu Ariza [Mon, 3 Jun 2019 23:31:41 +0000 (16:31 -0700)]
added test data

5 years agoparenthesized cond-exp in CFF2FDSelect::sanitize
Michiharu Ariza [Mon, 3 Jun 2019 22:52:23 +0000 (15:52 -0700)]
parenthesized cond-exp in CFF2FDSelect::sanitize

5 years agoReapply possible bsearch overflow fix
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.

5 years agotest: Use nullptr in C++ code. (#1744)
Bruce Mitchener [Mon, 3 Jun 2019 08:00:25 +0000 (15:00 +0700)]
test: Use nullptr in C++ code. (#1744)

5 years ago[ci] revert to xenial
Ebrahim Byagowi [Sun, 2 Jun 2019 09:21:26 +0000 (13:51 +0430)]
[ci] revert to xenial

It should've done in a branch

5 years agominor
Ebrahim Byagowi [Sat, 1 Jun 2019 20:06:30 +0000 (00:36 +0430)]
minor

5 years agoUse a unified bsearch (#1741)
Ebrahim Byagowi [Sat, 1 Jun 2019 19:49:57 +0000 (00:19 +0430)]
Use a unified bsearch (#1741)

A part of #593

5 years ago[ci] Downgrade Travis distribution upon Behdad request
Ebrahim Byagowi [Sat, 1 Jun 2019 16:55:09 +0000 (21:25 +0430)]
[ci] Downgrade Travis distribution upon Behdad request

5 years ago[ci] Install ragel on appveyor mingw bots
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

5 years ago[dwrite] Replace REPLACEME with release version the symbol had
Ebrahim Byagowi [Sat, 1 Jun 2019 06:25:37 +0000 (10:55 +0430)]
[dwrite] Replace REPLACEME with release version the symbol had

5 years ago2.5.1
Behdad Esfahbod [Sat, 1 Jun 2019 05:53:27 +0000 (22:53 -0700)]
2.5.1

5 years ago[docs] Fix dist
Behdad Esfahbod [Sat, 1 Jun 2019 05:56:37 +0000 (22:56 -0700)]
[docs] Fix dist

5 years agoFourth try at building VS bots
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

5 years ago[ci] Disable VS 2013
Behdad Esfahbod [Sat, 1 Jun 2019 05:12:23 +0000 (22:12 -0700)]
[ci] Disable VS 2013

That one doesn't even understand constexpr.

5 years agoThird try at fixing VS build
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

5 years agoSecond VS fix try
Behdad Esfahbod [Sat, 1 Jun 2019 04:41:40 +0000 (21:41 -0700)]
Second VS fix try

https://github.com/harfbuzz/harfbuzz/issues/1730

5 years agoTry fixing VS builds
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

5 years ago[ci] Enable other versions of Visual Studio
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

5 years agoWhitespace
Behdad Esfahbod [Sat, 1 Jun 2019 03:16:25 +0000 (20:16 -0700)]
Whitespace

5 years ago[subset] Correct calculation of max offset; fixes bug where loca would erroneously...
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

5 years ago[gsub] Minor
Behdad Esfahbod [Fri, 31 May 2019 22:48:54 +0000 (15:48 -0700)]
[gsub] Minor

5 years ago[gsub] Porting serialize to iterators
Behdad Esfahbod [Fri, 31 May 2019 22:38:11 +0000 (15:38 -0700)]
[gsub] Porting serialize to iterators

5 years ago[serialize] Pass offset to serialize_subset()
Behdad Esfahbod [Fri, 31 May 2019 21:39:32 +0000 (14:39 -0700)]
[serialize] Pass offset to serialize_subset()

5 years ago[serialize] Pass offset to serialize_copy()
Behdad Esfahbod [Fri, 31 May 2019 21:34:34 +0000 (14:34 -0700)]
[serialize] Pass offset to serialize_copy()

5 years ago[math] Rename HB_MATH_GLYPH_PART_FLAG_EXTENDER
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

5 years ago[ci] Clean up and add disabled bots of other msvc versions (#1733)
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)

5 years agoFix some typos.
Bruce Mitchener [Tue, 28 May 2019 14:50:17 +0000 (21:50 +0700)]
Fix some typos.

5 years ago[test] minor, fix copyright
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

5 years ago[test] minor style improve
Ebrahim Byagowi [Tue, 28 May 2019 09:18:39 +0000 (13:48 +0430)]
[test] minor style improve

5 years ago[use] Allow U+1A60 TAI THAM SIGN SAKOT after vowel
David Corbett [Sun, 26 May 2019 15:05:54 +0000 (11:05 -0400)]
[use] Allow U+1A60 TAI THAM SIGN SAKOT after vowel

5 years ago[atomic] Fix warning, second time
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

5 years ago[ucd] Update for latest packTab
Behdad Esfahbod [Sat, 25 May 2019 20:33:21 +0000 (16:33 -0400)]
[ucd] Update for latest packTab

5 years ago[ucd] Update for recent 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.

5 years ago[ci] minor
Ebrahim Byagowi [Sat, 25 May 2019 18:25:06 +0000 (22:55 +0430)]
[ci] minor

5 years ago[ci] minor
Ebrahim Byagowi [Sat, 25 May 2019 18:16:10 +0000 (22:46 +0430)]
[ci] minor

5 years ago[ci] Store dist-win result instead
Ebrahim Byagowi [Sat, 25 May 2019 18:03:02 +0000 (22:33 +0430)]
[ci] Store dist-win result instead

5 years ago[atomic] Fix warnings
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

5 years ago[mingw] Update instructions
Behdad Esfahbod [Sat, 25 May 2019 16:52:16 +0000 (12:52 -0400)]
[mingw] Update instructions

https://github.com/harfbuzz/harfbuzz/issues/1728

5 years ago[mutex] Prefer pthread over windows
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

5 years agoLook for pthread even if win32
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

5 years ago[mingw] Some more tweaks
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

5 years ago[mingw] Add "make dist-win" to toplevel Makefile
Behdad Esfahbod [Sat, 25 May 2019 16:35:09 +0000 (12:35 -0400)]
[mingw] Add "make dist-win" to toplevel Makefile

5 years ago[mingw] More
Behdad Esfahbod [Sat, 25 May 2019 16:16:28 +0000 (12:16 -0400)]
[mingw] More

5 years ago[ci] Remove --without-icu now that we have it in ./mingw{32,64} scripts
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

5 years ago[mingw] Force off ICU
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.

5 years ago[ci] Build mingw on Fedora and store .exe outputs
Ebrahim Byagowi [Sat, 25 May 2019 15:57:29 +0000 (20:27 +0430)]
[ci] Build mingw on Fedora and store .exe outputs

5 years ago[ming2] Update instructions
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.

5 years ago[mingw] Rename README.wine
Behdad Esfahbod [Sat, 25 May 2019 15:18:40 +0000 (11:18 -0400)]
[mingw] Rename README.wine

5 years ago[mingw] Update for recent change
Behdad Esfahbod [Sat, 25 May 2019 15:17:56 +0000 (11:17 -0400)]
[mingw] Update for recent change

5 years ago[mingw] Update for Fedora mingw installation location
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

5 years agoMerge pull request #1691 from n8willis/usermanual-shaping
n8willis [Sat, 25 May 2019 15:05:07 +0000 (16:05 +0100)]
Merge pull request #1691 from n8willis/usermanual-shaping

Usermanual: Add new chapters.

5 years agoUsermanual; minor.
Nathan Willis [Sat, 25 May 2019 11:26:50 +0000 (12:26 +0100)]
Usermanual; minor.

5 years ago[win] Add mingw-ldd.py
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

5 years ago2.5.0
Behdad Esfahbod [Fri, 24 May 2019 19:56:15 +0000 (15:56 -0400)]
2.5.0

5 years agoPut back Since: tags for hb_color_get_*
Behdad Esfahbod [Fri, 24 May 2019 19:41:34 +0000 (15:41 -0400)]
Put back Since: tags for hb_color_get_*

5 years agoUsermanual-buffers-chapter: trim out fallback-of-ufuncs talk and just mention that...
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.

5 years agoFix fuzzer crash testcase
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

5 years agoUsermanual-buffers-chapter: explain ICU fallback for Ufuncs.
Nathan Willis [Fri, 24 May 2019 19:13:35 +0000 (20:13 +0100)]
Usermanual-buffers-chapter: explain ICU fallback for Ufuncs.

5 years ago[use] Allow multiple FMs in a cluster
David Corbett [Sun, 19 May 2019 14:01:20 +0000 (10:01 -0400)]
[use] Allow multiple FMs in a cluster

5 years agoDon't compile in UCD if HB_NO_UCD defined
Behdad Esfahbod [Fri, 24 May 2019 16:37:53 +0000 (12:37 -0400)]
Don't compile in UCD if HB_NO_UCD defined

5 years ago[blob] Shuffle
Behdad Esfahbod [Fri, 24 May 2019 14:52:09 +0000 (10:52 -0400)]
[blob] Shuffle

5 years agoMerge pull request #1722 from googlefonts/glyf
rsheeter [Fri, 24 May 2019 18:22:41 +0000 (11:22 -0700)]
Merge pull request #1722 from googlefonts/glyf

[subset] Use iterators in glyf/loca subsetting

5 years ago[subset] Per code review, use hb_array to avoid duplicated type name
Rod Sheeter [Fri, 24 May 2019 17:52:49 +0000 (10:52 -0700)]
[subset] Per code review, use hb_array to avoid duplicated type name

5 years ago[subset] Cppcheck complaints
Rod Sheeter [Fri, 24 May 2019 17:39:56 +0000 (10:39 -0700)]
[subset] Cppcheck complaints

5 years ago[subset] Address @behdad review feedback
Rod Sheeter [Fri, 24 May 2019 17:10:12 +0000 (10:10 -0700)]
[subset] Address @behdad review feedback

5 years agoOne more
Behdad Esfahbod [Fri, 24 May 2019 01:37:17 +0000 (21:37 -0400)]
One more

5 years agoFix build after UCDN -> UCD
Behdad Esfahbod [Fri, 24 May 2019 01:36:42 +0000 (21:36 -0400)]
Fix build after UCDN -> UCD

5 years ago[ucd] Add URL to dependencies
Behdad Esfahbod [Fri, 24 May 2019 00:39:04 +0000 (20:39 -0400)]
[ucd] Add URL to dependencies