platform/upstream/libHarfBuzzSharp.git
6 years agoremove build files accidentally pushed
Michiharu Ariza [Mon, 5 Nov 2018 15:59:08 +0000 (07:59 -0800)]
remove build files accidentally pushed

6 years agofixed leaks in CFF subr subset
Michiharu Ariza [Mon, 5 Nov 2018 00:19:15 +0000 (16:19 -0800)]
fixed leaks in CFF subr subset

6 years agoadded missing switch breaks
Michiharu Ariza [Sun, 4 Nov 2018 22:17:30 +0000 (14:17 -0800)]
added missing switch breaks

6 years agoMerge branch 'master' into cff-subset
Michiharu Ariza [Sun, 4 Nov 2018 21:25:41 +0000 (13:25 -0800)]
Merge branch 'master' into cff-subset

6 years agoadded desubroutinize full font test profiles & expected fonts
Michiharu Ariza [Sun, 4 Nov 2018 21:12:20 +0000 (13:12 -0800)]
added desubroutinize full font test profiles & expected fonts

modified subset_test_suite.py to apply desubroutinize profiles to CFF only (not to TT)

6 years ago[aat] Clean up ankr table include mess
Behdad Esfahbod [Sun, 4 Nov 2018 17:58:02 +0000 (12:58 -0500)]
[aat] Clean up ankr table include mess

6 years ago[test] Call test-ot-face.c test from hb-shape-fuzzer
Behdad Esfahbod [Sun, 4 Nov 2018 07:47:34 +0000 (02:47 -0500)]
[test] Call test-ot-face.c test from hb-shape-fuzzer

Should increase coverage...

6 years ago[test] More funcs in test-ot-face
Behdad Esfahbod [Sun, 4 Nov 2018 07:40:20 +0000 (02:40 -0500)]
[test] More funcs in test-ot-face

6 years agoClean up buffer->swap_buffers() calls
Behdad Esfahbod [Sun, 4 Nov 2018 07:25:07 +0000 (02:25 -0500)]
Clean up buffer->swap_buffers() calls

That function checks for buffer->successful already.  No need
to check at call site.

6 years agoCFF1 no-desubr fixes
Michiharu Ariza [Sun, 4 Nov 2018 05:42:22 +0000 (22:42 -0700)]
CFF1 no-desubr fixes

make sure charstring/subrs not ending with endchar/return handled correctly
if no local subrs, skip serializing Subrs op in Private
misc fixes

6 years agoFix >>
Behdad Esfahbod [Sun, 4 Nov 2018 01:45:39 +0000 (21:45 -0400)]
Fix >>

6 years agoFix "Warning: extra ";" ignored."
Behdad Esfahbod [Sun, 4 Nov 2018 01:41:50 +0000 (21:41 -0400)]
Fix "Warning: extra ";" ignored."

6 years agoRevert "Add operator char * to the naked array types as well"
Behdad Esfahbod [Sun, 4 Nov 2018 01:38:24 +0000 (21:38 -0400)]
Revert "Add operator char * to the naked array types as well"

This reverts commit db889c182ee5f54127285bfaab5bc94dafe46bda.

Was resulting in ambigious overloads...

6 years agoMinor
Behdad Esfahbod [Sun, 4 Nov 2018 01:07:39 +0000 (21:07 -0400)]
Minor

6 years ago[test] Add test for empty face
Behdad Esfahbod [Sun, 4 Nov 2018 00:50:56 +0000 (20:50 -0400)]
[test] Add test for empty face

6 years agofix for subset fuzzer failure
Michiharu Ariza [Sat, 3 Nov 2018 22:41:29 +0000 (15:41 -0700)]
fix for subset fuzzer failure

A called subr must be freshly parsed or completely parsed. otherwise the prevoius parse must have terminated prematurely

6 years agoFix null accelerator's
Behdad Esfahbod [Sat, 3 Nov 2018 20:15:30 +0000 (16:15 -0400)]
Fix null accelerator's

Fixes all except for cmap.  To be done separately.

Part of https://github.com/harfbuzz/harfbuzz/issues/1146

6 years agoAdd operator char * to the naked array types as well
Behdad Esfahbod [Sat, 3 Nov 2018 20:04:19 +0000 (16:04 -0400)]
Add operator char * to the naked array types as well

6 years agoAdd operator char * to hb_nonnull_ptr_t
Behdad Esfahbod [Sat, 3 Nov 2018 20:02:03 +0000 (16:02 -0400)]
Add operator char * to hb_nonnull_ptr_t

