platform/upstream/libHarfBuzzSharp.git
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.

6 years ago[name] Rename hb_name_id_t to hb_ot_name_id_t
Behdad Esfahbod [Tue, 30 Oct 2018 21:04:09 +0000 (14:04 -0700)]
[name] Rename hb_name_id_t to hb_ot_name_id_t

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

6 years agofix various GCC function pointer warnings
Simon Tooke [Tue, 30 Oct 2018 18:16:23 +0000 (14:16 -0400)]
fix various GCC function pointer warnings

6 years ago[CBDT] Implement Format18 get_extens
Behdad Esfahbod [Tue, 30 Oct 2018 20:16:07 +0000 (13:16 -0700)]
[CBDT] Implement Format18 get_extens

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

6 years ago[CBDT] Bound checks in reference_png
Behdad Esfahbod [Tue, 30 Oct 2018 20:14:56 +0000 (13:14 -0700)]
[CBDT] Bound checks in reference_png

6 years agoDocs Makefile: sync SGML list to harfbuzz-docs.xml include list. Hopefully fixes...
Nathan Willis [Tue, 30 Oct 2018 16:24:56 +0000 (11:24 -0500)]
Docs Makefile: sync SGML list to harfbuzz-docs.xml include list. Hopefully fixes distcheck failure.

6 years agoUsermanual: minor wording updates, build fixes.
Nathan Willis [Mon, 29 Oct 2018 22:10:53 +0000 (17:10 -0500)]
Usermanual: minor wording updates, build fixes.

6 years agoUsermanual: update DTD in chapter XML to avoid HTML entity parsing errors.
Nathan Willis [Mon, 29 Oct 2018 21:42:59 +0000 (16:42 -0500)]
Usermanual: update DTD in chapter XML to avoid HTML entity parsing errors.

6 years agoUsermanual; minor wording changes.
Nathan Willis [Sat, 20 Oct 2018 16:21:49 +0000 (17:21 +0100)]
Usermanual; minor wording changes.

6 years agoMinor; rewording unsafe-to-break note.
Khaled Hosny [Sat, 20 Oct 2018 15:12:45 +0000 (16:12 +0100)]
Minor; rewording unsafe-to-break note.

Co-Authored-By: n8willis <nwillis@glyphography.com>
6 years agoTrivial; typo.
Khaled Hosny [Sat, 20 Oct 2018 14:46:04 +0000 (15:46 +0100)]
Trivial; typo.

Co-Authored-By: n8willis <nwillis@glyphography.com>
6 years agoMinor; simplify example code
Khaled Hosny [Sat, 20 Oct 2018 14:45:24 +0000 (15:45 +0100)]
Minor; simplify example code

Co-Authored-By: n8willis <nwillis@glyphography.com>
6 years agoMinor: simplify example code
Khaled Hosny [Sat, 20 Oct 2018 14:44:51 +0000 (15:44 +0100)]
Minor: simplify example code

Co-Authored-By: n8willis <nwillis@glyphography.com>
6 years agoMinor; drop 'OpenType' from sentence
Khaled Hosny [Sat, 20 Oct 2018 14:41:00 +0000 (15:41 +0100)]
Minor; drop 'OpenType' from sentence

Co-Authored-By: n8willis <nwillis@glyphography.com>
6 years agoMinor.
Nathan Willis [Sat, 20 Oct 2018 14:18:29 +0000 (15:18 +0100)]
Minor.

6 years agoUse 'glyphs' instead of 'text'
Khaled Hosny [Sat, 20 Oct 2018 14:00:52 +0000 (15:00 +0100)]
Use 'glyphs' instead of 'text'

Co-Authored-By: n8willis <nwillis@glyphography.com>
6 years agoDocs: minor, update Makefile w new file name.
Nathan Willis [Wed, 17 Oct 2018 15:10:48 +0000 (10:10 -0500)]
Docs: minor, update Makefile w new file name.

6 years agoDocs: rename Hello HarfBuzz to Getting Started.
Nathan Willis [Tue, 16 Oct 2018 22:48:15 +0000 (17:48 -0500)]
Docs: rename Hello HarfBuzz to Getting Started.

