platform/upstream/libHarfBuzzSharp.git
5 years agoreject nested seac
Michiharu Ariza [Thu, 15 Nov 2018 20:10:23 +0000 (12:10 -0800)]
reject nested seac

5 years agoMerge branch 'master' into cff-subset
Michiharu Ariza [Thu, 15 Nov 2018 19:03:46 +0000 (11:03 -0800)]
Merge branch 'master' into cff-subset

5 years agofixed CFF1 subset of std encoding & non-std charset combo
Michiharu Ariza [Thu, 15 Nov 2018 18:54:15 +0000 (10:54 -0800)]
fixed CFF1 subset of std encoding & non-std charset combo

5 years ago[base] Add TODO items
Behdad Esfahbod [Thu, 15 Nov 2018 07:48:50 +0000 (02:48 -0500)]
[base] Add TODO items

5 years ago[shaper] Rename
Behdad Esfahbod [Thu, 15 Nov 2018 02:08:54 +0000 (21:08 -0500)]
[shaper] Rename

5 years ago[ot-shape] Move code around
Behdad Esfahbod [Wed, 14 Nov 2018 19:49:34 +0000 (14:49 -0500)]
[ot-shape] Move code around

5 years agoMerge branch 'master' into cff-subset
Michiharu Ariza [Wed, 14 Nov 2018 21:54:07 +0000 (13:54 -0800)]
Merge branch 'master' into cff-subset

5 years agoImplemented seac for extents & subset along with API tests
Michiharu Ariza [Wed, 14 Nov 2018 21:38:03 +0000 (13:38 -0800)]
Implemented seac for extents & subset along with API tests

