platform/upstream/libHarfBuzzSharp.git
5 years ago[iter] Sketch new iterator design
Behdad Esfahbod [Fri, 21 Dec 2018 05:54:55 +0000 (00:54 -0500)]
[iter] Sketch new iterator design

5 years ago[iter] Add empty test
Behdad Esfahbod [Fri, 21 Dec 2018 05:23:34 +0000 (00:23 -0500)]
[iter] Add empty test

5 years agoRevert "Remove unused hb-iter.hh"
Behdad Esfahbod [Fri, 21 Dec 2018 05:08:05 +0000 (00:08 -0500)]
Revert "Remove unused hb-iter.hh"

This reverts commit 969ff3c7aadbe721cdd414488eb170433f10d00c.

5 years ago[vector] Add operator bool
Behdad Esfahbod [Fri, 21 Dec 2018 04:15:49 +0000 (23:15 -0500)]
[vector] Add operator bool

5 years agoRename
Behdad Esfahbod [Fri, 21 Dec 2018 04:14:24 +0000 (23:14 -0500)]
Rename

5 years agoRemove unused typedef
Behdad Esfahbod [Fri, 21 Dec 2018 04:13:36 +0000 (23:13 -0500)]
Remove unused typedef

5 years ago2.3.0
Behdad Esfahbod [Fri, 21 Dec 2018 02:48:57 +0000 (21:48 -0500)]
2.3.0

5 years ago[serializer] Add operator <<
Behdad Esfahbod [Thu, 20 Dec 2018 20:54:17 +0000 (15:54 -0500)]
[serializer] Add operator <<

Not sure if we are going to use it.  But might incentivize us to.

5 years agoAdd hb_assign(obj, value)
Behdad Esfahbod [Thu, 20 Dec 2018 20:38:59 +0000 (15:38 -0500)]
Add hb_assign(obj, value)

5 years ago[serialize] Adjust ClassDef
Behdad Esfahbod [Thu, 20 Dec 2018 17:26:30 +0000 (12:26 -0500)]
[serialize] Adjust ClassDef

[skip ci]

5 years agoFix code on big-endian gcc / clang
Behdad Esfahbod [Thu, 20 Dec 2018 16:48:45 +0000 (11:48 -0500)]
Fix code on big-endian gcc / clang

Ouch!  We need a bigendian bot...

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

5 years agoMinor [skip ci]
Behdad Esfahbod [Thu, 20 Dec 2018 03:28:16 +0000 (22:28 -0500)]
Minor [skip ci]

5 years ago[saitnize] Minor
Behdad Esfahbod [Thu, 20 Dec 2018 02:07:53 +0000 (21:07 -0500)]
[saitnize] Minor