6 years agoDocs: usermanual, add API Overview to Hello HarfBuzz chapter. Start Terminology section.
Nathan Willis [Tue, 16 Oct 2018 22:46:03 +0000 (17:46 -0500)]
Docs: usermanual, add API Overview to Hello HarfBuzz chapter. Start Terminology section.

6 years agoDocs: usermanual, add Shaping Concepts chapter.
Nathan Willis [Fri, 12 Oct 2018 23:23:26 +0000 (18:23 -0500)]
Docs: usermanual, add Shaping Concepts chapter.

6 years agoDocs: usermanual, minor cleanup to What Is HarfBuzz chapter.
Nathan Willis [Fri, 12 Oct 2018 23:22:41 +0000 (18:22 -0500)]
Docs: usermanual, minor cleanup to What Is HarfBuzz chapter.

6 years agoDocs: move harfbuzz-ng-vs-old discussion down below the TOC; put in note.
Nathan Willis [Thu, 11 Oct 2018 20:40:08 +0000 (15:40 -0500)]
Docs: move harfbuzz-ng-vs-old discussion down below the TOC; put in note.

6 years agoDocs: flesh out config options in Usermanual:Install chapter.
Nathan Willis [Thu, 11 Oct 2018 19:05:59 +0000 (14:05 -0500)]
Docs: flesh out config options in Usermanual:Install chapter.

6 years agoDocs: add basic config-options section to Usermanual Installation chapter.
Nathan Willis [Wed, 10 Oct 2018 22:01:21 +0000 (17:01 -0500)]
Docs: add basic config-options section to Usermanual Installation chapter.

6 years agoDocs: update and linearize build instructions; add installation overview material.
Nathan Willis [Wed, 10 Oct 2018 21:38:22 +0000 (16:38 -0500)]
Docs: update and linearize build instructions; add installation overview material.

6 years agoDocs: update usermanual What Is HarfBuzz material.
Nathan Willis [Wed, 10 Oct 2018 21:37:29 +0000 (16:37 -0500)]
Docs: update usermanual What Is HarfBuzz material.

6 years agoDocs: Move What-HarfBuzz-doesnt-do to Usermanual-what-is-HarfBuzz.
Nathan Willis [Fri, 28 Sep 2018 22:15:59 +0000 (17:15 -0500)]
Docs: Move What-HarfBuzz-doesnt-do to Usermanual-what-is-HarfBuzz.

6 years agoDocs: Usermanual- What is HarfBuzz; add intro to shaping concepts.
Nathan Willis [Fri, 28 Sep 2018 21:36:38 +0000 (16:36 -0500)]
Docs: Usermanual- What is HarfBuzz; add intro to shaping concepts.

6 years agoDocs: update Usermanual-What Is HarfBuzz.
Nathan Willis [Fri, 28 Sep 2018 21:07:37 +0000 (16:07 -0500)]
Docs: update Usermanual-What Is HarfBuzz.

6 years ago[sbix] Fix memory leak in early return
Khaled Hosny [Tue, 30 Oct 2018 15:05:28 +0000 (17:05 +0200)]
[sbix] Fix memory leak in early return

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

6 years ago[util] Use fgets instead of getline such that windows passes
Behdad Esfahbod [Tue, 30 Oct 2018 08:35:58 +0000 (01:35 -0700)]
[util] Use fgets instead of getline such that windows passes

6 years ago[test] Fix warnings
Behdad Esfahbod [Tue, 30 Oct 2018 08:33:22 +0000 (01:33 -0700)]
[test] Fix warnings

6 years agoMinor
Behdad Esfahbod [Tue, 30 Oct 2018 08:31:13 +0000 (01:31 -0700)]
Minor

6 years ago[util] Minor
Behdad Esfahbod [Tue, 30 Oct 2018 08:24:23 +0000 (01:24 -0700)]
[util] Minor

6 years ago[test] Fix Python3
Behdad Esfahbod [Tue, 30 Oct 2018 08:08:34 +0000 (01:08 -0700)]
[test] Fix Python3