5 years ago[STAT] Add table parsing (#1384)
Ebrahim Byagowi [Wed, 14 Nov 2018 18:43:50 +0000 (22:13 +0330)]
[STAT] Add table parsing (#1384)

5 years ago[hmtx] Fix signedness issue
Behdad Esfahbod [Wed, 14 Nov 2018 14:56:30 +0000 (09:56 -0500)]
[hmtx] Fix signedness issue

Fixes https://github.com/harfbuzz/harfbuzz/issues/1248#issuecomment-438689499

5 years ago[ot-color/svg] Note that it can be gzipped
Ebrahim Byagowi [Wed, 14 Nov 2018 08:43:16 +0000 (12:13 +0330)]
[ot-color/svg] Note that it can be gzipped

5 years agoMerge pull request #1383 from punchcutter/master
Ebrahim Byagowi [Wed, 14 Nov 2018 04:59:17 +0000 (08:29 +0330)]
Merge pull request #1383 from punchcutter/master

Add test for https://github.com/harfbuzz/harfbuzz/issues/1379

5 years agoAdd Grantha test
punchcutter [Wed, 14 Nov 2018 04:44:27 +0000 (20:44 -0800)]
Add Grantha test

5 years ago[aat] Disable fallback mark advance zeroing and positioning if morx applied
Behdad Esfahbod [Wed, 14 Nov 2018 02:10:10 +0000 (21:10 -0500)]
[aat] Disable fallback mark advance zeroing and positioning if morx applied

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

5 years agoDon't retry creating again and again in lazy_loader if create failed
Behdad Esfahbod [Wed, 14 Nov 2018 01:48:46 +0000 (20:48 -0500)]
Don't retry creating again and again in lazy_loader if create failed

Still does that if get_null() returns nullptr.  Our shaper data objects
are like that.  Shrug.

5 years agoMerge pull request #1382 from punchcutter/master
Behdad Esfahbod [Wed, 14 Nov 2018 00:50:25 +0000 (19:50 -0500)]
Merge pull request #1382 from punchcutter/master

Change USE Category for Grantha Virama

5 years agoMerge pull request #1380 from kbrow1i/cygwin
Behdad Esfahbod [Wed, 14 Nov 2018 00:49:06 +0000 (19:49 -0500)]
Merge pull request #1380 from kbrow1i/cygwin

Don't use Win32 API on Cygwin

5 years agoChange USE Category for Grantha Virama
punchcutter [Tue, 13 Nov 2018 20:51:10 +0000 (12:51 -0800)]
Change USE Category for Grantha Virama
https://github.com/harfbuzz/harfbuzz/issues/1379

5 years agoFix Windows build
Behdad Esfahbod [Tue, 13 Nov 2018 18:01:13 +0000 (13:01 -0500)]
Fix Windows build

5 years agoUse atomic ints for upem and num_glyphs on face
Behdad Esfahbod [Tue, 13 Nov 2018 16:54:33 +0000 (11:54 -0500)]
Use atomic ints for upem and num_glyphs on face

5 years agoMake atomic types' internal values non-mutable
Behdad Esfahbod [Tue, 13 Nov 2018 16:45:12 +0000 (11:45 -0500)]
Make atomic types' internal values non-mutable

This resulted from confusion previously...

5 years ago[ot-face] Add 'head' table
Behdad Esfahbod [Tue, 13 Nov 2018 16:41:29 +0000 (11:41 -0500)]
[ot-face] Add 'head' table

5 years agoDon't use Win32 API on Cygwin
Ken Brown [Tue, 13 Nov 2018 02:05:39 +0000 (21:05 -0500)]
Don't use Win32 API on Cygwin

Cygwin is a Posix platform to the extent possible.  It should use the
Posix API except in special circumstances.

5 years ago[shape-plan] Remove unused code
Behdad Esfahbod [Tue, 13 Nov 2018 00:46:37 +0000 (19:46 -0500)]
[shape-plan] Remove unused code

5 years ago[shape-plan] Implement fine-grained caching plans with user-features
Behdad Esfahbod [Tue, 13 Nov 2018 00:26:01 +0000 (19:26 -0500)]
[shape-plan] Implement fine-grained caching plans with user-features

Only tag, value, and global-ness of features are considered, not their
start/end offsets.

5 years ago[shape-plan] Cache shape plans with variations based on variation indices
Behdad Esfahbod [Mon, 12 Nov 2018 23:48:10 +0000 (18:48 -0500)]
[shape-plan] Cache shape plans with variations based on variation indices

5 years ago[shape-plan] Refactor more
Behdad Esfahbod [Mon, 12 Nov 2018 23:18:20 +0000 (18:18 -0500)]
[shape-plan] Refactor more

5 years ago[shape-plan] Only use shape-plan key to initialize hb_ot_shape_plan_t
Behdad Esfahbod [Mon, 12 Nov 2018 23:05:02 +0000 (18:05 -0500)]
[shape-plan] Only use shape-plan key to initialize hb_ot_shape_plan_t

Such that we don't accidentally use info not in the cache key.

5 years ago[shape-plan] Minor
Behdad Esfahbod [Mon, 12 Nov 2018 22:50:30 +0000 (17:50 -0500)]
[shape-plan] Minor

5 years ago[shape-plan] Refactor some more
Behdad Esfahbod [Mon, 12 Nov 2018 22:49:15 +0000 (17:49 -0500)]
[shape-plan] Refactor some more

5 years ago[shape-plan] Refactor more
Behdad Esfahbod [Mon, 12 Nov 2018 22:27:34 +0000 (17:27 -0500)]
[shape-plan] Refactor more

5 years ago[shape-plan] Turn hb_shape_plan_proposal_t into hb_shape_plan_key_t
Behdad Esfahbod [Mon, 12 Nov 2018 22:19:45 +0000 (17:19 -0500)]
[shape-plan] Turn hb_shape_plan_proposal_t into hb_shape_plan_key_t

And include it in hb_shape_plan_t itself.

5 years agoAdd hb_memcmp()
Behdad Esfahbod [Mon, 12 Nov 2018 21:27:08 +0000 (16:27 -0500)]
Add hb_memcmp()

5 years ago[shape-plan] Minor
Behdad Esfahbod [Mon, 12 Nov 2018 21:15:26 +0000 (16:15 -0500)]
[shape-plan] Minor

5 years ago[shaper] Rename
Behdad Esfahbod [Mon, 12 Nov 2018 21:05:09 +0000 (16:05 -0500)]
[shaper] Rename

5 years ago[fuzzing] Add new test
Behdad Esfahbod [Mon, 12 Nov 2018 19:25:18 +0000 (14:25 -0500)]
[fuzzing] Add new test

5 years agoRename check_array2() to check_array()
Behdad Esfahbod [Mon, 12 Nov 2018 19:24:36 +0000 (14:24 -0500)]
Rename check_array2() to check_array()

5 years agoRename check_array(array, a, b) to check_range()
Behdad Esfahbod [Mon, 12 Nov 2018 19:23:31 +0000 (14:23 -0500)]
Rename check_array(array, a, b) to check_range()

5 years ago[kerx] Fix integer overflow in multiply
Behdad Esfahbod [Mon, 12 Nov 2018 19:11:29 +0000 (14:11 -0500)]
[kerx] Fix integer overflow in multiply

Fixes https://oss-fuzz.com/v2/testcase-detail/5754863779053568

5 years ago[kerx] Minor tweak on previous commit
Behdad Esfahbod [Mon, 12 Nov 2018 18:56:48 +0000 (13:56 -0500)]
[kerx] Minor tweak on previous commit

5 years ago[fuzzing] Remove limited-edition build of libraries
Behdad Esfahbod [Mon, 12 Nov 2018 18:21:14 +0000 (13:21 -0500)]
[fuzzing] Remove limited-edition build of libraries

Use normal, production, shared libraries.

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

5 years ago[kerx] Protect against stack underflow
Behdad Esfahbod [Mon, 12 Nov 2018 18:01:22 +0000 (13:01 -0500)]
[kerx] Protect against stack underflow

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11367

5 years agoMerge branch 'master' into cff-subset
Michiharu Ariza [Mon, 12 Nov 2018 16:49:00 +0000 (08:49 -0800)]
Merge branch 'master' into cff-subset

5 years agochanged Adobe company name
Michiharu Ariza [Mon, 12 Nov 2018 16:47:07 +0000 (08:47 -0800)]
changed Adobe company name

5 years ago[shape-plan] Minor
Behdad Esfahbod [Mon, 12 Nov 2018 03:51:34 +0000 (22:51 -0500)]
[shape-plan] Minor

5 years ago[shape-plan] Minor rename
Behdad Esfahbod [Mon, 12 Nov 2018 03:38:05 +0000 (22:38 -0500)]
[shape-plan] Minor rename

5 years agoAdd variation coords to shape_plan proposal
Behdad Esfahbod [Mon, 12 Nov 2018 03:08:48 +0000 (22:08 -0500)]
Add variation coords to shape_plan proposal

This is the root cause of bug worked around in 19e77e01bc13f44138e1d50533327d314dd0a018.

Still no shape plan caching for variations though.

5 years agoMinor
Behdad Esfahbod [Mon, 12 Nov 2018 03:03:15 +0000 (22:03 -0500)]
Minor

5 years agoEmbed hb_ot_shape_plan_t into hb_shape_plan_t
Behdad Esfahbod [Mon, 12 Nov 2018 02:32:01 +0000 (21:32 -0500)]
Embed hb_ot_shape_plan_t into hb_shape_plan_t

No other shaper will need shape_plan_data, by definition.  So, remove
abstraction layer and always create hb_ot_shape_plan_t as part of
hb_shape_plan_t.

5 years agoRemove wrong comment
Behdad Esfahbod [Sun, 11 Nov 2018 22:10:23 +0000 (17:10 -0500)]
Remove wrong comment

5 years agoFinish off eecccc919ce15f60ae7ef9da5cfb311b4aa05c63
Behdad Esfahbod [Sun, 11 Nov 2018 21:47:52 +0000 (16:47 -0500)]
Finish off eecccc919ce15f60ae7ef9da5cfb311b4aa05c63

5 years agoMinor
Behdad Esfahbod [Sun, 11 Nov 2018 21:35:28 +0000 (16:35 -0500)]
Minor

5 years agoMinor
Behdad Esfahbod [Sun, 11 Nov 2018 21:25:43 +0000 (16:25 -0500)]
Minor

5 years agoRevert "Declare Null() constexpr"
Behdad Esfahbod [Sun, 11 Nov 2018 21:09:38 +0000 (16:09 -0500)]
Revert "Declare Null() constexpr"

This reverts commit 442a72d95ab1fb3a47b486d8d1eb68e909d0ffb8.

Doesn't make sense.  No idea how my local compilers where happy with it!

5 years agoMinor
Behdad Esfahbod [Sun, 11 Nov 2018 20:54:20 +0000 (15:54 -0500)]
Minor

5 years agoDeclare Null() constexpr
Behdad Esfahbod [Sun, 11 Nov 2018 20:51:23 +0000 (15:51 -0500)]
Declare Null() constexpr

5 years agoDon't store to null object
Behdad Esfahbod [Sun, 11 Nov 2018 20:48:47 +0000 (15:48 -0500)]
Don't store to null object

Ouch :).

5 years agoRemove unused function
Behdad Esfahbod [Sun, 11 Nov 2018 20:45:58 +0000 (15:45 -0500)]
Remove unused function

5 years ago[hdmx] Renames
Behdad Esfahbod [Sun, 11 Nov 2018 17:54:16 +0000 (12:54 -0500)]
[hdmx] Renames

5 years agoAdd hb_blob_ptr_t.destroy()
Behdad Esfahbod [Sun, 11 Nov 2018 16:40:57 +0000 (11:40 -0500)]
Add hb_blob_ptr_t.destroy()

5 years ago[hmtx/port] Use hb_blob_ptr_t
Behdad Esfahbod [Sun, 11 Nov 2018 05:39:52 +0000 (00:39 -0500)]
[hmtx/port] Use hb_blob_ptr_t

5 years ago[cmap] Port to hb_blob_ptr_t
Behdad Esfahbod [Sun, 11 Nov 2018 05:28:47 +0000 (00:28 -0500)]
[cmap] Port to hb_blob_ptr_t

Although didn't need it...

5 years ago[color] Port to hb_blob_ptr_t
Behdad Esfahbod [Sun, 11 Nov 2018 05:26:55 +0000 (00:26 -0500)]
[color] Port to hb_blob_ptr_t

Fix hb_blob_ptr_t::get_length () as well.

5 years agoComment
Behdad Esfahbod [Sun, 11 Nov 2018 05:17:30 +0000 (00:17 -0500)]
Comment

5 years ago[shape-plan] Remove use of custom null object
Behdad Esfahbod [Sun, 11 Nov 2018 05:16:17 +0000 (00:16 -0500)]
[shape-plan] Remove use of custom null object

5 years ago[shape-plan] Make null object all zeros
Behdad Esfahbod [Sun, 11 Nov 2018 05:15:08 +0000 (00:15 -0500)]
[shape-plan] Make null object all zeros

To remove custom null object next..

5 years ago[blob] Use default null object
Behdad Esfahbod [Sun, 11 Nov 2018 05:12:30 +0000 (00:12 -0500)]
[blob] Use default null object

5 years ago[blob] Change null object memory mode to DUPLICATE
Behdad Esfahbod [Sun, 11 Nov 2018 05:11:28 +0000 (00:11 -0500)]
[blob] Change null object memory mode to DUPLICATE

We never rely on that being equal to readonly.  Just not being
writable.  Maybe not even that given that the object is inert.

In prep for next commit, using default null pool.

5 years agoAdd hb_blob_ptr_t
Behdad Esfahbod [Sun, 11 Nov 2018 04:52:15 +0000 (23:52 -0500)]
Add hb_blob_ptr_t

Use in a couple of places.  Push to bots to see how many unhappy before
I convert the rest.

5 years agoMinor
Behdad Esfahbod [Sun, 11 Nov 2018 03:41:35 +0000 (22:41 -0500)]
Minor

5 years ago[kerx] Fix Format1 tupleKern sanitization
Behdad Esfahbod [Sun, 11 Nov 2018 02:13:13 +0000 (21:13 -0500)]
[kerx] Fix Format1 tupleKern sanitization

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11312
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11305

5 years ago[fuzzing] Make "make lib" faster and more usable
Behdad Esfahbod [Sun, 11 Nov 2018 02:01:49 +0000 (21:01 -0500)]
[fuzzing] Make "make lib" faster and more usable

5 years agoMinor
Behdad Esfahbod [Sun, 11 Nov 2018 01:11:10 +0000 (20:11 -0500)]
Minor

5 years agoRevert parts of previous commit that made clang unhappy
Behdad Esfahbod [Sun, 11 Nov 2018 01:10:03 +0000 (20:10 -0500)]
Revert parts of previous commit that made clang unhappy

5 years agoBetter fix for MSVC 2008
Behdad Esfahbod [Sun, 11 Nov 2018 00:54:08 +0000 (19:54 -0500)]
Better fix for MSVC 2008

Follow up on b4c61130324455bfd42095b01fa14ac901e441f1

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

5 years agoMerge branch 'master' into cff-subset
Michiharu Ariza [Sun, 11 Nov 2018 00:23:11 +0000 (16:23 -0800)]
Merge branch 'master' into cff-subset

5 years agoTry fixing MSVC 2008 build
Behdad Esfahbod [Sat, 10 Nov 2018 21:35:39 +0000 (16:35 -0500)]
Try fixing MSVC 2008 build

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

5 years agoFix hb_bytes_t's unused template array constructor
Behdad Esfahbod [Sat, 10 Nov 2018 21:11:14 +0000 (16:11 -0500)]
Fix hb_bytes_t's unused template array constructor

5 years agoAdd trivial casts to hb_bytes_t
Behdad Esfahbod [Sat, 10 Nov 2018 21:09:21 +0000 (16:09 -0500)]
Add trivial casts to hb_bytes_t

5 years agoRevert back hb_bytes_t.cmp() to the scheme it was
Behdad Esfahbod [Sat, 10 Nov 2018 20:54:33 +0000 (15:54 -0500)]
Revert back hb_bytes_t.cmp() to the scheme it was

But fix UBSan complaint.

There's nothing in hb_bytes_t that guarantees lexical ordering, and
ordering by length first is much faster.

5 years agoFix hb_bytes_t.cmp() for realz this time
Behdad Esfahbod [Sat, 10 Nov 2018 20:43:16 +0000 (15:43 -0500)]
Fix hb_bytes_t.cmp() for realz this time

5 years agoFix hb_bytes_t.cmp()
Behdad Esfahbod [Sat, 10 Nov 2018 20:38:48 +0000 (15:38 -0500)]
Fix hb_bytes_t.cmp()

Ouch!

5 years agoMerge pull request #1376 from ebraminio/minor
Behdad Esfahbod [Sat, 10 Nov 2018 20:35:12 +0000 (15:35 -0500)]
Merge pull request #1376 from ebraminio/minor

[colr/feat/trak] minor

5 years ago[colr/feat/trak] minor
Ebrahim Byagowi [Sat, 10 Nov 2018 14:38:11 +0000 (18:08 +0330)]
[colr/feat/trak] minor

5 years ago[qsort] Fix O(N^2) behavior if all array elements are the same
Behdad Esfahbod [Sat, 10 Nov 2018 06:56:37 +0000 (01:56 -0500)]
[qsort] Fix O(N^2) behavior if all array elements are the same

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11327

Reported as https://github.com/noporpoise/sort_r/issues/7

5 years ago[post] Minor
Behdad Esfahbod [Sat, 10 Nov 2018 05:37:17 +0000 (00:37 -0500)]
[post] Minor

5 years ago[post] Move sanitize close to data fields
Behdad Esfahbod [Sat, 10 Nov 2018 05:26:36 +0000 (00:26 -0500)]
[post] Move sanitize close to data fields

5 years ago[post] Remove unnecessary hb_nonnull_ptr_t<>
Behdad Esfahbod [Sat, 10 Nov 2018 05:19:50 +0000 (00:19 -0500)]
[post] Remove unnecessary hb_nonnull_ptr_t<>

5 years ago[glyf] minor
Ebrahim Byagowi [Fri, 9 Nov 2018 23:12:08 +0000 (02:42 +0330)]
[glyf] minor

5 years agofixed vstem handling (lack thereof) in check_width
Michiharu Ariza [Fri, 9 Nov 2018 16:59:18 +0000 (08:59 -0800)]
fixed vstem handling (lack thereof) in check_width

bug exposed by U+2261 equivalence in SourceCodePro-Regular.otf

5 years agoFix a few MSVC 2008 warnings
Behdad Esfahbod [Fri, 9 Nov 2018 15:01:50 +0000 (10:01 -0500)]
Fix a few MSVC 2008 warnings

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

5 years agoMerge pull request #1358 from ebraminio/lcar
Behdad Esfahbod [Thu, 8 Nov 2018 19:42:40 +0000 (14:42 -0500)]
Merge pull request #1358 from ebraminio/lcar

Hook AAT's lcar to _get_ligature_carets

5 years agoHook AAT's lcar to _get_ligature_carets
Ebrahim Byagowi [Mon, 5 Nov 2018 09:01:58 +0000 (12:31 +0330)]
Hook AAT's lcar to _get_ligature_carets

5 years ago[aat] Minor
Ebrahim Byagowi [Thu, 8 Nov 2018 18:16:26 +0000 (21:46 +0330)]
[aat] Minor

5 years ago[test/text-rendering-tests] Update from upstream
Behdad Esfahbod [Thu, 8 Nov 2018 17:17:09 +0000 (12:17 -0500)]
[test/text-rendering-tests] Update from upstream

5 years ago[aat] Minor (#1369)
Ebrahim Byagowi [Thu, 8 Nov 2018 17:18:54 +0000 (20:48 +0330)]
[aat] Minor (#1369)

5 years agoMerge branch 'master' into cff-subset
Michiharu Ariza [Thu, 8 Nov 2018 17:06:49 +0000 (09:06 -0800)]
Merge branch 'master' into cff-subset

5 years agogot rid of Remap::fullset() as incorrect, redundant, inefficient
Michiharu Ariza [Thu, 8 Nov 2018 17:01:20 +0000 (09:01 -0800)]
got rid of Remap::fullset() as incorrect, redundant, inefficient

5 years ago[just] Initial table implementation (#1364)
Ebrahim Byagowi [Thu, 8 Nov 2018 15:47:02 +0000 (19:17 +0330)]
[just] Initial table implementation (#1364)

A starting point, its sanitization is not tested however

5 years ago[aat] Support Lookup<OffsetTo<>>, needed by just and lcar (#1368)
Ebrahim Byagowi [Thu, 8 Nov 2018 15:23:14 +0000 (18:53 +0330)]
[aat] Support Lookup<OffsetTo<>>, needed by just and lcar (#1368)