5 years agoFix build on older Visual Studio versions (#1499)
fanc999 [Thu, 20 Dec 2018 03:26:54 +0000 (11:26 +0800)]
Fix build on older Visual Studio versions (#1499)

* src/hb-cff-interp-dict-common.hh: Use ull for unsigned int64_t

The llu suffix does not work for older Visual Studio versions
(pre-2013), but ull works for all the compilers that we attempt to
support.

* test/api: Fix build on pre-C99 compilers

Ensure variables are declared at the top of the block.

* src/hb-dsalgs.hh: Add specialization for hb_is_signed<> for __int8

Pre-Visual Studio 2010 does not consider __int8 (which is typedef'ed to
int8_t) to be equivilant to signed char, so the compiler cannot find the
corresponding hb_is_signed<> specialization that is needed.

The interesting thing is unsigned __int8 is considered to be equivilant
to unsigned char, so as the other types (short, int, long) that we look
for here, so only the specialization for __int8 is added here.

This will fix builds on Visual Studio 2008 at least.

5 years ago[sanitize] Use hb_static_size instead of ::static_size
Behdad Esfahbod [Thu, 20 Dec 2018 02:05:00 +0000 (21:05 -0500)]
[sanitize] Use hb_static_size instead of ::static_size

https://github.com/harfbuzz/harfbuzz/issues/1496#issuecomment-448818112

5 years ago[test] Fix test-name-table.cc leak issue
Ebrahim Byagowi [Wed, 19 Dec 2018 17:48:30 +0000 (21:18 +0330)]
[test] Fix test-name-table.cc leak issue

Spotted it accidentally but wanted to see if is anything serious so went for fixing it

5 years ago[arrays] Add hb_ubytes_t for unsigned char
Behdad Esfahbod [Wed, 19 Dec 2018 03:11:23 +0000 (22:11 -0500)]
[arrays] Add hb_ubytes_t for unsigned char

5 years ago[arrays] Remove hb_supplier_t<>
Behdad Esfahbod [Tue, 18 Dec 2018 21:49:08 +0000 (16:49 -0500)]
[arrays] Remove hb_supplier_t<>

5 years ago[serialize] Propagate error from hb-face
Behdad Esfahbod [Tue, 18 Dec 2018 18:23:32 +0000 (13:23 -0500)]
[serialize] Propagate error from hb-face

5 years ago[serialize] Streamline error propagation
Behdad Esfahbod [Tue, 18 Dec 2018 18:22:17 +0000 (13:22 -0500)]
[serialize] Streamline error propagation

5 years agoRemove unused hb-iter.hh
Behdad Esfahbod [Tue, 18 Dec 2018 03:43:00 +0000 (22:43 -0500)]
Remove unused hb-iter.hh

The ideas there are all part of hb-array.hh now.  To be determined how we
want to use generic iterator patterns.

5 years ago[arrays] Minor tweaks to hb_supplier_t
Behdad Esfahbod [Tue, 18 Dec 2018 03:41:04 +0000 (22:41 -0500)]
[arrays] Minor tweaks to hb_supplier_t

I think I like to keep this hb_supplier_t thing separately from hb_array_t.

5 years ago[arrays] Rename Supplier to hb_supplier_t
Behdad Esfahbod [Tue, 18 Dec 2018 03:36:23 +0000 (22:36 -0500)]
[arrays] Rename Supplier to hb_supplier_t

5 years agoHide hb_addressof()
Behdad Esfahbod [Tue, 18 Dec 2018 02:55:33 +0000 (21:55 -0500)]
Hide hb_addressof()

5 years agoEnable __builtin_* on clang
Behdad Esfahbod [Tue, 18 Dec 2018 01:34:51 +0000 (20:34 -0500)]
Enable __builtin_* on clang

We'll see which old clang versions this breaks...

5 years agoAdd hb_addressof() and use it to fix bug after hb_bytes_t merge
Behdad Esfahbod [Tue, 18 Dec 2018 01:23:26 +0000 (20:23 -0500)]
Add hb_addressof() and use it to fix bug after hb_bytes_t merge

We cannot take address hb_bytes_t direction.  We need to use the
newly added hb_addressof(), ala std::addressof().

5 years agoEnable system extensions in hb.hh
Behdad Esfahbod [Mon, 17 Dec 2018 23:27:36 +0000 (18:27 -0500)]
Enable system extensions in hb.hh

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

5 years agoFix Solaris use after free (#1495)
prrace [Mon, 17 Dec 2018 22:59:37 +0000 (14:59 -0800)]
Fix Solaris use after free (#1495)

5 years agoRemove define GNU_SOURCE
Behdad Esfahbod [Mon, 17 Dec 2018 22:56:10 +0000 (17:56 -0500)]
Remove define GNU_SOURCE

Not needed.  We get it in our config.h automatically thanks to
AC_USE_SYSTEM_EXTENSIONS.  Let's see whose build it breaks...
If we end up putting it back, we should add other things from
that macro and remove the macro.

5 years agoFix more warnings
Behdad Esfahbod [Mon, 17 Dec 2018 22:19:42 +0000 (17:19 -0500)]
Fix more warnings

5 years agoFix Solaris Trailing comma in enum warnings (#1490)
prrace [Mon, 17 Dec 2018 22:18:47 +0000 (14:18 -0800)]
Fix Solaris Trailing comma in enum warnings (#1490)

5 years agoLower coretext_aat shaper priority (#1488)
Ebrahim Byagowi [Mon, 17 Dec 2018 18:01:43 +0000 (21:31 +0330)]
Lower coretext_aat shaper priority (#1488)

Related to https://github.com/harfbuzz/harfbuzz/issues/1478

5 years agoRemove redundant void from C++ sources (#1486)
Ebrahim Byagowi [Mon, 17 Dec 2018 18:01:01 +0000 (21:31 +0330)]
Remove redundant void from C++ sources (#1486)

5 years agoMinor, fix two more ArrayOf incorrect operator logic
Ebrahim Byagowi [Mon, 17 Dec 2018 16:37:04 +0000 (20:07 +0330)]
Minor, fix two more ArrayOf incorrect operator logic

5 years ago[arrays] Minor fix
Behdad Esfahbod [Mon, 17 Dec 2018 15:44:14 +0000 (10:44 -0500)]
[arrays] Minor fix

5 years ago[array] Add cast operator to add const to Type
Behdad Esfahbod [Mon, 17 Dec 2018 05:39:30 +0000 (00:39 -0500)]
[array] Add cast operator to add const to Type

In lieu of constructor removed in previous commit.

5 years ago[array] Remove problematic constructor
Behdad Esfahbod [Mon, 17 Dec 2018 05:38:13 +0000 (00:38 -0500)]
[array] Remove problematic constructor

5 years ago[array] Add arithmetic operators
Behdad Esfahbod [Mon, 17 Dec 2018 05:20:19 +0000 (00:20 -0500)]
[array] Add arithmetic operators

5 years ago[array] Return Crap instead of Null if Type is not const
Behdad Esfahbod [Mon, 17 Dec 2018 05:09:06 +0000 (00:09 -0500)]
[array] Return Crap instead of Null if Type is not const

Ouch!

5 years ago[array] Add operator *
Behdad Esfahbod [Mon, 17 Dec 2018 05:06:40 +0000 (00:06 -0500)]
[array] Add operator *

5 years ago[array] Add constructor from fixed-size array
Behdad Esfahbod [Mon, 17 Dec 2018 05:02:42 +0000 (00:02 -0500)]
[array] Add constructor from fixed-size array

5 years ago[array] Organize
Behdad Esfahbod [Mon, 17 Dec 2018 04:57:27 +0000 (23:57 -0500)]
[array] Organize

5 years ago[arrays] Reduce Supplier<> even further
Behdad Esfahbod [Mon, 17 Dec 2018 04:52:17 +0000 (23:52 -0500)]
[arrays] Reduce Supplier<> even further

5 years agoWhitespace
Behdad Esfahbod [Mon, 17 Dec 2018 04:47:56 +0000 (23:47 -0500)]
Whitespace

5 years ago[array] Add operator +=
Behdad Esfahbod [Mon, 17 Dec 2018 04:45:07 +0000 (23:45 -0500)]
[array] Add operator +=

5 years ago[array] Add constructor from hb_array_t<const Type>
Behdad Esfahbod [Mon, 17 Dec 2018 04:43:17 +0000 (23:43 -0500)]
[array] Add constructor from hb_array_t<const Type>

5 years ago[arrays] Move Supplier<> to hb-array.hh
Behdad Esfahbod [Mon, 17 Dec 2018 04:38:51 +0000 (23:38 -0500)]
[arrays] Move Supplier<> to hb-array.hh

5 years ago[arrays] Remove unnecessary constructor from Supplier<>
Behdad Esfahbod [Mon, 17 Dec 2018 04:33:03 +0000 (23:33 -0500)]
[arrays] Remove unnecessary constructor from Supplier<>

Looks like operator hb_array_t<> from vector works here. :)

5 years ago[arrays] Start moving Supplier<> to hb_array_t<>
Behdad Esfahbod [Mon, 17 Dec 2018 04:31:19 +0000 (23:31 -0500)]
[arrays] Start moving Supplier<> to hb_array_t<>

5 years ago[arrays] Remove unused stride from Supplier
Behdad Esfahbod [Mon, 17 Dec 2018 03:30:44 +0000 (22:30 -0500)]
[arrays] Remove unused stride from Supplier

5 years ago[arrays] Remove need of stride in Supplier<>
Behdad Esfahbod [Mon, 17 Dec 2018 03:29:40 +0000 (22:29 -0500)]
[arrays] Remove need of stride in Supplier<>

5 years ago[array] Remove custom hb_bytes_t implementation
Behdad Esfahbod [Mon, 17 Dec 2018 01:40:07 +0000 (20:40 -0500)]
[array] Remove custom hb_bytes_t implementation

5 years ago[arrays] Minor
Behdad Esfahbod [Mon, 17 Dec 2018 01:35:11 +0000 (20:35 -0500)]
[arrays] Minor

5 years ago[array] Minor
Behdad Esfahbod [Mon, 17 Dec 2018 01:20:35 +0000 (20:20 -0500)]
[array] Minor

5 years ago[array] Move hb_array_t and related types to hb-array.hh
Behdad Esfahbod [Mon, 17 Dec 2018 01:07:44 +0000 (20:07 -0500)]
[array] Move hb_array_t and related types to hb-array.hh

5 years agoMinor change to explicit_operator aesthetics
Behdad Esfahbod [Sun, 16 Dec 2018 19:27:43 +0000 (14:27 -0500)]
Minor change to explicit_operator aesthetics

5 years agoRemove redundant 'inline' from methods (#1483)
Ebrahim Byagowi [Sun, 16 Dec 2018 19:08:10 +0000 (22:38 +0330)]
Remove redundant 'inline' from methods (#1483)

5 years agoWhitespace
Behdad Esfahbod [Sun, 16 Dec 2018 02:00:55 +0000 (21:00 -0500)]
Whitespace

5 years agoWhitespace
Behdad Esfahbod [Sat, 15 Dec 2018 18:02:13 +0000 (13:02 -0500)]
Whitespace

5 years ago[subset] Actually subset GDEF
Behdad Esfahbod [Fri, 14 Dec 2018 00:39:59 +0000 (19:39 -0500)]
[subset] Actually subset GDEF

5 years ago[subset] Fix up ClassDef some more
Behdad Esfahbod [Thu, 13 Dec 2018 23:37:37 +0000 (18:37 -0500)]
[subset] Fix up ClassDef some more

5 years ago[subset] Fix ClassDefFormat1 subsetting
Behdad Esfahbod [Thu, 13 Dec 2018 23:32:04 +0000 (18:32 -0500)]
[subset] Fix ClassDefFormat1 subsetting

5 years ago[subset] Sketch GDEF subsetting
Behdad Esfahbod [Thu, 13 Dec 2018 23:10:48 +0000 (18:10 -0500)]
[subset] Sketch GDEF subsetting

5 years ago[subset] Implement for ClassDef
Behdad Esfahbod [Thu, 13 Dec 2018 22:48:42 +0000 (17:48 -0500)]
[subset] Implement for ClassDef

5 years agoMinor
Behdad Esfahbod [Thu, 13 Dec 2018 21:40:01 +0000 (16:40 -0500)]
Minor

5 years ago[serialize] Implement for ClassDef
Behdad Esfahbod [Thu, 13 Dec 2018 21:01:45 +0000 (16:01 -0500)]
[serialize] Implement for ClassDef

5 years ago[serialize] Implement for ClassDefFormat2
Behdad Esfahbod [Thu, 13 Dec 2018 20:57:12 +0000 (15:57 -0500)]
[serialize] Implement for ClassDefFormat2

5 years ago[serialize] Implement for ClassDefFormat1
Behdad Esfahbod [Thu, 13 Dec 2018 20:50:13 +0000 (15:50 -0500)]
[serialize] Implement for ClassDefFormat1

5 years ago[subset] Minor
Behdad Esfahbod [Thu, 13 Dec 2018 02:21:26 +0000 (21:21 -0500)]
[subset] Minor

5 years ago[CFF] bad offset in Index (#1476)
Michiharu Ariza [Thu, 13 Dec 2018 02:08:15 +0000 (18:08 -0800)]
[CFF] bad offset in Index (#1476)

* Update hb-ot-cff-common.hh

* fix bug

* bummer fix wasn't hit. refix

* additional sanity check

* Added test cases for oss-fuzz issues 11805, 11806

5 years ago[CFF] check out of range FD index (#1477)
Michiharu Ariza [Thu, 13 Dec 2018 01:36:01 +0000 (17:36 -0800)]
[CFF] check out of range FD index (#1477)

* add fd index checks to subr subsetter

also added oss-fuzz test case

* undid SubrSubsetParam::is_valid

because already validated by SubrClosures.valid

5 years ago[util/hb-subset] Add --layout to keep GDEF/GSUB/GPOS
Behdad Esfahbod [Wed, 12 Dec 2018 16:32:57 +0000 (11:32 -0500)]
[util/hb-subset] Add --layout to keep GDEF/GSUB/GPOS

Will become default and option removed in the future.

5 years ago[dispatch] Minor
Behdad Esfahbod [Wed, 12 Dec 2018 15:07:38 +0000 (10:07 -0500)]
[dispatch] Minor

5 years ago[sanitize] Fix sanitizing sublookup array
Behdad Esfahbod [Wed, 12 Dec 2018 14:56:47 +0000 (09:56 -0500)]
[sanitize] Fix sanitizing sublookup array

5 years ago[dispatch] Minor
Behdad Esfahbod [Wed, 12 Dec 2018 14:50:18 +0000 (09:50 -0500)]
[dispatch] Minor

5 years agoRevert "Minor fix re sanitize of Lookup subtables"
Behdad Esfahbod [Wed, 12 Dec 2018 14:44:30 +0000 (09:44 -0500)]
Revert "Minor fix re sanitize of Lookup subtables"

This reverts commit 7146718bef81492e13aede0a2801cda1da41ce35.

Fixing differently.

5 years agominor style fix, use void in methods on no argument
Ebrahim Byagowi [Wed, 12 Dec 2018 11:44:37 +0000 (15:14 +0330)]
minor style fix, use void in methods on no argument

5 years agoMerge pull request #1474 from fanc999/master.msvc
Ebrahim Byagowi [Wed, 12 Dec 2018 09:14:06 +0000 (12:44 +0330)]
Merge pull request #1474 from fanc999/master.msvc

Few fixes for Visual Studio builds

5 years agoMinor fix re sanitize of Lookup subtables
Behdad Esfahbod [Wed, 12 Dec 2018 04:44:29 +0000 (23:44 -0500)]
Minor fix re sanitize of Lookup subtables

We were dereferencing Null pointers and trying to sanitize them,
which is not necessary...

5 years agoMinor
Behdad Esfahbod [Wed, 12 Dec 2018 04:07:48 +0000 (23:07 -0500)]
Minor

5 years ago[subset] Map glyphs during SingleSubst subsetting
Behdad Esfahbod [Wed, 12 Dec 2018 03:53:58 +0000 (22:53 -0500)]
[subset] Map glyphs during SingleSubst subsetting

Ha!

5 years ago[subset] Minor
Behdad Esfahbod [Wed, 12 Dec 2018 03:48:27 +0000 (22:48 -0500)]
[subset] Minor

5 years ago[serialize] Break down assert
Behdad Esfahbod [Wed, 12 Dec 2018 02:18:47 +0000 (21:18 -0500)]
[serialize] Break down assert

5 years agoMinor
Behdad Esfahbod [Tue, 11 Dec 2018 22:28:04 +0000 (17:28 -0500)]
Minor

5 years ago[CFF] oss-fuzz issue 11690 ASSERT: substr.offset >= opStart (#1461)
Michiharu Ariza [Tue, 11 Dec 2018 20:21:24 +0000 (12:21 -0800)]
[CFF] oss-fuzz issue 11690 ASSERT: substr.offset >= opStart (#1461)

* fix oss-fuzz 11690: substr.offset >= opStart

detect recursive subroutine call & handle as error

* fix build failure

* add minimized test case for oss-fuzz 11690

* removed asserts

5 years agominimize use of assert: removed or changed to error handling (#1467)
Michiharu Ariza [Tue, 11 Dec 2018 20:20:20 +0000 (12:20 -0800)]
minimize use of assert: removed or changed to error handling (#1467)

5 years ago[ci] Fix Travis macOS bot ICU issue (#1472)
Ebrahim Byagowi [Tue, 11 Dec 2018 19:32:52 +0000 (23:02 +0330)]
[ci] Fix Travis macOS bot ICU issue (#1472)

5 years ago[ucdn] Fix header
👻 [Tue, 11 Dec 2018 18:38:05 +0000 (13:38 -0500)]
[ucdn] Fix header

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

5 years agoCorrect REPLACEMENT CHARACTER's code point to FFFD (#1471)
David Corbett [Tue, 11 Dec 2018 18:19:17 +0000 (13:19 -0500)]
Correct REPLACEMENT CHARACTER's code point to FFFD (#1471)

5 years agotest/api: Fix building on pre-C99 compilers
Chun-wei Fan [Tue, 11 Dec 2018 17:32:01 +0000 (01:32 +0800)]
test/api: Fix building on pre-C99 compilers

Ensure variables are declared at the top of the block.

5 years agoCMake: Fix Introspection builds
Chun-wei Fan [Tue, 11 Dec 2018 17:23:53 +0000 (01:23 +0800)]
CMake: Fix Introspection builds

We need to add -DHB_AAT_H and -DHB_AAT_H_IN to the flags that are passed
to g-ir-scanner, so that introspection builds can proceed normally.

5 years ago[glyf] minor
Ebrahim Byagowi [Sat, 8 Dec 2018 10:27:39 +0000 (13:57 +0330)]
[glyf] minor

5 years ago[os2] Move typometrics detection logic to the table (#1465)
Ebrahim Byagowi [Sat, 8 Dec 2018 10:10:44 +0000 (13:40 +0330)]
[os2] Move typometrics detection logic to the table (#1465)

5 years agoApply non-controversial parts of ot-style (#1464)
Ebrahim Byagowi [Sat, 8 Dec 2018 06:50:25 +0000 (10:20 +0330)]
Apply non-controversial parts of ot-style (#1464)

Things to be used in https://github.com/harfbuzz/harfbuzz/pull/1459

5 years agofix for issue #1447 (#1462)
Michiharu Ariza [Sat, 8 Dec 2018 04:49:39 +0000 (20:49 -0800)]
fix for issue #1447 (#1462)

Added case for OpCode_BaseFontName. This opcode in spec but practically unused.
Added a comment for default case which can't be hit

5 years ago[fdsc] minor
Ebrahim Byagowi [Fri, 7 Dec 2018 19:04:12 +0000 (22:34 +0330)]
[fdsc] minor

5 years ago[CFF] Refix oss-fuzz 11714: set_blends (PR #1458) (#1460)
Michiharu Ariza [Thu, 6 Dec 2018 21:36:26 +0000 (13:36 -0800)]
[CFF] Refix oss-fuzz 11714: set_blends (PR #1458) (#1460)

* pass subarray of stack to set_blends

* get_subarray to return a value, not ref

* restored error check (with tweak)

5 years agoFix likely check
Behdad Esfahbod [Thu, 6 Dec 2018 18:27:37 +0000 (10:27 -0800)]
Fix likely check

Ouch!

5 years agoAdd default value to first argument of sub_array()
Behdad Esfahbod [Thu, 6 Dec 2018 18:26:32 +0000 (10:26 -0800)]
Add default value to first argument of sub_array()

5 years agoAdd sub_array to hb_vector_t
Behdad Esfahbod [Thu, 6 Dec 2018 18:21:06 +0000 (10:21 -0800)]
Add sub_array to hb_vector_t