platform/upstream/libHarfBuzzSharp.git
5 years ago[iter] Port two more functions to daggers
Behdad Esfahbod [Sat, 30 Mar 2019 04:46:13 +0000 (21:46 -0700)]
[iter] Port two more functions to daggers

5 years agoFix pair signature
Behdad Esfahbod [Sat, 30 Mar 2019 04:45:49 +0000 (21:45 -0700)]
Fix pair signature

Oh well.  Again, who does fully understand what is right???

5 years ago[iter] Add hb_unzip()
Behdad Esfahbod [Sat, 30 Mar 2019 04:36:49 +0000 (21:36 -0700)]
[iter] Add hb_unzip()

5 years agoWhitespace
Behdad Esfahbod [Sat, 30 Mar 2019 04:17:08 +0000 (21:17 -0700)]
Whitespace

5 years ago[iter] Port two more loops to dagger
Behdad Esfahbod [Sat, 30 Mar 2019 04:16:30 +0000 (21:16 -0700)]
[iter] Port two more loops to dagger

5 years ago[iter] Remove unneeded &&
Behdad Esfahbod [Sat, 30 Mar 2019 04:14:20 +0000 (21:14 -0700)]
[iter] Remove unneeded &&

Next commit needs this.  I never fully get this, sigh.

5 years agoWhitespace
Behdad Esfahbod [Sat, 30 Mar 2019 04:06:10 +0000 (21:06 -0700)]
Whitespace

5 years agoRemove hb_assign()
Behdad Esfahbod [Sat, 30 Mar 2019 03:23:07 +0000 (20:23 -0700)]
Remove hb_assign()

Not needed anymore.  We just use operator= now.

5 years ago[C++11] Remove IntType::set() in favor of operator=
Behdad Esfahbod [Sat, 30 Mar 2019 03:17:46 +0000 (20:17 -0700)]
[C++11] Remove IntType::set() in favor of operator=

5 years ago[vector] Accept all types in push(...)
Behdad Esfahbod [Sat, 30 Mar 2019 03:05:19 +0000 (20:05 -0700)]
[vector] Accept all types in push(...)

Let assignment operator worry about conversion.

5 years ago[C++11] Use type aliases for template partial instantiations
Behdad Esfahbod [Sat, 30 Mar 2019 03:01:37 +0000 (20:01 -0700)]
[C++11] Use type aliases for template partial instantiations

5 years agoRemove unused line
Behdad Esfahbod [Sat, 30 Mar 2019 00:57:59 +0000 (17:57 -0700)]
Remove unused line

5 years ago[C++11] Replace BEInt.set() with operator=
Behdad Esfahbod [Sat, 30 Mar 2019 00:57:24 +0000 (17:57 -0700)]
[C++11] Replace BEInt.set() with operator=

5 years ago[C++11] Add operator= to IntType<>
Behdad Esfahbod [Sat, 30 Mar 2019 00:49:55 +0000 (17:49 -0700)]
[C++11] Add operator= to IntType<>

Now that we require C++11 we can do this.

5 years agoErr. Fixup C++11 polyfill removal
Behdad Esfahbod [Fri, 29 Mar 2019 22:59:04 +0000 (15:59 -0700)]
Err.  Fixup C++11 polyfill removal

Fixes 1d75db19fb5df139b9648ff3f5e6184a5c554345

5 years agoInline explicit_operator macro
Behdad Esfahbod [Fri, 29 Mar 2019 22:22:46 +0000 (15:22 -0700)]
Inline explicit_operator macro

Now that we require C++11, no need to macro.

5 years agoRemove C++<11 polyfill
Behdad Esfahbod [Fri, 29 Mar 2019 22:20:34 +0000 (15:20 -0700)]
Remove C++<11 polyfill

Leaving hb-atomic.hh as is since harmless and other projects might
copy from that file.

5 years agoMerge branch 'master' into iter
Behdad Esfahbod [Fri, 29 Mar 2019 21:37:04 +0000 (14:37 -0700)]
Merge branch 'master' into iter

5 years agoUpdate RELEASING
Behdad Esfahbod [Fri, 29 Mar 2019 21:30:02 +0000 (14:30 -0700)]
Update RELEASING