6 years agoTemplate casts in hb_nonnull_ptr_t
Behdad Esfahbod [Sat, 3 Nov 2018 19:59:13 +0000 (15:59 -0400)]
Template casts in hb_nonnull_ptr_t

6 years ago[blob] Allow null parent in create_sub_blob()
Behdad Esfahbod [Sat, 3 Nov 2018 19:49:37 +0000 (15:49 -0400)]
[blob] Allow null parent in create_sub_blob()

Like font and unicode.

6 years agoAdd hb_nonnull_ptr_t
Behdad Esfahbod [Sat, 3 Nov 2018 19:24:14 +0000 (15:24 -0400)]
Add hb_nonnull_ptr_t

Towards fixing https://github.com/harfbuzz/harfbuzz/issues/1146

6 years ago[kern] Third try fix access violation in Format3
Behdad Esfahbod [Sat, 3 Nov 2018 19:14:57 +0000 (15:14 -0400)]
[kern] Third try fix access violation in Format3

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

6 years ago[kern] Really fix access violation in Format3
Behdad Esfahbod [Sat, 3 Nov 2018 19:06:45 +0000 (15:06 -0400)]
[kern] Really fix access violation in Format3

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

6 years agoReplace most uses of is_inert with is_immutable
Behdad Esfahbod [Sat, 3 Nov 2018 19:03:06 +0000 (15:03 -0400)]
Replace most uses of is_inert with is_immutable

6 years ago[kern] Fix access violation in Format3
Behdad Esfahbod [Sat, 3 Nov 2018 18:58:54 +0000 (14:58 -0400)]
[kern] Fix access violation in Format3

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

6 years agoPort objects to use header.writable instead of immutable
Behdad Esfahbod [Sat, 3 Nov 2018 18:51:38 +0000 (14:51 -0400)]
Port objects to use header.writable instead of immutable

Saves 4 or 8 bytes per object on 64bit archs.

6 years ago[object] Add "writable"
Behdad Esfahbod [Sat, 3 Nov 2018 18:28:55 +0000 (14:28 -0400)]
[object] Add "writable"

