platform/upstream/libHarfBuzzSharp.git
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 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 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 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 agoAnother try
Behdad Esfahbod [Wed, 14 Feb 2018 19:12:09 +0000 (11:12 -0800)]
Another try

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 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 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 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)

6 years agominor
Ebrahim Byagowi [Mon, 12 Feb 2018 08:26:32 +0000 (11:56 +0330)]
minor

6 years agoAdd Travis based Coverity trigger (#778)
Ebrahim Byagowi [Mon, 12 Feb 2018 07:57:00 +0000 (11:27 +0330)]
Add Travis based Coverity trigger (#778)

6 years agoRemove linker selection from hb-ucdn
Behdad Esfahbod [Mon, 12 Feb 2018 03:12:52 +0000 (19:12 -0800)]
Remove linker selection from hb-ucdn

Since this is a convenience library, it's not actually linked. Or so I think.
Hoping this might fix this Appveyor failure:

https://ci.appveyor.com/project/harfbuzz/harfbuzz/build/job/9884jyb5vryja9pw

Making all in hb-ucdn
make[4]: Entering directory '/c/projects/harfbuzz/src/hb-ucdn'
  CC       libhb_ucdn_la-ucdn.lo
  GEN      libhb-ucdn.la
/bin/sh: libhb_ucdn_la-ucdn.lo: command not found
make[4]: *** [Makefile:404: libhb-ucdn.la] Error 127
make[4]: Leaving directory '/c/projects/harfbuzz/src/hb-ucdn'
make[3]: *** [Makefile:2548: all-recursive] Error 1
make[3]: Leaving directory '/c/projects/harfbuzz/src'
make[2]: *** [Makefile:1382: all] Error 2
make[2]: Leaving directory '/c/projects/harfbuzz/src'
make[1]: *** [Makefile:486: all-recursive] Error 1
make[1]: Leaving directory '/c/projects/harfbuzz'
make: *** [Makefile:418: all] Error 2

6 years agoAdd MSVC to no-visibility list
Behdad Esfahbod [Mon, 12 Feb 2018 03:08:59 +0000 (19:08 -0800)]
Add MSVC to no-visibility list

6 years agoAdd Sun compiler to no-visibility as well
Behdad Esfahbod [Mon, 12 Feb 2018 02:28:10 +0000 (18:28 -0800)]
Add Sun compiler to no-visibility as well

Fixes https://github.com/harfbuzz/harfbuzz/pull/776

6 years agoFix more warnings
Behdad Esfahbod [Mon, 12 Feb 2018 02:26:41 +0000 (18:26 -0800)]
Fix more warnings

6 years agoAnother try at fixing multiple-defintion of NullPool
Behdad Esfahbod [Mon, 12 Feb 2018 02:24:22 +0000 (18:24 -0800)]
Another try at fixing multiple-defintion of NullPool

This one might do it...

6 years ago[docs] Minor update
Behdad Esfahbod [Mon, 12 Feb 2018 01:49:18 +0000 (19:49 -0600)]
[docs] Minor update

6 years ago[subset] Another fixup
Behdad Esfahbod [Mon, 12 Feb 2018 01:46:06 +0000 (19:46 -0600)]
[subset] Another fixup

I broke this in c31fcf4c58d96eb7d9781a986991b1a79ac7be44

6 years agoTry at fixing multiple-definition of NullPool
Behdad Esfahbod [Mon, 12 Feb 2018 01:34:05 +0000 (19:34 -0600)]
Try at fixing multiple-definition of NullPool

If we don't have visibility, make NullPool static.

6 years ago[subset] Use auto_array_t where it does make sense
Behdad Esfahbod [Mon, 12 Feb 2018 01:01:44 +0000 (19:01 -0600)]
[subset] Use auto_array_t where it does make sense

Better fix for https://github.com/harfbuzz/harfbuzz/pull/775

6 years agoMinor
Behdad Esfahbod [Mon, 12 Feb 2018 01:00:42 +0000 (19:00 -0600)]
Minor

6 years agoInstall fonttools on two bots and enable cmake hb-subset test (#777)
Ebrahim Byagowi [Sun, 11 Feb 2018 12:10:55 +0000 (15:40 +0330)]
Install fonttools on two bots and enable cmake hb-subset test (#777)

6 years agoInitialize bad_indices on hb-subset (#775)
Ebrahim Byagowi [Sun, 11 Feb 2018 09:45:44 +0000 (13:15 +0330)]
Initialize bad_indices on hb-subset (#775)

6 years agofix gobject compile issue (#773)
Ebrahim Byagowi [Sun, 11 Feb 2018 08:33:33 +0000 (12:03 +0330)]
fix gobject compile issue (#773)

6 years ago[gpos] Adjust mark attachment heuristic
Behdad Esfahbod [Sun, 11 Feb 2018 03:50:26 +0000 (21:50 -0600)]
[gpos] Adjust mark attachment heuristic

Hopefully it...
fixes https://github.com/harfbuzz/harfbuzz/issues/740

6 years agoMore fixes
Behdad Esfahbod [Sat, 10 Feb 2018 22:13:06 +0000 (16:13 -0600)]
More fixes

6 years agoMisc warning fixes
Behdad Esfahbod [Sat, 10 Feb 2018 21:52:35 +0000 (15:52 -0600)]
Misc warning fixes

6 years agoFix djgpp bot
Behdad Esfahbod [Sat, 10 Feb 2018 21:47:50 +0000 (15:47 -0600)]
Fix djgpp bot

6 years agoMinor
Behdad Esfahbod [Sat, 10 Feb 2018 21:45:17 +0000 (15:45 -0600)]
Minor

6 years agoFavor use of static instead HB_INTERNAL
Ebrahim Byagowi [Sat, 10 Feb 2018 21:30:03 +0000 (01:00 +0330)]
Favor use of static instead HB_INTERNAL

6 years ago[test] Disable test-subset-glyf for now
Behdad Esfahbod [Sat, 10 Feb 2018 21:40:54 +0000 (15:40 -0600)]
[test] Disable test-subset-glyf for now

6 years agoMore fixes
Behdad Esfahbod [Sat, 10 Feb 2018 21:40:03 +0000 (15:40 -0600)]
More fixes

test-subset-glyf still failing. No idea why :(

6 years agoFix more build issues
Behdad Esfahbod [Sat, 10 Feb 2018 21:17:28 +0000 (15:17 -0600)]
Fix more build issues

Hopefully most bots come back with this...

6 years agoHide more symbols of hb-subset (#771)
Ebrahim Byagowi [Sat, 10 Feb 2018 21:12:06 +0000 (00:42 +0330)]
Hide more symbols of hb-subset (#771)

6 years ago[subset] Replace auto_array with prealloced_array
Behdad Esfahbod [Sat, 10 Feb 2018 20:20:10 +0000 (14:20 -0600)]
[subset] Replace auto_array with prealloced_array

auto_array has constructor/destructor. Cannot be used in POD object, as the clang
bots all noticed...

6 years agoFix some other bots
Behdad Esfahbod [Sat, 10 Feb 2018 20:11:16 +0000 (14:11 -0600)]
Fix some other bots

6 years ago[util] Remove use of ssize_t which was failing on MSVC
Behdad Esfahbod [Sat, 10 Feb 2018 20:09:06 +0000 (14:09 -0600)]
[util] Remove use of ssize_t which was failing on MSVC

6 years agoMinor
Behdad Esfahbod [Sat, 10 Feb 2018 19:37:28 +0000 (13:37 -0600)]
Minor

6 years agoFix symbol exporting and libstdc++ linkage of hb-subset (#769)
Ebrahim Byagowi [Sat, 10 Feb 2018 19:43:12 +0000 (23:13 +0330)]
Fix symbol exporting and libstdc++ linkage of hb-subset (#769)

6 years ago[aat] Add buffer messages
Behdad Esfahbod [Sat, 10 Feb 2018 19:35:17 +0000 (13:35 -0600)]
[aat] Add buffer messages

6 years agoMinor
Behdad Esfahbod [Sat, 10 Feb 2018 19:25:49 +0000 (13:25 -0600)]
Minor

6 years ago[subset] Merge remote-tracking branch 'googlefonts/master'
Behdad Esfahbod [Sat, 10 Feb 2018 19:24:22 +0000 (13:24 -0600)]
[subset] Merge remote-tracking branch 'googlefonts/master'

6 years agoReplace Supplier.advance with Supplier::operator+=
Behdad Esfahbod [Sat, 10 Feb 2018 19:15:57 +0000 (13:15 -0600)]
Replace Supplier.advance with Supplier::operator+=

6 years ago[util] Use setlinebuf() if present
Behdad Esfahbod [Sat, 10 Feb 2018 18:45:28 +0000 (12:45 -0600)]
[util] Use setlinebuf() if present

To work around mysterious bug on OS X.

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

6 years agoFix cast warnings on clang (#768)
Ebrahim Byagowi [Sat, 10 Feb 2018 16:20:11 +0000 (19:50 +0330)]
Fix cast warnings on clang (#768)

6 years agoIn glyf subsetting add suport for writing out a short loca table when possible.
Garret Rieger [Sat, 10 Feb 2018 02:41:21 +0000 (18:41 -0800)]
In glyf subsetting add suport for writing out a short loca table when possible.

6 years agoFirst pass at building a cmap
Rod Sheeter [Sat, 10 Feb 2018 01:33:34 +0000 (17:33 -0800)]
First pass at building a cmap

6 years agoCheck for failures from add table.
Garret Rieger [Sat, 10 Feb 2018 01:24:16 +0000 (17:24 -0800)]
Check for failures from add table.

6 years agoadd missing return
Rod Sheeter [Sat, 10 Feb 2018 01:14:37 +0000 (17:14 -0800)]
add missing return

6 years agoKeep a second set of glyph ids in subset plan which is sorted by glyph id and always...
Garret Rieger [Sat, 10 Feb 2018 00:22:09 +0000 (16:22 -0800)]
Keep a second set of glyph ids in subset plan which is sorted by glyph id and always has gid 0

6 years agoFormatting for hb-subset-plan.
Garret Rieger [Sat, 10 Feb 2018 00:06:33 +0000 (16:06 -0800)]
Formatting for hb-subset-plan.

6 years agoTry fixing build with Sun Studio
Behdad Esfahbod [Fri, 9 Feb 2018 22:04:23 +0000 (16:04 -0600)]
Try fixing build with Sun Studio

Trying to fix:
https://circleci.com/gh/harfbuzz/harfbuzz/6635

Also part of:
https://github.com/harfbuzz/harfbuzz/issues/630

6 years agoReturn empty face on hb_subset failure instead of null. Plus some minor cleanups...
Garret Rieger [Fri, 9 Feb 2018 21:54:43 +0000 (13:54 -0800)]
Return empty face on hb_subset failure instead of null. Plus some minor cleanups for _add_head_and_set_loca_version

6 years agoTypo
Behdad Esfahbod [Fri, 9 Feb 2018 21:51:45 +0000 (15:51 -0600)]
Typo

6 years ago[docs] Improve UNSAFE_TO_BREAK docs
Behdad Esfahbod [Fri, 9 Feb 2018 21:43:20 +0000 (15:43 -0600)]
[docs] Improve UNSAFE_TO_BREAK docs

6 years agoDocumentation for HB_GLYPH_FLAG_UNSAFE_TO_BREAK.
bungeman [Thu, 1 Feb 2018 18:31:25 +0000 (13:31 -0500)]
Documentation for HB_GLYPH_FLAG_UNSAFE_TO_BREAK.

HB_GLYPH_FLAG_UNSAFE_TO_BREAK means that the glyph with this flag is somehow affected by the previous logical glyph (the previous index in the buffer if ltr and the next index if the buffer is rtl). If these two glyphs are separated by a break (line or otherwise) then the underlying text should be re-shaped on both sides up to corresponding position in the text of some glyph not marked with this flag.

6 years agoUpdate head table with loca format selected by glyf+loca subsetting.
Garret Rieger [Fri, 9 Feb 2018 20:52:08 +0000 (12:52 -0800)]
Update head table with loca format selected by glyf+loca subsetting.

6 years agoRemove uneeded code in hb-subset.
Garret Rieger [Fri, 9 Feb 2018 18:55:15 +0000 (10:55 -0800)]
Remove uneeded code in hb-subset.

6 years ago[test/text-rendering-tests] Update from upstream
Behdad Esfahbod [Fri, 9 Feb 2018 17:05:17 +0000 (11:05 -0600)]
[test/text-rendering-tests] Update from upstream

6 years agoCreate the groups for a cmap format12. Does not yet build the actual table.
Rod Sheeter [Fri, 9 Feb 2018 03:39:57 +0000 (19:39 -0800)]
Create the groups for a cmap format12. Does not yet build the actual table.

6 years agocapture codepoints sorted so we can use them for cmap later. one day we will have...
Rod Sheeter [Fri, 9 Feb 2018 03:22:47 +0000 (19:22 -0800)]
capture codepoints sorted so we can use them for cmap later. one day we will have a map

6 years agoremove output noise
Rod Sheeter [Fri, 9 Feb 2018 03:20:58 +0000 (19:20 -0800)]
remove output noise

6 years agofix comment
Rod Sheeter [Fri, 9 Feb 2018 03:05:46 +0000 (19:05 -0800)]
fix comment

6 years agocomment the serialization of table
Rod Sheeter [Fri, 9 Feb 2018 03:03:41 +0000 (19:03 -0800)]
comment the serialization of table

6 years agoAdd an extra entry to the end of the loca table to identify the end of the last glyph...
Garret Rieger [Fri, 9 Feb 2018 02:32:24 +0000 (18:32 -0800)]
Add an extra entry to the end of the loca table to identify the end of the last glyph's data.

6 years agoApply per table subsetting while building the new face in hb_subset.
Garret Rieger [Fri, 9 Feb 2018 02:18:16 +0000 (18:18 -0800)]
Apply per table subsetting while building the new face in hb_subset.