5 years ago[ci] Fix build
Behdad Esfahbod [Fri, 29 Mar 2019 21:14:55 +0000 (14:14 -0700)]
[ci] Fix build

5 years ago[dwrite] A new API, hb_directwrite_face_get_font_face (#1600)
Ebrahim Byagowi [Fri, 29 Mar 2019 20:00:56 +0000 (13:00 -0700)]
[dwrite] A new API, hb_directwrite_face_get_font_face (#1600)

Can be useful when using HarfBuzz for font loading and shaping
but using DirectWrite for rendering.

5 years agoReplace REPLACEME's left out of 2.4.0
Behdad Esfahbod [Fri, 29 Mar 2019 17:55:12 +0000 (10:55 -0700)]
Replace REPLACEME's left out of 2.4.0

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

5 years ago[docs] Remove unexisting section
Behdad Esfahbod [Fri, 29 Mar 2019 17:51:38 +0000 (10:51 -0700)]
[docs] Remove unexisting section

5 years ago[iter] Remove hb_len()
Behdad Esfahbod [Fri, 29 Mar 2019 17:46:44 +0000 (10:46 -0700)]
[iter] Remove hb_len()

Not planning on using it.  So remove.  Can add later if needed.

5 years agoAdd hb_hash()
Behdad Esfahbod [Fri, 29 Mar 2019 04:58:07 +0000 (21:58 -0700)]
Add hb_hash()

I don't like the hb_remove_reference() hack, but necessary.

5 years agoAdd hb_is_integer(T)
Behdad Esfahbod [Fri, 29 Mar 2019 04:44:12 +0000 (21:44 -0700)]
Add hb_is_integer(T)

5 years ago[iter] Add hb_len() function-object
Behdad Esfahbod [Fri, 29 Mar 2019 04:34:47 +0000 (21:34 -0700)]
[iter] Add hb_len() function-object

5 years agoMerge branch 'master' into iter
Behdad Esfahbod [Fri, 29 Mar 2019 04:26:50 +0000 (21:26 -0700)]
Merge branch 'master' into iter

5 years ago2.4.0
Behdad Esfahbod [Fri, 29 Mar 2019 04:21:26 +0000 (21:21 -0700)]
2.4.0

5 years agoUse internal bsearch() for language tags
Behdad Esfahbod [Fri, 29 Mar 2019 04:00:58 +0000 (21:00 -0700)]
Use internal bsearch() for language tags

Fixes https://github.com/harfbuzz/harfbuzz/pull/1639

5 years ago[indic] Add back medial-consonant to grammar
Behdad Esfahbod [Fri, 29 Mar 2019 03:50:04 +0000 (20:50 -0700)]
[indic] Add back medial-consonant to grammar

Fixes https://github.com/harfbuzz/harfbuzz/issues/1592

5 years ago[khmer] Add trailing Coeng to syllable grammar
Behdad Esfahbod [Fri, 29 Mar 2019 03:23:12 +0000 (20:23 -0700)]
[khmer] Add trailing Coeng to syllable grammar

Fixes https://github.com/harfbuzz/harfbuzz/issues/1541

5 years ago[ci] Tweak macos and psvita bots (#1638)
Ebrahim Byagowi [Thu, 28 Mar 2019 23:57:56 +0000 (16:57 -0700)]
[ci] Tweak macos and psvita bots (#1638)

* Add --with-graphite2 to macOS
* Add a dummy ragel script for psvita

5 years ago[ci] Use only CircleCI for macOS (#1637)
Ebrahim Byagowi [Thu, 28 Mar 2019 22:42:45 +0000 (15:42 -0700)]
[ci] Use only CircleCI for macOS (#1637)

5 years agoFix shell syntax error
Behdad Esfahbod [Thu, 28 Mar 2019 20:44:38 +0000 (13:44 -0700)]
Fix shell syntax error

Fixes https://github.com/harfbuzz/harfbuzz/issues/1612

5 years agoComment
Behdad Esfahbod [Thu, 28 Mar 2019 18:11:52 +0000 (11:11 -0700)]
Comment

5 years agoOverride USE category for Grantha and Tirhuta visargas to allow marks
punchcutter [Thu, 28 Mar 2019 06:12:58 +0000 (23:12 -0700)]
Override USE category for Grantha and Tirhuta visargas to allow marks

5 years agoDisable unwanted C++ definitions for MSVC.
Egor Pugin [Thu, 28 Mar 2019 16:06:12 +0000 (19:06 +0300)]
Disable unwanted C++ definitions for MSVC.

MSVC does not set __cplusplus to the latest standard and also it does not like redefining some keywords.

5 years ago[ci] remove ragel from psvita compile bot
Ebrahim Byagowi [Wed, 27 Mar 2019 12:08:39 +0000 (16:38 +0430)]
[ci] remove ragel from psvita compile bot

5 years ago[ci] Don't install ragel on cmake build bot images
Ebrahim Byagowi [Wed, 27 Mar 2019 11:51:47 +0000 (16:21 +0430)]
[ci] Don't install ragel on cmake build bot images

It is not needed anyway

5 years agoUse class templates for Null objects
Behdad Esfahbod [Tue, 26 Mar 2019 23:18:03 +0000 (16:18 -0700)]
Use class templates for Null objects

This allows partial-instantiating custom Null object for template Lookup<T>.
Before, this had to be handcoded per instantiation.  Apparently I missed
adding one for AAT::ankr.lookupTable, so it was getting the wrong (generic)
null for Lookup object, which is wrong and unsafe.

Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=944346

5 years ago[aat] Add missing check to ankr table
Behdad Esfahbod [Tue, 26 Mar 2019 23:17:45 +0000 (16:17 -0700)]
[aat] Add missing check to ankr table

Isn't absolutely needed.  But helps.

5 years ago[docs] Update
Behdad Esfahbod [Mon, 25 Mar 2019 22:15:37 +0000 (15:15 -0700)]
[docs] Update

5 years agoUpdate ChangeLog generation
Behdad Esfahbod [Mon, 25 Mar 2019 22:08:14 +0000 (15:08 -0700)]
Update ChangeLog generation

Let's see if I can make a release on Mac...

5 years agocompletely remove lines that are commented out
Qunxin Liu [Tue, 26 Mar 2019 17:37:24 +0000 (10:37 -0700)]
completely remove lines that are commented out

5 years agoupdate arguments in_populate_gids_to_retain() and _create_old_gid_to_new_gid_map()
Qunxin Liu [Tue, 26 Mar 2019 16:15:56 +0000 (09:15 -0700)]
update arguments in_populate_gids_to_retain() and _create_old_gid_to_new_gid_map()
so they don't use deprecated variable

5 years agotry to remove deprecated variable from struct definition
Qunxin Liu [Tue, 26 Mar 2019 02:59:37 +0000 (19:59 -0700)]
try to remove deprecated variable from struct definition

5 years agocff2 subset fuzzer issues (#1619)
Michiharu Ariza [Fri, 15 Mar 2019 20:46:25 +0000 (13:46 -0700)]
cff2 subset fuzzer issues (#1619)

* add check to FDArray::serialize

* add test files

* fix off by one

5 years agoAllow zero length ranges in sanitization (#1617)
Ebrahim Byagowi [Thu, 14 Mar 2019 23:49:42 +0000 (16:49 -0700)]
Allow zero length ranges in sanitization (#1617)

Fixes fvar table sanitization where there are no named instance
by allowing zero length ranges starting from Null() address.

Fixes #1607

5 years ago[ci] Cache FreeType build on Travis
Khaled Hosny [Thu, 14 Mar 2019 19:41:25 +0000 (21:41 +0200)]
[ci] Cache FreeType build on Travis

5 years agoCategorize U+09FC as Consonant_Placeholder
David Corbett [Tue, 12 Mar 2019 23:30:47 +0000 (19:30 -0400)]
Categorize U+09FC as Consonant_Placeholder

5 years ago[ci] Simplify and fix Travis CI macOS build
Khaled Hosny [Wed, 13 Mar 2019 11:21:12 +0000 (13:21 +0200)]
[ci] Simplify and fix Travis CI macOS build

5 years agoRemove redundant hb_ot_layout_lookup_would_substitute_fast
Behdad Esfahbod [Tue, 12 Mar 2019 01:09:51 +0000 (18:09 -0700)]
Remove redundant hb_ot_layout_lookup_would_substitute_fast

5 years ago[doc] Add placeholder since version for new flag
Khaled Hosny [Mon, 11 Mar 2019 23:09:27 +0000 (01:09 +0200)]
[doc] Add placeholder since version for new flag

5 years agoRemove obsolete overrides from Indic/USE scripts
David Corbett [Fri, 8 Mar 2019 14:46:48 +0000 (09:46 -0500)]
Remove obsolete overrides from Indic/USE scripts

5 years agoUpdate generation code for hb-ot-shape-complex-vowel-constraints.cc. Remove 'unlikely'
Eric Muller [Tue, 12 Feb 2019 19:41:16 +0000 (11:41 -0800)]
Update generation code for hb-ot-shape-complex-vowel-constraints.cc. Remove 'unlikely'

5 years agoFix coding style.
Eric Muller [Sun, 10 Feb 2019 12:31:41 +0000 (04:31 -0800)]
Fix coding style.

5 years agoAdd a flag to hb_buffer_t to prevent the insertion of dotted circles on incorrect...
Eric Muller [Sat, 9 Feb 2019 10:55:27 +0000 (02:55 -0800)]
Add a flag to hb_buffer_t to prevent the insertion of dotted circles on incorrect character sequences.

Current behavior unchanged if this flag is not set (and it isn't by default).

5 years agoAdd a macOS 10.14.3 fonts tests (#1608)
Ebrahim Byagowi [Thu, 7 Mar 2019 22:03:41 +0000 (01:33 +0330)]
Add a macOS 10.14.3 fonts tests (#1608)

5 years agoUpdate to Unicode 12.0.0
David Corbett [Wed, 6 Mar 2019 17:37:25 +0000 (12:37 -0500)]
Update to Unicode 12.0.0

5 years ago[indic] Remove superfluous ZWNJ check in final reorder of pre-base matras
Adrian Wong [Wed, 13 Feb 2019 10:04:46 +0000 (21:04 +1100)]
[indic] Remove superfluous ZWNJ check in final reorder of pre-base matras

5 years agoFix hb_atomic_* variants based on C++11 atomics
Stephan Bergmann [Tue, 5 Mar 2019 16:18:57 +0000 (17:18 +0100)]
Fix hb_atomic_* variants based on C++11 atomics

I stumbled over this when trying to upgrade the version of HarfBuzz used by
LibreOffice to 3.2.1 (see <https://gerrit.libreoffice.org/plugins/gitiles/core/
+/b7ddc514bff9bdf682abae537f990aa01dc2c0fb%5E!/> "Upgrade to latest
HarfBuzz 2.3.1"), where building with MSVC 2017 failed like

> c:\cygwin\home\tdf\lode\jenkins\workspace\gerrit_windows\workdir\unpackedtarball\harfbuzz\src\hb-atomic.hh(272): error C2440: 'reinterpret_cast': cannot convert from 'const int *' to 'std::atomic<int> *'
> c:\cygwin\home\tdf\lode\jenkins\workspace\gerrit_windows\workdir\unpackedtarball\harfbuzz\src\hb-atomic.hh(272): note: Conversion loses qualifiers
> c:\cygwin\home\tdf\lode\jenkins\workspace\gerrit_windows\workdir\unpackedtarball\harfbuzz\src\hb-atomic.hh(272): error C2227: left of '->load' must point to class/struct/union/generic type

(see <https://ci.libreoffice.org/job/gerrit_windows/29916/>).

I added all the necessary "const" to make building of HarfBuzz 2.3.1 with
MSVC 2017 succeed for me.  There may be more missing at least conceptually.

5 years agoFix offset drift in graphite integration
Martin Hosken [Mon, 4 Mar 2019 04:12:21 +0000 (11:12 +0700)]
Fix offset drift in graphite integration

5 years agoMinor, remove .editorconfig hack
Ebrahim Byagowi [Fri, 1 Mar 2019 23:54:49 +0000 (03:24 +0330)]
Minor, remove .editorconfig hack

As vscode is going to support it soon

5 years agoMake hb_subset_input_glyph_set () actually do something.
Garret Rieger [Fri, 1 Mar 2019 01:25:05 +0000 (17:25 -0800)]
Make hb_subset_input_glyph_set () actually do something.

5 years ago[dwrite] hb_directwrite_face_create, a new API
Ebrahim Byagowi [Fri, 22 Feb 2019 09:43:42 +0000 (13:13 +0330)]
[dwrite] hb_directwrite_face_create, a new API

It makes a hb_face_t from IDWriteFontFace, useful when using
DirectWrite facilities for font selection, loading and rendering
but using harfbuzz for shaping.

5 years agoFix or document unsupported font-feature-settings
David Corbett [Tue, 19 Feb 2019 03:30:40 +0000 (22:30 -0500)]
Fix or document unsupported font-feature-settings

5 years agoRemove Forcing Diagnostic Colours from CMakeLists.txt (#1597)
Joël R. Langlois [Mon, 25 Feb 2019 20:26:58 +0000 (15:26 -0500)]
Remove Forcing Diagnostic Colours from CMakeLists.txt (#1597)

Fixes https://github.com/harfbuzz/harfbuzz/issues/1596

5 years agominor edit
Michiharu Ariza [Wed, 20 Feb 2019 21:23:12 +0000 (13:23 -0800)]
minor edit

5 years agofix crash in hb_map_t::clear()
Michiharu Ariza [Wed, 20 Feb 2019 20:43:18 +0000 (12:43 -0800)]
fix crash in hb_map_t::clear()

in case called immediately after init()

5 years ago[doc] Move hb_variation_t to hb-common section
Khaled Hosny [Tue, 19 Feb 2019 19:14:11 +0000 (21:14 +0200)]
[doc] Move hb_variation_t to hb-common section

5 years ago[doc] Move feature_t and its function to hb-common
Khaled Hosny [Tue, 19 Feb 2019 17:27:28 +0000 (19:27 +0200)]
[doc] Move feature_t and its function to hb-common

It is rather confusing to have script, language etc, in hb-common section
while feature is in hb-shape section. I keep looking for it in hb-common
section then using the API index because I can’t find it there.

5 years agoTypo (#1588)
Evgeniy Reizner [Tue, 19 Feb 2019 16:35:00 +0000 (18:35 +0200)]
Typo (#1588)

Fixed a small typo.
[skip ci]

5 years ago[doc] Document hb_feature_from_string() syntax
Khaled Hosny [Tue, 19 Feb 2019 00:23:58 +0000 (02:23 +0200)]
[doc] Document hb_feature_from_string() syntax

Copied and edited from the util option documentation. The docbook table
syntax is too verbose, but that is the best I can come up with.

5 years agoWHitespace
Behdad Esfahbod [Sat, 16 Feb 2019 00:58:43 +0000 (16:58 -0800)]
WHitespace

5 years ago[iter] Add hb_all, hb_any, hb_none
Behdad Esfahbod [Sat, 16 Feb 2019 00:55:08 +0000 (16:55 -0800)]
[iter] Add hb_all, hb_any, hb_none

5 years ago[iter] Make hb_iter() into function-object
Behdad Esfahbod [Sat, 16 Feb 2019 00:11:32 +0000 (16:11 -0800)]
[iter] Make hb_iter() into function-object

5 years ago[iter] Make hb_map into function-object
Behdad Esfahbod [Sat, 16 Feb 2019 00:09:29 +0000 (16:09 -0800)]
[iter] Make hb_map into function-object

5 years agoMerge remote-tracking branch 'origin/master' into iter
Behdad Esfahbod [Sat, 16 Feb 2019 00:06:03 +0000 (16:06 -0800)]
Merge remote-tracking branch 'origin/master' into iter

5 years ago[iter] Add hb_enumerate() and use it
Behdad Esfahbod [Sat, 16 Feb 2019 00:05:36 +0000 (16:05 -0800)]
[iter] Add hb_enumerate() and use it

5 years agoMerge pull request #1557 from harfbuzz/cff-more-arrayof-fixes
Behdad Esfahbod [Fri, 15 Feb 2019 23:54:51 +0000 (15:54 -0800)]
Merge pull request #1557 from harfbuzz/cff-more-arrayof-fixes

CFF more arrayof fixes

5 years agoMerge pull request #1583 from harfbuzz/cff-retain-gids
Behdad Esfahbod [Fri, 15 Feb 2019 23:54:13 +0000 (15:54 -0800)]
Merge pull request #1583 from harfbuzz/cff-retain-gids

[subset] Implement --retain-gids with CFF/CFF2

5 years agoMerge branch 'master' into cff-more-arrayof-fixes
Michiharu Ariza [Fri, 15 Feb 2019 22:48:10 +0000 (14:48 -0800)]
Merge branch 'master' into cff-more-arrayof-fixes

5 years agoMerge branch 'master' into cff-retain-gids
Michiharu Ariza [Fri, 15 Feb 2019 22:47:38 +0000 (14:47 -0800)]
Merge branch 'master' into cff-retain-gids

5 years agoSupport xlclang++ on AIX. (#1584)
Martin [Fri, 15 Feb 2019 18:23:46 +0000 (19:23 +0100)]
Support xlclang++ on AIX. (#1584)

5 years ago[test] Minor
Behdad Esfahbod [Fri, 15 Feb 2019 04:46:13 +0000 (20:46 -0800)]
[test] Minor

5 years ago[algs] Test pair more
Behdad Esfahbod [Fri, 15 Feb 2019 04:15:07 +0000 (20:15 -0800)]
[algs] Test pair more

5 years ago[algs] Use universal references for hb_pair()
Behdad Esfahbod [Fri, 15 Feb 2019 03:37:57 +0000 (19:37 -0800)]
[algs] Use universal references for hb_pair()

Such that it carries lvalues inside.

5 years ago[iter] Use more
Behdad Esfahbod [Fri, 15 Feb 2019 01:10:04 +0000 (17:10 -0800)]
[iter] Use more

5 years ago[iter] Use in more places
Behdad Esfahbod [Thu, 14 Feb 2019 23:43:20 +0000 (15:43 -0800)]
[iter] Use in more places

5 years ago[iter] Use in a couple more intersects() calls
Behdad Esfahbod [Thu, 14 Feb 2019 23:14:37 +0000 (15:14 -0800)]
[iter] Use in a couple more intersects() calls

5 years ago[iter] Use in a couple more closure() calls
Behdad Esfahbod [Thu, 14 Feb 2019 23:13:16 +0000 (15:13 -0800)]
[iter] Use in a couple more closure() calls

5 years ago[iter] Add hb_drain
Behdad Esfahbod [Thu, 14 Feb 2019 22:04:05 +0000 (14:04 -0800)]
[iter] Add hb_drain

5 years ago[iter] A couple more hb_apply() + lambda uses
Behdad Esfahbod [Thu, 14 Feb 2019 21:45:52 +0000 (13:45 -0800)]
[iter] A couple more hb_apply() + lambda uses

5 years ago[iter] Use hb_apply() with lambda functions in a few places
Behdad Esfahbod [Thu, 14 Feb 2019 21:16:33 +0000 (13:16 -0800)]
[iter] Use hb_apply() with lambda functions in a few places

5 years ago[iter] Remove excess use of universal references
Behdad Esfahbod [Thu, 14 Feb 2019 19:53:40 +0000 (11:53 -0800)]
[iter] Remove excess use of universal references

Every time I have to study these to understand why a change is right..

5 years ago[iter] Add hb_apply()
Behdad Esfahbod [Thu, 14 Feb 2019 19:40:22 +0000 (11:40 -0800)]
[iter] Add hb_apply()

5 years agoMerge branch 'master' into iter
Behdad Esfahbod [Thu, 14 Feb 2019 19:34:55 +0000 (11:34 -0800)]
Merge branch 'master' into iter

5 years ago[CI] Install more packages
Behdad Esfahbod [Thu, 14 Feb 2019 19:34:28 +0000 (11:34 -0800)]
[CI] Install more packages

Wish there was a way to streamline this :(.

5 years ago[iter] Make hb_filter() a function-object
Behdad Esfahbod [Thu, 14 Feb 2019 19:10:13 +0000 (11:10 -0800)]
[iter] Make hb_filter() a function-object