6 years ago[BASE] Improvements (#1347)
Ebrahim Byagowi [Sat, 3 Nov 2018 18:58:30 +0000 (22:28 +0330)]
[BASE] Improvements (#1347)

6 years ago[fuzz] A new testcase
Ebrahim Byagowi [Sat, 3 Nov 2018 09:33:36 +0000 (13:03 +0330)]
[fuzz] A new testcase

6 years agofixed FDSelect size calcluation
Michiharu Ariza [Fri, 2 Nov 2018 23:40:20 +0000 (16:40 -0700)]
fixed FDSelect size calcluation

6 years agoMerge branch 'cff-subset' of https://github.com/harfbuzz/harfbuzz into cff-subset
Michiharu Ariza [Fri, 2 Nov 2018 22:28:09 +0000 (15:28 -0700)]
Merge branch 'cff-subset' of https://github.com/harfbuzz/harfbuzz into cff-subset

6 years agoadded CFF1 desubr api test cases & bug fixes
Michiharu Ariza [Fri, 2 Nov 2018 22:28:01 +0000 (15:28 -0700)]
added CFF1 desubr api test cases & bug fixes

6 years ago[os2] Capitalize table tag and struct
Khaled Hosny [Fri, 2 Nov 2018 21:06:00 +0000 (23:06 +0200)]
[os2] Capitalize table tag and struct

Other tables follow the case of the OT tag, except this one.

6 years ago[kern] Implement Format1
Behdad Esfahbod [Fri, 2 Nov 2018 18:47:42 +0000 (14:47 -0400)]
[kern] Implement Format1

Also, implement backwards kerning for Format1 in kern and kerx.

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

6 years ago[kern] Set subtable on sanitizer
Behdad Esfahbod [Fri, 2 Nov 2018 18:43:38 +0000 (14:43 -0400)]
[kern] Set subtable on sanitizer

6 years ago[kern] Respect more flags
Behdad Esfahbod [Fri, 2 Nov 2018 18:26:04 +0000 (14:26 -0400)]
[kern] Respect more flags

6 years ago[kern] Minor
Behdad Esfahbod [Fri, 2 Nov 2018 17:57:41 +0000 (13:57 -0400)]
[kern] Minor

We like check_struct() more.

6 years agoRemove pointer cast operators from ArrayOf<>
Behdad Esfahbod [Fri, 2 Nov 2018 17:47:33 +0000 (13:47 -0400)]
Remove pointer cast operators from ArrayOf<>

ArrayOf<>, unlike UnsizedArrayOf<>, has data before the array.
This was confusing.  Remove.

6 years ago[kern] Comment
Behdad Esfahbod [Fri, 2 Nov 2018 17:26:15 +0000 (13:26 -0400)]
[kern] Comment

6 years ago[kern] Push apply loop to each subtable
Behdad Esfahbod [Fri, 2 Nov 2018 17:23:54 +0000 (13:23 -0400)]
[kern] Push apply loop to each subtable

6 years ago[kern] Remove accelerator
Behdad Esfahbod [Fri, 2 Nov 2018 16:47:55 +0000 (12:47 -0400)]
[kern] Remove accelerator

It wasn't doing anything.

6 years agoUse as_array in more places
Behdad Esfahbod [Fri, 2 Nov 2018 16:23:26 +0000 (12:23 -0400)]
Use as_array in more places

6 years agoFix &array_of<>
Behdad Esfahbod [Fri, 2 Nov 2018 16:14:21 +0000 (12:14 -0400)]
Fix &array_of<>

6 years agoFixup
Behdad Esfahbod [Fri, 2 Nov 2018 16:00:55 +0000 (12:00 -0400)]
Fixup

6 years ago[kern] Implement Format3
Behdad Esfahbod [Fri, 2 Nov 2018 15:56:55 +0000 (11:56 -0400)]
[kern] Implement Format3

Untested.

6 years agoAdd cast operators to hb_array_t
Behdad Esfahbod [Fri, 2 Nov 2018 15:51:21 +0000 (11:51 -0400)]
Add cast operators to hb_array_t

6 years agoAdd UnsizedArrayOf::as_array() instead of hb_array() template
Behdad Esfahbod [Fri, 2 Nov 2018 15:46:24 +0000 (11:46 -0400)]
Add UnsizedArrayOf::as_array() instead of hb_array() template

6 years agoAdd get_size to UnsizedArrayOf
Behdad Esfahbod [Fri, 2 Nov 2018 15:38:00 +0000 (11:38 -0400)]
Add get_size to UnsizedArrayOf

6 years ago[kern] Add buffer message
Behdad Esfahbod [Fri, 2 Nov 2018 15:16:43 +0000 (11:16 -0400)]
[kern] Add buffer message

6 years agoremoved unused code
Michiharu Ariza [Fri, 2 Nov 2018 05:43:17 +0000 (22:43 -0700)]
removed unused code

6 years agoadded hb_subset_input_set_desubroutinize API
Michiharu Ariza [Fri, 2 Nov 2018 00:25:23 +0000 (17:25 -0700)]
added hb_subset_input_set_desubroutinize API

hooked up with CFF1 subroutinizer
a renaming

6 years agoremoved extraneous ;s
Michiharu Ariza [Thu, 1 Nov 2018 23:33:46 +0000 (16:33 -0700)]
removed extraneous ;s

6 years agotweaks to build with new merge
Michiharu Ariza [Thu, 1 Nov 2018 23:18:13 +0000 (16:18 -0700)]
tweaks to build with new merge

6 years agoMerge branch 'master' into cff-subset
Michiharu Ariza [Thu, 1 Nov 2018 23:13:56 +0000 (16:13 -0700)]
Merge branch 'master' into cff-subset

6 years ago[Crap] Avoid operator=
Behdad Esfahbod [Thu, 1 Nov 2018 22:13:58 +0000 (18:13 -0400)]
[Crap] Avoid operator=

6 years ago[aat] Rely on vector auto initialization
Behdad Esfahbod [Thu, 1 Nov 2018 22:05:22 +0000 (18:05 -0400)]
[aat] Rely on vector auto initialization

6 years ago[aat] Remove unused forward declaration
Behdad Esfahbod [Thu, 1 Nov 2018 22:01:26 +0000 (18:01 -0400)]
[aat] Remove unused forward declaration

6 years agofix leak attempt ^2
Michiharu Ariza [Thu, 1 Nov 2018 17:36:50 +0000 (10:36 -0700)]
fix leak attempt ^2

6 years agofix leaks
Michiharu Ariza [Thu, 1 Nov 2018 17:31:21 +0000 (10:31 -0700)]
fix leaks

6 years agofix bogus width with --no-hinting
Michiharu Ariza [Thu, 1 Nov 2018 15:46:21 +0000 (08:46 -0700)]
fix bogus width with --no-hinting

6 years agoWarning fix
Behdad Esfahbod [Thu, 1 Nov 2018 14:31:12 +0000 (10:31 -0400)]
Warning fix

6 years ago[ot-layout] minor
Ebrahim Byagowi [Thu, 1 Nov 2018 12:01:14 +0000 (15:31 +0330)]
[ot-layout] minor

6 years ago[test] minor
Ebrahim Byagowi [Thu, 1 Nov 2018 10:09:06 +0000 (13:39 +0330)]
[test] minor

6 years agoCFF1 no-desubroutinize + no-hinting
Michiharu Ariza [Thu, 1 Nov 2018 05:30:34 +0000 (22:30 -0700)]
CFF1 no-desubroutinize + no-hinting

no-desubroutinize option is disabled for now
code cleanup (esp. CFF1 width handling)
bug fixes & renaming

6 years ago[aat] Implement 'aalt' mapping
Behdad Esfahbod [Thu, 1 Nov 2018 02:05:53 +0000 (19:05 -0700)]
[aat] Implement 'aalt' mapping

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

6 years ago[aat] Add 'afrc' feature mapping
Behdad Esfahbod [Thu, 1 Nov 2018 02:00:11 +0000 (19:00 -0700)]
[aat] Add 'afrc' feature mapping

https://github.com/harfbuzz/harfbuzz/issues/1342#issuecomment-434829028

6 years ago[aat] Fallback to old style "Letter Case" small caps
Behdad Esfahbod [Thu, 1 Nov 2018 01:51:45 +0000 (18:51 -0700)]
[aat] Fallback to old style "Letter Case" small caps

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

6 years ago[test] Minor
Behdad Esfahbod [Thu, 1 Nov 2018 01:25:05 +0000 (18:25 -0700)]
[test] Minor

6 years agoImplement space fallback in vertical direction
Behdad Esfahbod [Thu, 1 Nov 2018 01:21:48 +0000 (18:21 -0700)]
Implement space fallback in vertical direction

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

6 years ago[hmtx/vmtx] Fix a crasher
Behdad Esfahbod [Thu, 1 Nov 2018 01:14:00 +0000 (18:14 -0700)]
[hmtx/vmtx] Fix a crasher

6 years ago[mort] Massage some more
Behdad Esfahbod [Wed, 31 Oct 2018 22:09:09 +0000 (15:09 -0700)]
[mort] Massage some more

6 years ago[mort] Some more
Behdad Esfahbod [Wed, 31 Oct 2018 22:06:12 +0000 (15:06 -0700)]
[mort] Some more

6 years ago[mort] Refactor offset-to-index mapping
Behdad Esfahbod [Wed, 31 Oct 2018 21:59:14 +0000 (14:59 -0700)]
[mort] Refactor offset-to-index mapping

6 years agoMinor
Behdad Esfahbod [Wed, 31 Oct 2018 21:22:31 +0000 (14:22 -0700)]
Minor

6 years ago[sbix] Rely on blob->as<> checking size against Type::min_size
Behdad Esfahbod [Wed, 31 Oct 2018 20:21:33 +0000 (13:21 -0700)]
[sbix] Rely on blob->as<> checking size against Type::min_size

6 years agoImprove blob->as<>
Behdad Esfahbod [Wed, 31 Oct 2018 20:19:42 +0000 (13:19 -0700)]
Improve blob->as<>

It's true that blob->as<> should only be called on null or sanitized
data.  But this change is safe, so keep it.

6 years ago[set] Warning fix with gcc 8.1
Behdad Esfahbod [Wed, 31 Oct 2018 17:42:49 +0000 (10:42 -0700)]
[set] Warning fix with gcc 8.1

https://github.com/harfbuzz/harfbuzz/pull/1334

6 years ago[ot-color-test] Remove the non-working exact strike size storing (#1339)
Ebrahim Byagowi [Wed, 31 Oct 2018 10:50:23 +0000 (14:20 +0330)]
[ot-color-test] Remove the non-working exact strike size storing (#1339)

6 years ago[aat] Fix older compilers by not referencing enum directly (#1340)
Ebrahim Byagowi [Wed, 31 Oct 2018 10:50:14 +0000 (14:20 +0330)]
[aat] Fix older compilers by not referencing enum directly (#1340)

6 years ago[aat] Minor, remove extra semicolons
Ebrahim Byagowi [Wed, 31 Oct 2018 10:32:37 +0000 (14:02 +0330)]
[aat] Minor, remove extra semicolons

6 years ago[mort] Make ligatures work
Behdad Esfahbod [Wed, 31 Oct 2018 08:16:33 +0000 (01:16 -0700)]
[mort] Make ligatures work

 ./hb-shape Apple_Chancery_10_12.ttf  "Th th ll te to tr fr fu fj"
[T_h=0+2308|space=2+569|t_h=3+1687|space=5+569|l_l=6+1108|space=8+569|t_e=9+1408|space=11+569|t_o=12+1531|space=14+569|t_r=15+1385|space=17+569|f_r=18+1432|space=20+569|f_u=21+1733|space=23+569|f_j=24+1098]

Part of https://github.com/harfbuzz/harfbuzz/issues/1331

6 years ago[mort] More Ligature work
Behdad Esfahbod [Wed, 31 Oct 2018 07:36:03 +0000 (00:36 -0700)]
[mort] More Ligature work

6 years ago[mort] Some Ligature work
Behdad Esfahbod [Wed, 31 Oct 2018 07:15:00 +0000 (00:15 -0700)]
[mort] Some Ligature work

6 years ago[mort] Implement / adjust Contextual substitution
Behdad Esfahbod [Wed, 31 Oct 2018 06:33:30 +0000 (23:33 -0700)]
[mort] Implement / adjust Contextual substitution

6 years ago[mort] More fixes]
Behdad Esfahbod [Wed, 31 Oct 2018 04:49:59 +0000 (21:49 -0700)]
[mort] More fixes]

6 years ago[maxp] Minor
Behdad Esfahbod [Wed, 31 Oct 2018 04:09:05 +0000 (21:09 -0700)]
[maxp] Minor

6 years ago[mort] Grind some more
Behdad Esfahbod [Wed, 31 Oct 2018 03:51:44 +0000 (20:51 -0700)]
[mort] Grind some more

6 years ago[mort] Hook up more
Behdad Esfahbod [Wed, 31 Oct 2018 03:15:28 +0000 (20:15 -0700)]
[mort] Hook up more

6 years ago[morx] Remove stale comment
Behdad Esfahbod [Wed, 31 Oct 2018 03:04:13 +0000 (20:04 -0700)]
[morx] Remove stale comment

6 years ago[mort] More massaging towards mort
Behdad Esfahbod [Wed, 31 Oct 2018 02:42:21 +0000 (19:42 -0700)]
[mort] More massaging towards mort

6 years ago[mort] Fix version check in sanitize
Behdad Esfahbod [Wed, 31 Oct 2018 02:33:31 +0000 (19:33 -0700)]
[mort] Fix version check in sanitize

6 years ago[mort] Make it compile / hook it up
Behdad Esfahbod [Wed, 31 Oct 2018 02:26:16 +0000 (19:26 -0700)]
[mort] Make it compile / hook it up

Untested.

6 years ago[mort] Fixup on previous commit
Behdad Esfahbod [Wed, 31 Oct 2018 02:22:43 +0000 (19:22 -0700)]
[mort] Fixup on previous commit

6 years ago[mort] Bring back mort generalizations
Ebrahim Byagowi [Tue, 30 Oct 2018 15:11:34 +0000 (18:41 +0330)]
[mort] Bring back mort generalizations

Started by reverting https://github.com/harfbuzz/harfbuzz/commit/1f1c85a5

Just a starting point, if we agree even mort can come back.

6 years agoFix build
Behdad Esfahbod [Wed, 31 Oct 2018 02:16:00 +0000 (19:16 -0700)]
Fix build

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

6 years ago[fuzzing] Call hb-ot-color API
Behdad Esfahbod [Wed, 31 Oct 2018 02:06:21 +0000 (19:06 -0700)]
[fuzzing] Call hb-ot-color API

6 years ago2.1.0
Behdad Esfahbod [Tue, 30 Oct 2018 22:52:26 +0000 (15:52 -0700)]
2.1.0

6 years agoFix everything-bot
Behdad Esfahbod [Tue, 30 Oct 2018 21:47:27 +0000 (14:47 -0700)]
Fix everything-bot

6 years ago[subset] Limit the number of scripts and langsys' that should be checked when collect...
Garret Rieger [Tue, 30 Oct 2018 18:29:58 +0000 (11:29 -0700)]
[subset] Limit the number of scripts and langsys' that should be checked when collecting features.