platform/upstream/libHarfBuzzSharp.git
6 years agoMerge branch 'master' of https://github.com/harfbuzz/harfbuzz
Rod Sheeter [Fri, 16 Feb 2018 14:01:41 +0000 (06:01 -0800)]
Merge branch 'master' of https://github.com/harfbuzz/harfbuzz

6 years agoFix hb-private.hh compile issue
Ebrahim Byagowi [Fri, 16 Feb 2018 09:57:26 +0000 (13:27 +0330)]
Fix hb-private.hh compile issue

6 years agoUse _BitScanForward and _BitScanReverse on MSVC
Arkady Shapkin [Thu, 15 Feb 2018 20:17:46 +0000 (23:17 +0300)]
Use _BitScanForward and _BitScanReverse on MSVC

6 years ago[subset] apparently C99 is too much to ask in 2018
Rod Sheeter [Thu, 15 Feb 2018 22:28:29 +0000 (14:28 -0800)]
[subset] apparently C99 is too much to ask in 2018

6 years ago[subset] fix format specifier for size_t
Rod Sheeter [Thu, 15 Feb 2018 21:55:21 +0000 (13:55 -0800)]
[subset] fix format specifier for size_t

6 years ago[subset] fix no matching function MIN in djgpp
Rod Sheeter [Thu, 15 Feb 2018 20:53:52 +0000 (12:53 -0800)]
[subset] fix no matching function MIN in djgpp

6 years ago[subset] add files to EXTRA_DIST
Rod Sheeter [Thu, 15 Feb 2018 19:40:28 +0000 (11:40 -0800)]
[subset] add files to EXTRA_DIST

6 years ago[subset] correct bug introduced to get_advance
Rod Sheeter [Thu, 15 Feb 2018 19:29:01 +0000 (11:29 -0800)]
[subset] correct bug introduced to get_advance

6 years ago[subset] remove unused decl
Rod Sheeter [Thu, 15 Feb 2018 19:15:12 +0000 (11:15 -0800)]
[subset] remove unused decl

6 years agoMove collect_logs to .ci dir
Khaled Hosny [Thu, 15 Feb 2018 00:52:15 +0000 (02:52 +0200)]
Move collect_logs to .ci dir

Next to other CI scripts.

6 years ago[subset] hmtx space bracket. authors++
Rod Sheeter [Thu, 15 Feb 2018 05:11:45 +0000 (21:11 -0800)]
[subset] hmtx space bracket. authors++

6 years ago[subset] cmap space bracket
Rod Sheeter [Thu, 15 Feb 2018 03:36:33 +0000 (19:36 -0800)]
[subset] cmap space bracket

6 years ago[subset] space bracket
Rod Sheeter [Thu, 15 Feb 2018 03:22:37 +0000 (19:22 -0800)]
[subset] space bracket

6 years ago[subset] maxp copy writeable fn
Rod Sheeter [Thu, 15 Feb 2018 03:14:01 +0000 (19:14 -0800)]
[subset] maxp copy writeable fn

6 years ago[subset] hmtx use copy writeable fn instead of direct memory
Rod Sheeter [Thu, 15 Feb 2018 02:42:29 +0000 (18:42 -0800)]
[subset] hmtx use copy writeable fn instead of direct memory

6 years ago[subset] whitespace
Rod Sheeter [Thu, 15 Feb 2018 03:01:00 +0000 (19:01 -0800)]
[subset] whitespace

6 years ago[subset] Minor
Behdad Esfahbod [Thu, 15 Feb 2018 02:50:19 +0000 (18:50 -0800)]
[subset] Minor

6 years ago[test] Reinstate test/shaping/data/in-house/tests/myanmar-syllable.tests
Behdad Esfahbod [Thu, 15 Feb 2018 02:43:53 +0000 (18:43 -0800)]
[test] Reinstate test/shaping/data/in-house/tests/myanmar-syllable.tests

