platform/upstream/libHarfBuzzSharp.git
7 years agoUpdate _POSIX_C_SOURCE to the latest version
Ting-Wei Lan [Fri, 12 Jan 2018 07:33:16 +0000 (15:33 +0800)]
Update _POSIX_C_SOURCE to the latest version

Defining _POSIX_C_SOURCE to an old version on FreeBSD can cause C99 to
be disabled in libc.

7 years ago[aat] Port RearrangementSubtable to StateTableDriver
Behdad Esfahbod [Thu, 11 Jan 2018 23:08:22 +0000 (00:08 +0100)]
[aat] Port RearrangementSubtable to StateTableDriver

7 years ago[aat] Add StateTableDriver and convert ContextualSubtable to it
Behdad Esfahbod [Thu, 11 Jan 2018 23:01:36 +0000 (00:01 +0100)]
[aat] Add StateTableDriver and convert ContextualSubtable to it

7 years ago[test/text-rendering-tests] Update README
Behdad Esfahbod [Thu, 11 Jan 2018 21:47:08 +0000 (22:47 +0100)]
[test/text-rendering-tests] Update README

7 years ago[test] Disable MORX-12
Behdad Esfahbod [Thu, 11 Jan 2018 21:46:19 +0000 (22:46 +0100)]
[test] Disable MORX-12

Ouch. I need a better workflow for this.

7 years ago[aat] Remove 'mort' support
Behdad Esfahbod [Thu, 11 Jan 2018 21:43:57 +0000 (22:43 +0100)]
[aat] Remove 'mort' support

It's dead, Jim!

7 years ago[aat] Allow DontAdvance
Behdad Esfahbod [Thu, 11 Jan 2018 18:25:21 +0000 (19:25 +0100)]
[aat] Allow DontAdvance

Apparently CoreText does allow these.  To be done: detect infinite
loops.

Fixes MORX-12 test.

7 years ago[test/text-rendering-tests] Update from upstream
Behdad Esfahbod [Thu, 11 Jan 2018 18:22:37 +0000 (19:22 +0100)]
[test/text-rendering-tests] Update from upstream

7 years ago[aat] Sanitize ContextualSubtable
Behdad Esfahbod [Thu, 11 Jan 2018 17:54:49 +0000 (18:54 +0100)]
[aat] Sanitize ContextualSubtable

7 years agoMore warning fixes
Behdad Esfahbod [Thu, 11 Jan 2018 17:19:42 +0000 (18:19 +0100)]
More warning fixes

7 years ago[aat] Sanitize StateTable
Behdad Esfahbod [Thu, 11 Jan 2018 17:15:53 +0000 (18:15 +0100)]
[aat] Sanitize StateTable

7 years ago[aat] Actually fix d887f931485b715775e922516a4b0de5bb92c34f
Behdad Esfahbod [Thu, 11 Jan 2018 17:01:10 +0000 (18:01 +0100)]
[aat] Actually fix d887f931485b715775e922516a4b0de5bb92c34f

7 years ago[test/text-rendering-tests] Actually disable MORX-11
Behdad Esfahbod [Thu, 11 Jan 2018 16:59:03 +0000 (17:59 +0100)]
[test/text-rendering-tests] Actually disable MORX-11

7 years ago[buffer] Fix compiler warnings
Behdad Esfahbod [Thu, 11 Jan 2018 16:57:46 +0000 (17:57 +0100)]
[buffer] Fix compiler warnings

line 323: Warning: info hides hb_buffer_t::info
...

7 years ago[aat] Make bots happy
Behdad Esfahbod [Thu, 11 Jan 2018 16:41:34 +0000 (17:41 +0100)]
[aat] Make bots happy

Don't know why this is not caught by my compiler.  Looks like clang catches it
while gcc doesn't.

In file included from ../src/hb-aat-layout-morx-table.hh:31:
../src/hb-aat-layout-common-private.hh:523:30: error: no member named 'static_size' in 'AAT::ContextualSubtable<AAT::MorxTypes>::EntryData'
  DEFINE_SIZE_STATIC (4 + T::static_size);
                            ~~~^