6 years agoFix extra semicolon issues and test that on CI (#1330)
Ebrahim Byagowi [Tue, 30 Oct 2018 07:59:09 +0000 (11:29 +0330)]
Fix extra semicolon issues and test that on CI (#1330)

6 years ago[test/shaping] Spawn one hb-shape per test file
Behdad Esfahbod [Tue, 30 Oct 2018 07:51:43 +0000 (00:51 -0700)]
[test/shaping] Spawn one hb-shape per test file

Speeds up runnings in-house tests from over 20s to 2s.

6 years ago[util] Add hb-shape --batch
Behdad Esfahbod [Tue, 30 Oct 2018 07:50:18 +0000 (00:50 -0700)]
[util] Add hb-shape --batch

6 years ago[util] Don't close stdin/stdout
Behdad Esfahbod [Tue, 30 Oct 2018 07:38:01 +0000 (00:38 -0700)]
[util] Don't close stdin/stdout

6 years agoFix spurious warning re uninitialized use
Behdad Esfahbod [Tue, 30 Oct 2018 06:31:42 +0000 (23:31 -0700)]
Fix spurious warning re uninitialized use

6 years ago[cmake] Make build of tests and subset optional (#1329)
Ebrahim Byagowi [Tue, 30 Oct 2018 06:49:40 +0000 (10:19 +0330)]
[cmake] Make build of tests and subset optional (#1329)

6 years ago[set/map] Fix uninitialized memory
Behdad Esfahbod [Tue, 30 Oct 2018 06:21:14 +0000 (23:21 -0700)]
[set/map] Fix uninitialized memory

I keep forgetting that primitive types are NOT initialized during construction. :|

6 years ago[fuzzing] Make test runners less verbose
Behdad Esfahbod [Tue, 30 Oct 2018 05:53:16 +0000 (22:53 -0700)]
[fuzzing] Make test runners less verbose

6 years ago[unicode] Fix a long-standing double-declaration warning
Behdad Esfahbod [Tue, 30 Oct 2018 05:46:19 +0000 (22:46 -0700)]
[unicode] Fix a long-standing double-declaration warning

6 years agoRemove now unused hb_auto_t<>
Behdad Esfahbod [Tue, 30 Oct 2018 05:40:37 +0000 (22:40 -0700)]
Remove now unused hb_auto_t<>

6 years agoRemove last use of hb_auto_t<>
Behdad Esfahbod [Tue, 30 Oct 2018 05:35:44 +0000 (22:35 -0700)]
Remove last use of hb_auto_t<>

6 years agoPort Coverage::Iter off hb_auto_t<>
Behdad Esfahbod [Tue, 30 Oct 2018 05:30:21 +0000 (22:30 -0700)]
Port Coverage::Iter off hb_auto_t<>

6 years agoRemove a few unnecessary hb_auto_t<>'s
Behdad Esfahbod [Tue, 30 Oct 2018 01:05:25 +0000 (18:05 -0700)]
Remove a few unnecessary hb_auto_t<>'s

See a85641446c30247c4e948263f0f8c1147ed4efb9

6 years ago[set/map/vector] Make constructable, but not copy or assignable
Behdad Esfahbod [Tue, 30 Oct 2018 00:37:41 +0000 (17:37 -0700)]
[set/map/vector] Make constructable, but not copy or assignable

Disable copy/assign on them, as they shouldn't.

Make constructor / destructor call init_shallow/fini_shallow,
and make those idempotent.  So, these three can be constructed
on stack now and no init/fini call is needed.  As such,
hb_auto_t<> is not needed anymore.  I'll remove that separately.

6 years agoAdd HB_NO_CREATE_COPY_ASSIGN
Behdad Esfahbod [Mon, 29 Oct 2018 23:00:23 +0000 (16:00 -0700)]
Add HB_NO_CREATE_COPY_ASSIGN

6 years agoRemove HB_DISALLOW_COPY_AND_ASSIGN from hb_ot_shape_planner_t
Behdad Esfahbod [Mon, 29 Oct 2018 22:58:44 +0000 (15:58 -0700)]
Remove HB_DISALLOW_COPY_AND_ASSIGN from hb_ot_shape_planner_t

It was arbitrary that this struct had it and not dozens of others.

6 years agoOne more iteration
Behdad Esfahbod [Mon, 29 Oct 2018 22:29:13 +0000 (15:29 -0700)]
One more iteration

6 years agoTry fixing older bots
Behdad Esfahbod [Mon, 29 Oct 2018 22:16:52 +0000 (15:16 -0700)]
Try fixing older bots

Older C++ doesn't allow struct-with-constructor in union.

6 years ago[cmap] Minor
Behdad Esfahbod [Mon, 29 Oct 2018 22:16:38 +0000 (15:16 -0700)]
[cmap] Minor

6 years agoRemove ASSERT_POD
Behdad Esfahbod [Mon, 29 Oct 2018 21:45:44 +0000 (14:45 -0700)]
Remove ASSERT_POD

Newer compilers / language allows structs with constructor in union.
So, this was not actually testing anything.  Indeed, the recent
change in DISALLOW_COPY *is* making some of our types non-POD.
That broke some bots.

Just remove this since it wasn't doing much, and I'd rather have
DISALLOW_COPY.

6 years agoFix extra-semicolon warnings
Behdad Esfahbod [Mon, 29 Oct 2018 20:51:15 +0000 (13:51 -0700)]
Fix extra-semicolon warnings

6 years agoMake Array types uncopyable-unassignable
Behdad Esfahbod [Mon, 29 Oct 2018 18:25:35 +0000 (11:25 -0700)]
Make Array types uncopyable-unassignable

Finally!  Catches hard-to-find errors like this:

-    const SortedArrayOf<SVGDocumentIndexEntry> docs = this+svgDocEntries;
+    const SortedArrayOf<SVGDocumentIndexEntry> &docs = this+svgDocEntries;

We implement this for our array types.  This, in turn, trickles down
into all types that embed the arrays.  So, as long as we define all
open-ended structs in terms of Array types (all can be done using
UnsizedArrayOf), this achieves the goal of making uncopyable all
structs that are variable-sized.  Yay!

6 years ago[svg] Minor
Behdad Esfahbod [Mon, 29 Oct 2018 18:14:37 +0000 (11:14 -0700)]
[svg] Minor

6 years agoFix g-i warnings
Behdad Esfahbod [Mon, 29 Oct 2018 18:01:25 +0000 (11:01 -0700)]
Fix g-i warnings

6 years ago[test-ot-color] Minor
Ebrahim Byagowi [Mon, 29 Oct 2018 10:12:14 +0000 (13:42 +0330)]
[test-ot-color] Minor

6 years agoRename deprecated symbols list file name and clean it up (#1328)
Ebrahim Byagowi [Mon, 29 Oct 2018 09:41:01 +0000 (13:11 +0330)]
Rename deprecated symbols list file name and clean it up (#1328)

6 years agoMerge pull request #1326 from ebraminio/test-ot-color
Ebrahim Byagowi [Mon, 29 Oct 2018 09:04:33 +0000 (12:34 +0330)]
Merge pull request #1326 from ebraminio/test-ot-color

Revive and rename dump-emoji to test-ot-color but use public APIs instead

6 years ago[test-ot-color] Use public APIs on the tool
Ebrahim Byagowi [Mon, 29 Oct 2018 08:06:11 +0000 (11:36 +0330)]
[test-ot-color] Use public APIs on the tool

6 years agoRename dump-emoji to test-ot-color
Ebrahim Byagowi [Mon, 29 Oct 2018 06:13:17 +0000 (09:43 +0330)]
Rename dump-emoji to test-ot-color

6 years agoRevive dump-emoji
Ebrahim Byagowi [Mon, 29 Oct 2018 06:10:39 +0000 (09:40 +0330)]
Revive dump-emoji

6 years ago[svg] Fix incorrect array referencing
Ebrahim Byagowi [Mon, 29 Oct 2018 06:59:58 +0000 (10:29 +0330)]
[svg] Fix incorrect array referencing

6 years ago[cbdt] Implement strike selection logic
Behdad Esfahbod [Mon, 29 Oct 2018 06:16:13 +0000 (23:16 -0700)]
[cbdt] Implement strike selection logic

6 years ago[sbix] Minor
Behdad Esfahbod [Mon, 29 Oct 2018 06:14:15 +0000 (23:14 -0700)]
[sbix] Minor