6 years ago[subset] Merge remote-tracking branch 'googlefonts/master'
Behdad Esfahbod [Thu, 15 Feb 2018 02:42:32 +0000 (18:42 -0800)]
[subset] Merge remote-tracking branch 'googlefonts/master'

6 years ago[subset] Don't fail on different checksum adjustment in subsetting tests.
Garret Rieger [Thu, 15 Feb 2018 01:00:18 +0000 (17:00 -0800)]
[subset] Don't fail on different checksum adjustment in subsetting tests.

6 years ago[subset] Fix hhea subsetting and clean up some memory leaks.
Garret Rieger [Thu, 15 Feb 2018 00:37:35 +0000 (16:37 -0800)]
[subset] Fix hhea subsetting and clean up some memory leaks.

6 years ago[subset] Add missing face reference in hb-subset-plan plus ensure all struct members...
Garret Rieger [Thu, 15 Feb 2018 00:05:39 +0000 (16:05 -0800)]
[subset] Add missing face reference in hb-subset-plan plus ensure all struct members are cleaned up on destroy.

6 years ago[subset] In hb-subset-test use hb_set_union instead of manually copying set.
Garret Rieger [Thu, 15 Feb 2018 00:01:08 +0000 (16:01 -0800)]
[subset] In hb-subset-test use hb_set_union instead of manually copying set.

6 years ago[subset] Restore hb_face_data_destroy to be internal.
Garret Rieger [Wed, 14 Feb 2018 23:57:11 +0000 (15:57 -0800)]
[subset] Restore hb_face_data_destroy to be internal.

6 years ago[subset] Fix memory leak in hb-ot-{maxp,os2}. Plus some formatting.
Garret Rieger [Wed, 14 Feb 2018 23:48:57 +0000 (15:48 -0800)]
[subset] Fix memory leak in hb-ot-{maxp,os2}. Plus some formatting.

6 years agoAnother linker tweaking
Behdad Esfahbod [Wed, 14 Feb 2018 23:46:27 +0000 (15:46 -0800)]
Another linker tweaking

Trying to fix this warning:
cc1: warning: command line option ‘-fno-threadsafe-statics’ is valid for C++/ObjC++ but not for C

Let's see what the clang bots think of it.

6 years ago[set] Tune size again
Behdad Esfahbod [Wed, 14 Feb 2018 23:44:48 +0000 (15:44 -0800)]
[set] Tune size again

Switch from a 128+64 hierarchy, to 32+32. New page size is 1024.
This should make set iteration faster, without affecting other op
performances much.

6 years ago[subset] remove TODO that was already done
Rod Sheeter [Wed, 14 Feb 2018 23:31:13 +0000 (15:31 -0800)]
[subset] remove TODO that was already done

6 years ago[subset] maxp wrong int type, note to use copy_writable_or_fail
Rod Sheeter [Wed, 14 Feb 2018 23:30:49 +0000 (15:30 -0800)]
[subset] maxp wrong int type, note to use copy_writable_or_fail

6 years ago[subset] return bool not hb_bool_t from table::subset
Rod Sheeter [Wed, 14 Feb 2018 23:24:49 +0000 (15:24 -0800)]
[subset] return bool not hb_bool_t from table::subset

6 years ago[subset] Use a supplier instead of memcpy and fix a few unnecessary {}s for cmap
Rod Sheeter [Wed, 14 Feb 2018 23:20:43 +0000 (15:20 -0800)]
[subset] Use a supplier instead of memcpy and fix a few unnecessary {}s for cmap

6 years ago[subset] add free
Rod Sheeter [Wed, 14 Feb 2018 23:04:35 +0000 (15:04 -0800)]
[subset] add free

6 years ago[subset] Give Behdad credit again
Rod Sheeter [Wed, 14 Feb 2018 23:04:15 +0000 (15:04 -0800)]
[subset] Give Behdad credit again