7 years ago[aat] In NoncontextualSubtable, handle MarkLast with end-of-line transition
Behdad Esfahbod [Thu, 11 Jan 2018 14:23:24 +0000 (15:23 +0100)]
[aat] In NoncontextualSubtable, handle MarkLast with end-of-line transition

Fixes MORX-11 test.

7 years ago[test/text-rendering-tests] Update from upstream
Behdad Esfahbod [Thu, 11 Jan 2018 14:18:22 +0000 (15:18 +0100)]
[test/text-rendering-tests] Update from upstream

7 years ago[aat] Implement ContextualSubtable
Behdad Esfahbod [Thu, 11 Jan 2018 14:15:07 +0000 (15:15 +0100)]
[aat] Implement ContextualSubtable

Tested with Zapfino and text "2nd". Sascha will create tests later.

7 years ago[aat] Towards implementing ContextualSubtable
Behdad Esfahbod [Thu, 11 Jan 2018 13:50:47 +0000 (14:50 +0100)]
[aat] Towards implementing ContextualSubtable

7 years ago[aat] Implement end-of-text in state machine
Behdad Esfahbod [Thu, 11 Jan 2018 11:00:28 +0000 (12:00 +0100)]
[aat] Implement end-of-text in state machine

Passes MORX-10 test now.

7 years ago[test/text-rendering-tests] Update from upstream
Behdad Esfahbod [Thu, 11 Jan 2018 10:55:29 +0000 (11:55 +0100)]
[test/text-rendering-tests] Update from upstream

7 years agoMinor
Behdad Esfahbod [Thu, 11 Jan 2018 10:55:10 +0000 (11:55 +0100)]
Minor

7 years ago[cmake] Update and unbreak (#700)
Ebrahim Byagowi [Thu, 11 Jan 2018 12:13:23 +0000 (15:43 +0330)]
[cmake] Update and unbreak (#700)

7 years ago[aat] Generate finegrained unsafe-to-break in state-machine!
Behdad Esfahbod [Thu, 11 Jan 2018 10:49:07 +0000 (11:49 +0100)]
[aat] Generate finegrained unsafe-to-break in state-machine!

Neato.

7 years ago[buffer] Fix crash
Behdad Esfahbod [Thu, 11 Jan 2018 10:37:12 +0000 (11:37 +0100)]
[buffer] Fix crash

7 years ago[test/text-rendering-tests] Add DISABLED list
Behdad Esfahbod [Thu, 11 Jan 2018 09:51:46 +0000 (10:51 +0100)]
[test/text-rendering-tests] Add DISABLED list

7 years ago[test/in-house] Add Makefile.sources
Behdad Esfahbod [Thu, 11 Jan 2018 09:48:42 +0000 (10:48 +0100)]
[test/in-house] Add Makefile.sources

7 years agoMinor
Behdad Esfahbod [Thu, 11 Jan 2018 09:47:31 +0000 (10:47 +0100)]
Minor

7 years ago[test/text-rendering-tests] Update from upstream
Behdad Esfahbod [Thu, 11 Jan 2018 09:30:22 +0000 (10:30 +0100)]
[test/text-rendering-tests] Update from upstream

Also adds an update.sh script that does this automatically.

7 years ago[test/text-rendering-tests] Add README and COPYING
Behdad Esfahbod [Thu, 11 Jan 2018 09:11:01 +0000 (10:11 +0100)]
[test/text-rendering-tests] Add README and COPYING

7 years ago[aat] Fix RearrangementSubtable action
Behdad Esfahbod [Thu, 11 Jan 2018 09:08:25 +0000 (10:08 +0100)]
[aat] Fix RearrangementSubtable action

7 years agoMinor
Behdad Esfahbod [Thu, 11 Jan 2018 08:58:42 +0000 (09:58 +0100)]
Minor

7 years ago[aat] Mark state-machine-based lookup as completely unsafe-to-break
Behdad Esfahbod [Thu, 11 Jan 2018 08:57:55 +0000 (09:57 +0100)]
[aat] Mark state-machine-based lookup as completely unsafe-to-break

To be improved later.

7 years ago[aat] Implement RearrangementSubtable
Behdad Esfahbod [Thu, 11 Jan 2018 08:15:34 +0000 (09:15 +0100)]
[aat] Implement RearrangementSubtable

7 years agoMove the #define of _GNU_SOURCE to the top of hb-private.hh (#697)
Ebrahim Byagowi [Thu, 11 Jan 2018 09:03:22 +0000 (12:33 +0330)]
Move the #define of _GNU_SOURCE to the top of hb-private.hh (#697)

This fixes the build on Cygwin.

7 years ago[cmake] Fix hb-blob test (#699)
Ebrahim Byagowi [Thu, 11 Jan 2018 09:01:05 +0000 (12:31 +0330)]
[cmake] Fix hb-blob test (#699)

7 years ago[test] Better tests output by converting stderr to stdout (#696)
Ebrahim Byagowi [Thu, 11 Jan 2018 05:18:22 +0000 (08:48 +0330)]
[test] Better tests output by converting stderr to stdout (#696)

https://gitlab.kitware.com/cmake/cmake/issues/17630

7 years ago[test] Print shaping output on CI fails (#695)
Ebrahim Byagowi [Thu, 11 Jan 2018 04:45:06 +0000 (08:15 +0330)]
[test] Print shaping output on CI fails (#695)

7 years ago[cmake] Another try on making sure feature testing is working (#691)
Ebrahim Byagowi [Wed, 10 Jan 2018 20:21:56 +0000 (23:51 +0330)]
[cmake] Another try on making sure feature testing is working (#691)

7 years ago[util] Replace setlinebuf
Behdad Esfahbod [Wed, 10 Jan 2018 15:47:47 +0000 (16:47 +0100)]
[util] Replace setlinebuf

7 years ago[util] Set stdio files to line buffering
Behdad Esfahbod [Wed, 10 Jan 2018 12:54:36 +0000 (13:54 +0100)]
[util] Set stdio files to line buffering

So we can stream lines to hb-shape and read output.

7 years ago[aat] Add Class subtable thingy
Behdad Esfahbod [Wed, 10 Jan 2018 10:09:53 +0000 (11:09 +0100)]
[aat] Add Class subtable thingy

From old 'mort' table.

7 years ago[cmake] Add header existence tests (#685)
Ebrahim Byagowi [Wed, 10 Jan 2018 12:15:12 +0000 (15:45 +0330)]
[cmake] Add header existence tests (#685)

7 years ago[cmake] Fix tests against latest changes (#690)
Ebrahim Byagowi [Wed, 10 Jan 2018 08:43:28 +0000 (12:13 +0330)]
[cmake] Fix tests against latest changes (#690)

7 years agoImprove HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES docs
Khaled Hosny [Wed, 10 Jan 2018 05:12:07 +0000 (07:12 +0200)]
Improve HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES docs

Add the note about absolute glyph positions from the commit message.

7 years ago[test] Move test handling to sundirectories
Behdad Esfahbod [Wed, 10 Jan 2018 04:40:43 +0000 (05:40 +0100)]
[test] Move test handling to sundirectories

7 years ago[test] Whitelist one more passing test
Behdad Esfahbod [Wed, 10 Jan 2018 04:26:55 +0000 (05:26 +0100)]
[test] Whitelist one more passing test

7 years agoCalculate anchor positions in float, then round
Behdad Esfahbod [Wed, 10 Jan 2018 04:13:47 +0000 (05:13 +0100)]
Calculate anchor positions in float, then round

Hoping to reduce rounding error, to make tests happier...
No luck.

7 years ago[test] Whitelist one more passing test
Behdad Esfahbod [Wed, 10 Jan 2018 04:02:42 +0000 (05:02 +0100)]
[test] Whitelist one more passing test

7 years agoRound, instead of floor, when applying variations
Behdad Esfahbod [Wed, 10 Jan 2018 03:33:08 +0000 (04:33 +0100)]
Round, instead of floor, when applying variations

Hoping this would fix remaining text-rendering-tests failures,
but so far no luck.

7 years ago[test] Whitelist one passing test
Behdad Esfahbod [Wed, 10 Jan 2018 03:12:35 +0000 (04:12 +0100)]
[test] Whitelist one passing test

7 years agoMinor
Behdad Esfahbod [Wed, 10 Jan 2018 02:56:43 +0000 (03:56 +0100)]
Minor

7 years agoMinor
Behdad Esfahbod [Wed, 10 Jan 2018 02:51:09 +0000 (03:51 +0100)]
Minor

7 years ago[test] Another try
Behdad Esfahbod [Wed, 10 Jan 2018 02:49:32 +0000 (03:49 +0100)]
[test] Another try

Making cmake happy this time.

7 years ago[test] Fix text disabling
Behdad Esfahbod [Wed, 10 Jan 2018 02:48:09 +0000 (03:48 +0100)]
[test] Fix text disabling

Ouch, make!

7 years ago[test/text-rendering-tests] Disable failing tests
Behdad Esfahbod [Wed, 10 Jan 2018 02:41:55 +0000 (03:41 +0100)]
[test/text-rendering-tests] Disable failing tests

7 years ago[test/text-rendering-tests] Disable failing tests
Behdad Esfahbod [Wed, 10 Jan 2018 02:38:52 +0000 (03:38 +0100)]
[test/text-rendering-tests] Disable failing tests

7 years agoAdd HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES
Behdad Esfahbod [Wed, 10 Jan 2018 02:35:20 +0000 (03:35 +0100)]
Add HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES

New API:
HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES
hb-shape / hb-view --remove-default-ignorables

One more text-rendering-tests test passing.  Eleven failing.

7 years ago[test/text-rendering-tests] Hook up font variations
Behdad Esfahbod [Wed, 10 Jan 2018 02:22:08 +0000 (03:22 +0100)]
[test/text-rendering-tests] Hook up font variations

Six more passing. Twelve failing now.

7 years ago[test] Add tests from text-rendering-tests repo
Behdad Esfahbod [Wed, 10 Jan 2018 02:16:56 +0000 (03:16 +0100)]
[test] Add tests from text-rendering-tests repo

https://github.com/unicode-org/text-rendering-tests

7 years agoPrefix int types with HB
Behdad Esfahbod [Wed, 10 Jan 2018 02:07:30 +0000 (03:07 +0100)]
Prefix int types with HB

Such a headache that Windows defines UINT8, ...; Just prefix it.

7 years ago[aat] Try fixing VC bots
Behdad Esfahbod [Wed, 10 Jan 2018 01:56:29 +0000 (02:56 +0100)]
[aat] Try fixing VC bots

c:\projects\harfbuzz\src\hb-aat-layout-common-private.hh(51): error C2872: 'UINT16': ambiguous symbol [C:\projects\harfbuzz\build\harfbuzz.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\shared\basetsd.h(80): note: could be 'unsigned short UINT16'
c:\projects\harfbuzz\src\hb-open-type-private.hh(648): note: or       'OT::UINT16'

7 years agoDisable processing of morx table in ot shaper
Behdad Esfahbod [Wed, 10 Jan 2018 01:49:36 +0000 (02:49 +0100)]
Disable processing of morx table in ot shaper

So I can merge this to master...

7 years ago[util] Add hb-shape --ned
Behdad Esfahbod [Wed, 10 Jan 2018 01:48:04 +0000 (02:48 +0100)]
[util] Add hb-shape --ned

For not displaying extra data: no clusters, no advance. Just data pertaining
to where glyphs end up on the screen.

7 years ago[test] Minor
Behdad Esfahbod [Wed, 10 Jan 2018 01:37:39 +0000 (02:37 +0100)]
[test] Minor

7 years ago[kern] Mark unsafe-to-break
Behdad Esfahbod [Wed, 10 Jan 2018 01:35:59 +0000 (02:35 +0100)]
[kern] Mark unsafe-to-break

7 years agoAdd option to buffer serialization to not output glyph advances
Behdad Esfahbod [Wed, 10 Jan 2018 01:20:14 +0000 (02:20 +0100)]
Add option to buffer serialization to not output glyph advances

When advances are not printed, glyph offsets reflect absolute glyph
positions.

New API:
HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES
hb-shape --no-advances

7 years ago[test] Add script for extracting tests from text-rendering-tests
Behdad Esfahbod [Wed, 10 Jan 2018 00:54:12 +0000 (01:54 +0100)]
[test] Add script for extracting tests from text-rendering-tests

Work in progress...

https://github.com/unicode-org/text-rendering-tests

7 years ago[test] Minor
Behdad Esfahbod [Wed, 10 Jan 2018 00:13:36 +0000 (01:13 +0100)]
[test] Minor

7 years ago[test] Simplify test runner
Behdad Esfahbod [Tue, 9 Jan 2018 22:15:54 +0000 (23:15 +0100)]
[test] Simplify test runner

Always pass hb-shape as first argument to run-tests.py.

Also require automake 1.13.

7 years ago[test] Minor
Behdad Esfahbod [Tue, 9 Jan 2018 22:11:00 +0000 (23:11 +0100)]
[test] Minor

7 years ago[test] Reorganize test suite
Behdad Esfahbod [Tue, 9 Jan 2018 20:58:57 +0000 (21:58 +0100)]
[test] Reorganize test suite

In anticipation of importing more test suites.

7 years ago[test] Remove unused hb-diff-ngrams
Behdad Esfahbod [Tue, 9 Jan 2018 20:35:21 +0000 (21:35 +0100)]
[test] Remove unused hb-diff-ngrams

7 years ago[test] Remove unused manifest stuff
Behdad Esfahbod [Tue, 9 Jan 2018 20:33:38 +0000 (21:33 +0100)]
[test] Remove unused manifest stuff

7 years ago[test] Move test files around
Behdad Esfahbod [Tue, 9 Jan 2018 17:23:19 +0000 (18:23 +0100)]
[test] Move test files around

7 years ago[aat/morx] Implement NoncontextualSubtables
Behdad Esfahbod [Tue, 9 Jan 2018 16:55:17 +0000 (17:55 +0100)]
[aat/morx] Implement NoncontextualSubtables

Also makes hb-ot-shape call morx for now instead of GSUB... Just for testing.

7 years agoMinor
Behdad Esfahbod [Tue, 9 Jan 2018 15:32:58 +0000 (16:32 +0100)]
Minor

7 years ago[aat] Implement Lookup table
Behdad Esfahbod [Tue, 9 Jan 2018 14:48:51 +0000 (15:48 +0100)]
[aat] Implement Lookup table

Untested, but compiles.

7 years agoMinor
Behdad Esfahbod [Tue, 9 Jan 2018 11:06:38 +0000 (12:06 +0100)]
Minor

7 years ago[aat] Update previous commits for rebase on master
Behdad Esfahbod [Mon, 8 Jan 2018 14:32:55 +0000 (14:32 +0000)]
[aat] Update previous commits for rebase on master

7 years ago[aat] Start implementing common table formats
Behdad Esfahbod [Thu, 17 Aug 2017 23:55:54 +0000 (16:55 -0700)]
[aat] Start implementing common table formats

7 years ago[aat] Start implementing Apple AAT morx table
Behdad Esfahbod [Tue, 15 Aug 2017 00:24:36 +0000 (17:24 -0700)]
[aat] Start implementing Apple AAT morx table

7 years ago[cmake] Add autotools like feature testing (#683)
Ebrahim Byagowi [Mon, 8 Jan 2018 22:09:42 +0000 (01:39 +0330)]
[cmake] Add autotools like feature testing (#683)

7 years ago[ft] Use FT_Done_MM_Var() if available
Behdad Esfahbod [Mon, 8 Jan 2018 10:07:46 +0000 (10:07 +0000)]
[ft] Use FT_Done_MM_Var() if available

7 years ago[khmer] Relax!
Behdad Esfahbod [Fri, 5 Jan 2018 18:09:29 +0000 (18:09 +0000)]
[khmer] Relax!

Apparently we don't use OT_A either.

7 years ago[khmer] Drop another joiner
Behdad Esfahbod [Fri, 5 Jan 2018 18:06:00 +0000 (18:06 +0000)]
[khmer] Drop another joiner

7 years ago[khmer] Shuffle
Behdad Esfahbod [Fri, 5 Jan 2018 18:04:56 +0000 (18:04 +0000)]
[khmer] Shuffle

7 years ago[khmer] Simplify grammar some more
Behdad Esfahbod [Fri, 5 Jan 2018 18:03:00 +0000 (18:03 +0000)]
[khmer] Simplify grammar some more

Numbers down (from 38):

KHMER: 299090 out of 299124 tests passed. 34 failed (0.0113665%)

7 years ago[khmer] Clean
Behdad Esfahbod [Fri, 5 Jan 2018 18:01:01 +0000 (18:01 +0000)]
[khmer] Clean

7 years ago[khmer] Limit number of joiners
Behdad Esfahbod [Fri, 5 Jan 2018 17:59:43 +0000 (17:59 +0000)]
[khmer] Limit number of joiners

7 years ago[khmer] Relax number of consonants / matras allowed
Behdad Esfahbod [Fri, 5 Jan 2018 17:57:39 +0000 (17:57 +0000)]
[khmer] Relax number of consonants / matras allowed

New numbers (down from 39):

KHMER: 299086 out of 299124 tests passed. 38 failed (0.0127038%)

7 years ago[khmer] Allow Independent Vowels where stacked consonants are allowed
Behdad Esfahbod [Fri, 5 Jan 2018 17:52:24 +0000 (17:52 +0000)]
[khmer] Allow Independent Vowels where stacked consonants are allowed

New numbers (down from 44):

KHMER: 299085 out of 299124 tests passed. 39 failed (0.0130381%)

7 years ago[khmer] Drop some more joiners
Behdad Esfahbod [Fri, 5 Jan 2018 17:47:35 +0000 (17:47 +0000)]
[khmer] Drop some more joiners

7 years ago[khmer] Drop some more
Behdad Esfahbod [Fri, 5 Jan 2018 17:46:49 +0000 (17:46 +0000)]
[khmer] Drop some more

7 years ago[khmer] Drop some more grammar
Behdad Esfahbod [Fri, 5 Jan 2018 17:45:48 +0000 (17:45 +0000)]
[khmer] Drop some more grammar

7 years ago[khmer] Drop some more from grammar
Behdad Esfahbod [Fri, 5 Jan 2018 17:44:18 +0000 (17:44 +0000)]
[khmer] Drop some more from grammar

7 years ago[khmer] Drop final_halant_group
Behdad Esfahbod [Fri, 5 Jan 2018 17:43:31 +0000 (17:43 +0000)]
[khmer] Drop final_halant_group

7 years agoMinor
Behdad Esfahbod [Fri, 5 Jan 2018 17:34:26 +0000 (17:34 +0000)]
Minor

7 years ago[indic] Remove unused OT_VD category
Behdad Esfahbod [Fri, 5 Jan 2018 17:27:48 +0000 (17:27 +0000)]
[indic] Remove unused OT_VD category

7 years ago[khmer] Shave off some more from the grammar
Behdad Esfahbod [Fri, 5 Jan 2018 17:21:55 +0000 (17:21 +0000)]
[khmer] Shave off some more from the grammar