6 years ago[subset] First pass at hmtx
Rod Sheeter [Wed, 14 Feb 2018 22:16:25 +0000 (14:16 -0800)]
[subset] First pass at hmtx

6 years agoRedirect email notifications to another mailing list dedicated for this (#790)
Ebrahim Byagowi [Wed, 14 Feb 2018 21:45:39 +0000 (01:15 +0330)]
Redirect email notifications to another mailing list dedicated for this (#790)

6 years agoAdd .collect_logs and use it on CI bots, fixes #786 (#789)
Ebrahim Byagowi [Wed, 14 Feb 2018 21:13:46 +0000 (00:43 +0330)]
Add .collect_logs and use it on CI bots, fixes #786 (#789)

6 years ago[subset] Fix codepoint iteration in hb-subset-test.
Garret Rieger [Wed, 14 Feb 2018 19:17:53 +0000 (11:17 -0800)]
[subset] Fix codepoint iteration in hb-subset-test.

6 years agoAnother try
Behdad Esfahbod [Wed, 14 Feb 2018 19:12:09 +0000 (11:12 -0800)]
Another try

6 years agoFix compile error in hb-subset-test.
Garret Rieger [Wed, 14 Feb 2018 19:04:12 +0000 (11:04 -0800)]
Fix compile error in hb-subset-test.

6 years ago[test] Fix warning
Behdad Esfahbod [Wed, 14 Feb 2018 18:59:22 +0000 (10:59 -0800)]
[test] Fix warning

6 years agoTweak Makefile some more
Behdad Esfahbod [Wed, 14 Feb 2018 18:57:34 +0000 (10:57 -0800)]
Tweak Makefile some more

6 years ago[subset] Allow linking to libstdc++
Behdad Esfahbod [Wed, 14 Feb 2018 18:55:25 +0000 (10:55 -0800)]
[subset] Allow linking to libstdc++

We want to use it.

6 years agocopy all cmap groups at once
Rod Sheeter [Wed, 14 Feb 2018 18:52:41 +0000 (10:52 -0800)]
copy all cmap groups at once

6 years agoMerge remote-tracking branch 'upstream/master' into fixed
Garret Rieger [Wed, 14 Feb 2018 18:38:52 +0000 (10:38 -0800)]
Merge remote-tracking branch 'upstream/master' into fixed

6 years ago[subset] Drop GSUB, GDEF, GPOS, and DSIG from subsetter expected test outputs.
Garret Rieger [Tue, 13 Feb 2018 02:15:58 +0000 (18:15 -0800)]
[subset] Drop GSUB, GDEF, GPOS, and DSIG from subsetter expected test outputs.

6 years ago[subset] capitalize dsig.
Garret Rieger [Tue, 13 Feb 2018 02:14:50 +0000 (18:14 -0800)]
[subset] capitalize dsig.

6 years ago[subset] Extract maxp subsetting into hb-ot-maxp-table.
Garret Rieger [Tue, 13 Feb 2018 01:56:17 +0000 (17:56 -0800)]
[subset] Extract maxp subsetting into hb-ot-maxp-table.

6 years ago[subset] Add a test for OS/2 fixes during subsetting.
Garret Rieger [Tue, 13 Feb 2018 01:42:20 +0000 (17:42 -0800)]
[subset] Add a test for OS/2 fixes during subsetting.

6 years ago[subset] white and add inline in hb-ot-cmap-table.
Garret Rieger [Tue, 13 Feb 2018 01:33:48 +0000 (17:33 -0800)]
[subset] white and add inline in hb-ot-cmap-table.

6 years ago[subset] Correct usFirstCharIndex and usLastCharIndex in OS2 table when subsetting.
Garret Rieger [Tue, 13 Feb 2018 01:31:01 +0000 (17:31 -0800)]
[subset] Correct usFirstCharIndex and usLastCharIndex in OS2 table when subsetting.

6 years agoAnother attempt on fixing the tests on Travis (#788)
Ebrahim Byagowi [Wed, 14 Feb 2018 17:35:11 +0000 (21:05 +0330)]
Another attempt on fixing the tests on Travis (#788)

6 years ago[set] Add backwards iterator
Behdad Esfahbod [Wed, 14 Feb 2018 09:00:10 +0000 (01:00 -0800)]
[set] Add backwards iterator

New API:
- hb_set_previous()
- hb_set_previous_range()

6 years ago[set] Allow starting iteration from a non-member of the set
Behdad Esfahbod [Wed, 14 Feb 2018 07:51:45 +0000 (23:51 -0800)]
[set] Allow starting iteration from a non-member of the set

6 years agoAdd hb_blob_copy_writable_or_fail()
Behdad Esfahbod [Wed, 14 Feb 2018 06:12:36 +0000 (22:12 -0800)]
Add hb_blob_copy_writable_or_fail()

New API:
- hb_blob_copy_writable_or_fail()

6 years ago[subset] Rename constructor to hb_subset_input_create_or_fail()
Behdad Esfahbod [Wed, 14 Feb 2018 06:07:12 +0000 (22:07 -0800)]
[subset] Rename constructor to hb_subset_input_create_or_fail()

To signify that unlike rest of library, returns nullptr on failure.

6 years ago[use] Add dump-use-data
Behdad Esfahbod [Wed, 14 Feb 2018 05:46:28 +0000 (21:46 -0800)]
[use] Add dump-use-data

6 years ago[khmer] Add dump-khmer-data
Behdad Esfahbod [Wed, 14 Feb 2018 05:41:51 +0000 (21:41 -0800)]
[khmer] Add dump-khmer-data

6 years ago[myanmar] Add dump-myanmar-data
Behdad Esfahbod [Wed, 14 Feb 2018 05:38:15 +0000 (21:38 -0800)]
[myanmar] Add dump-myanmar-data

6 years ago[indic] Rename print-indic-table to dump-indic-data
Behdad Esfahbod [Wed, 14 Feb 2018 05:23:38 +0000 (21:23 -0800)]
[indic] Rename print-indic-table to dump-indic-data

Makes more sense given what this prints, err, dumps.

6 years ago[indic] Explicitly number indic_position_t
Behdad Esfahbod [Wed, 14 Feb 2018 05:22:47 +0000 (21:22 -0800)]
[indic] Explicitly number indic_position_t

So it's easier to cross-reference from output of print-indic-table.

6 years agoMore tweaking linker and linker flags
Behdad Esfahbod [Wed, 14 Feb 2018 05:18:00 +0000 (21:18 -0800)]
More tweaking linker and linker flags

6 years ago[indic] Share some copy/pasta code
Behdad Esfahbod [Wed, 14 Feb 2018 03:01:03 +0000 (19:01 -0800)]
[indic] Share some copy/pasta code

6 years ago[indic] Add print-indic-table
Behdad Esfahbod [Wed, 14 Feb 2018 02:54:26 +0000 (18:54 -0800)]
[indic] Add print-indic-table

6 years ago[subset] Fix loca offsets
Behdad Esfahbod [Wed, 14 Feb 2018 00:35:30 +0000 (16:35 -0800)]
[subset] Fix loca offsets

Was writing source font's offsets. Ouch.

6 years agoAnother tweak at libstdc++ things
Behdad Esfahbod [Tue, 13 Feb 2018 22:02:59 +0000 (14:02 -0800)]
Another tweak at libstdc++ things

To fix this warning:

cc1: warning: command line option ‘-fno-threadsafe-statics’ is valid for C++/ObjC++ but not for C

6 years ago[aat] Minor
Behdad Esfahbod [Tue, 13 Feb 2018 22:00:14 +0000 (14:00 -0800)]
[aat] Minor

6 years agoMinor
Behdad Esfahbod [Tue, 13 Feb 2018 21:59:39 +0000 (13:59 -0800)]
Minor

6 years ago[subset] hb_subset_input_t changes
Behdad Esfahbod [Tue, 13 Feb 2018 21:50:50 +0000 (13:50 -0800)]
[subset] hb_subset_input_t changes

6 years agoDisable threadsafe static's for all libraries
Behdad Esfahbod [Tue, 13 Feb 2018 21:39:50 +0000 (13:39 -0800)]
Disable threadsafe static's for all libraries

Even in libharfbuzz-subset, we still will handle our own threadsafety
for statics.

6 years agoSpecify the project name for coverity, trying to fix #785
Ebrahim Byagowi [Tue, 13 Feb 2018 11:42:43 +0000 (15:12 +0330)]
Specify the project name for coverity, trying to fix #785

6 years agoPass no-libstdc++ flags only to libraries suppressing it
Behdad Esfahbod [Tue, 13 Feb 2018 04:51:26 +0000 (20:51 -0800)]
Pass no-libstdc++ flags only to libraries suppressing it

6 years ago[subset] Allocate bulk memory with malloc(), not calloc()
Behdad Esfahbod [Tue, 13 Feb 2018 02:51:10 +0000 (18:51 -0800)]
[subset] Allocate bulk memory with malloc(), not calloc()

We use calloc() to allocate simple structs and set them to zero.
For bulk memory, use malloc() that doesn't zero.

6 years agoUse hb_face_get_upem() instead of face->get_upem()
Behdad Esfahbod [Tue, 13 Feb 2018 02:48:51 +0000 (18:48 -0800)]
Use hb_face_get_upem() instead of face->get_upem()

Such that hmtx accelerator can be used from libharfbuzz-subset.

6 years ago[subset] Remove unreachable code
Behdad Esfahbod [Tue, 13 Feb 2018 02:43:42 +0000 (18:43 -0800)]
[subset] Remove unreachable code

sanitizer.sanitize never return nullptr.

6 years agoAllow libharfbuzz-subset to link to libstdc++
Behdad Esfahbod [Tue, 13 Feb 2018 02:41:36 +0000 (18:41 -0800)]
Allow libharfbuzz-subset to link to libstdc++

We want to use it instead of reinventing hashmap...

Also, don't change linker for ICU since libicu also uses libstdc++.

6 years agoMove linker specifying to a better place
Ebrahim Byagowi [Mon, 12 Feb 2018 19:51:24 +0000 (23:21 +0330)]
Move linker specifying to a better place

6 years ago[subset] whitespace
Garret Rieger [Tue, 13 Feb 2018 00:30:21 +0000 (16:30 -0800)]
[subset] whitespace

6 years agooutput format 12 as enc 10 to match how Roboto did it
Rod Sheeter [Tue, 13 Feb 2018 00:25:32 +0000 (16:25 -0800)]
output format 12 as enc 10 to match how Roboto did it

6 years agobasic wiring for a (failing) cmap test
Rod Sheeter [Tue, 13 Feb 2018 00:01:15 +0000 (16:01 -0800)]
basic wiring for a (failing) cmap test

6 years agoauto-completed the wrong gids_to_retain
Rod Sheeter [Mon, 12 Feb 2018 22:37:47 +0000 (14:37 -0800)]
auto-completed the wrong gids_to_retain

6 years agoUse functions to get new gids. Avoid 0; fonttools drops it from cmap.
Rod Sheeter [Mon, 12 Feb 2018 22:29:23 +0000 (14:29 -0800)]
Use functions to get new gids. Avoid 0; fonttools drops it from cmap.

6 years ago[subset] Remove test-subset, testing is planned to be done at the table level here...
Garret Rieger [Mon, 12 Feb 2018 21:40:42 +0000 (13:40 -0800)]
[subset] Remove test-subset, testing is planned to be done at the table level here with test/subset covering the complete subsetting operation.

6 years ago[subset] added todo in test-subset-glyf.
Garret Rieger [Mon, 12 Feb 2018 21:36:28 +0000 (13:36 -0800)]
[subset] added todo in test-subset-glyf.

6 years ago[subset] re-enable test-subset-glyf. Refactor to use common functions in hb-subset...
Garret Rieger [Mon, 12 Feb 2018 21:35:17 +0000 (13:35 -0800)]
[subset] re-enable test-subset-glyf. Refactor to use common functions in hb-subset-test.h

6 years ago[subset] Add some helper functions for writing tests around subsetting.
Garret Rieger [Mon, 12 Feb 2018 21:33:55 +0000 (13:33 -0800)]
[subset] Add some helper functions for writing tests around subsetting.

6 years ago[subset] Fix loca generation, was previously writing the original glyph starting...
Garret Rieger [Mon, 12 Feb 2018 19:38:28 +0000 (11:38 -0800)]
[subset] Fix loca generation, was previously writing the original glyph starting offset.

6 years agoRename --with-stdcpp → --with-libstdc++
Khaled Hosny [Mon, 12 Feb 2018 14:45:36 +0000 (16:45 +0200)]
Rename --with-stdcpp → --with-libstdc++

Also improve wording a bit and fix make check in --with-libstdc++=yes.

6 years agowe love all our groups
Rod Sheeter [Mon, 12 Feb 2018 19:30:45 +0000 (11:30 -0800)]
we love all our groups

6 years agodrop GDEF, GPOS, GSUB, and dsig
Rod Sheeter [Mon, 12 Feb 2018 19:29:23 +0000 (11:29 -0800)]
drop GDEF, GPOS, GSUB, and dsig

6 years ago[subset] Set the new number of glyphs in maxp.
Garret Rieger [Mon, 12 Feb 2018 19:22:32 +0000 (11:22 -0800)]
[subset] Set the new number of glyphs in maxp.

6 years agoDon't force loca version to long.
Garret Rieger [Mon, 12 Feb 2018 19:18:28 +0000 (11:18 -0800)]
Don't force loca version to long.

6 years agoDestroy the subset plan at the end of subsetting.
Garret Rieger [Mon, 12 Feb 2018 18:15:59 +0000 (10:15 -0800)]
Destroy the subset plan at the end of subsetting.

6 years agoBuild a working cmap format 12
Rod Sheeter [Mon, 12 Feb 2018 18:12:11 +0000 (10:12 -0800)]
Build a working cmap format 12

6 years agosubset for real
Rod Sheeter [Mon, 12 Feb 2018 18:10:08 +0000 (10:10 -0800)]
subset for real

6 years agoC-style comments
Rod Sheeter [Mon, 12 Feb 2018 18:09:35 +0000 (10:09 -0800)]
C-style comments

6 years agoFix symbol exporting issue on msys2 and ✅ bringing all the bots (#781)
Ebrahim Byagowi [Mon, 12 Feb 2018 13:50:12 +0000 (17:20 +0330)]
Fix symbol exporting issue on msys2 and ✅ bringing all the bots (#781)

6 years agoMinor
Ebrahim Byagowi [Mon, 12 Feb 2018 11:54:22 +0000 (15:24 +0330)]
Minor

6 years agoMinor, don't skip the whole test when one .def file not found
Ebrahim Byagowi [Mon, 12 Feb 2018 11:48:13 +0000 (15:18 +0330)]
Minor, don't skip the whole test when one .def file not found

6 years agoApply check-defs.sh to -icu and -subset, toward mingw fix (#780)
Ebrahim Byagowi [Mon, 12 Feb 2018 11:40:13 +0000 (15:10 +0330)]
Apply check-defs.sh to -icu and -subset, toward mingw fix (#780)

6 years agoAdd --with-stdcpp for ossfuzzer and mupdf use (#770)
Ebrahim Byagowi [Mon, 12 Feb 2018 08:30:07 +0000 (12:00 +0330)]
Add --with-stdcpp for ossfuzzer and mupdf use (#770)