platform/upstream/libHarfBuzzSharp.git
7 years ago[coretext] Fix build
Behdad Esfahbod [Fri, 13 Oct 2017 08:30:19 +0000 (10:30 +0200)]
[coretext] Fix build

7 years ago[coretext] Pass correct font size to CoreText
Behdad Esfahbod [Fri, 13 Oct 2017 08:21:07 +0000 (10:21 +0200)]
[coretext] Pass correct font size to CoreText

CoreText "point"s are not typographic points, but CSS pixels.  Ie.
they are 96 per inch, not 72 per inch.

7 years agoMerge remote-tracking branch 'origin/master'
Behdad Esfahbod [Thu, 12 Oct 2017 12:08:58 +0000 (14:08 +0200)]
Merge remote-tracking branch 'origin/master'

7 years ago[indic] Special-case Kannada Ra,H,ZWJ sequence
Behdad Esfahbod [Thu, 12 Oct 2017 12:07:37 +0000 (14:07 +0200)]
[indic] Special-case Kannada Ra,H,ZWJ sequence

Fixes https://github.com/behdad/harfbuzz/issues/435

7 years agoReplacing 'cluster' with 'syllable' when comments describe certain Indic shaping...
n8willis [Thu, 12 Oct 2017 11:48:48 +0000 (12:48 +0100)]
Replacing 'cluster' with 'syllable' when comments describe certain Indic shaping behavior (#563)

* Clarified wording of syllable/cluster behavior in Uniscribe in final_reordering; changed one other probable typo.

* Additional syllable/cluster swap in comments for final reordering and for initial-reordering matra decomposition.

7 years agoMinor BUILD.md fix (#565)
ebraminio [Thu, 12 Oct 2017 11:45:49 +0000 (15:15 +0330)]
Minor BUILD.md fix (#565)

7 years ago[coretext] Use fabs() to silence compiler warning
Behdad Esfahbod [Thu, 12 Oct 2017 10:01:48 +0000 (12:01 +0200)]
[coretext] Use fabs() to silence compiler warning

7 years ago[coretext] Activate tracking for system fonts
Dominik Röttsches [Thu, 12 Oct 2017 09:49:37 +0000 (11:49 +0200)]
[coretext] Activate tracking for system fonts

Another attempt at fully fixing
https://github.com/behdad/harfbuzz/issues/360

7 years agoCMakelists.txt fix for Freetype builds (#564)
Khaled Hosny [Thu, 12 Oct 2017 09:05:08 +0000 (12:05 +0300)]
CMakelists.txt fix for Freetype builds (#564)

Instead of searching for freetype using pkg-config, use the FindFreetype
feature of CMake. This allows for better integration with other projects
that make use of CMake.

Fixes https://github.com/behdad/harfbuzz/issues/518

7 years ago[coretext] Use fabsf() instead of abs()
Behdad Esfahbod [Thu, 12 Oct 2017 08:46:09 +0000 (10:46 +0200)]
[coretext] Use fabsf() instead of abs()

Fixes bots.

Link libharfbuzz.so with -lm.  Surprising that we survived without
it so far!

7 years agoRemove nmake port of harfbuzz (#562)
ebraminio [Thu, 12 Oct 2017 08:41:47 +0000 (12:11 +0330)]
Remove nmake port of harfbuzz (#562)

7 years ago[ft] Add hb_ft_font_changed()
Behdad Esfahbod [Thu, 12 Oct 2017 08:33:16 +0000 (10:33 +0200)]
[ft] Add hb_ft_font_changed()

When the font size or variations settings on underlying FT_Face change,
one can call hb_ft_font_changed() and continue using hb_font created using
hb_ft_font_create().

Fixes https://github.com/behdad/harfbuzz/issues/559

New API:
hb_ft_font_changed()

7 years agoAdd hb_face_get_table_tags()
Behdad Esfahbod [Wed, 11 Oct 2017 15:22:44 +0000 (17:22 +0200)]
Add hb_face_get_table_tags()

New API:
hb_face_get_table_tags()

Fixes https://github.com/behdad/harfbuzz/issues/560

7 years agoRemove cast of functions to (hb_destroy_func_t)
Behdad Esfahbod [Wed, 11 Oct 2017 13:51:31 +0000 (15:51 +0200)]
Remove cast of functions to (hb_destroy_func_t)

Fixes https://github.com/behdad/harfbuzz/issues/474

7 years ago[coretext] Minor
Behdad Esfahbod [Wed, 11 Oct 2017 13:38:21 +0000 (15:38 +0200)]
[coretext] Minor

7 years agoChange ptem API to make 0 mean unset
Behdad Esfahbod [Wed, 11 Oct 2017 13:37:50 +0000 (15:37 +0200)]
Change ptem API to make 0 mean unset

7 years ago[coretext] Minor
Behdad Esfahbod [Wed, 11 Oct 2017 13:29:53 +0000 (15:29 +0200)]
[coretext] Minor

7 years ago[coretext] Adjust font size check for 0
Behdad Esfahbod [Wed, 11 Oct 2017 13:29:22 +0000 (15:29 +0200)]
[coretext] Adjust font size check for 0

7 years agoCorrectly initialize ptem
Behdad Esfahbod [Wed, 11 Oct 2017 13:24:22 +0000 (15:24 +0200)]
Correctly initialize ptem

7 years ago[coretext-aat] Also pass through CoreText if font has kerx table
Behdad Esfahbod [Wed, 11 Oct 2017 13:02:48 +0000 (15:02 +0200)]
[coretext-aat] Also pass through CoreText if font has kerx table

SFNSText has kerx table which apparently is applied.

7 years ago[coretext] Change default point size to 12
Behdad Esfahbod [Wed, 11 Oct 2017 12:09:30 +0000 (14:09 +0200)]
[coretext] Change default point size to 12

7 years agoMerge branch 'coretext-optical-sizing'
Behdad Esfahbod [Wed, 11 Oct 2017 11:35:32 +0000 (13:35 +0200)]
Merge branch 'coretext-optical-sizing'

Should fix https://github.com/behdad/harfbuzz/issues/360

7 years ago[coretext] Recreate CTFont if pt size changed
Dominik Röttsches [Wed, 11 Oct 2017 11:32:38 +0000 (13:32 +0200)]
[coretext] Recreate CTFont if pt size changed

Attempt at fixing #360

7 years ago[coretext] Fix build
Dominik Röttsches [Wed, 11 Oct 2017 11:24:39 +0000 (13:24 +0200)]
[coretext] Fix build

7 years ago[coretext] Another try
Behdad Esfahbod [Wed, 11 Oct 2017 11:17:46 +0000 (13:17 +0200)]
[coretext] Another try

7 years ago[coretext] Move CT_Font to font data
Behdad Esfahbod [Wed, 11 Oct 2017 11:05:59 +0000 (13:05 +0200)]
[coretext] Move CT_Font to font data

Towards implementing optical sizing.  Untested; won't compile.

https://github.com/behdad/harfbuzz/issues/360

7 years ago[coretext] Move font size to a macro
Behdad Esfahbod [Wed, 11 Oct 2017 10:51:25 +0000 (12:51 +0200)]
[coretext] Move font size to a macro

7 years agoInfrastructure for creating CTFont with correct font size
Behdad Esfahbod [Wed, 11 Oct 2017 10:43:46 +0000 (12:43 +0200)]
Infrastructure for creating CTFont with correct font size

https://github.com/behdad/harfbuzz/issues/360

7 years ago[coretext] Change default font size from 36 to 18
Behdad Esfahbod [Wed, 11 Oct 2017 10:28:06 +0000 (12:28 +0200)]
[coretext] Change default font size from 36 to 18

7 years agoRemove dirty tracking
Behdad Esfahbod [Wed, 11 Oct 2017 10:23:35 +0000 (12:23 +0200)]
Remove dirty tracking

Turns out I don't need this to resolve CoreText optical sizing
issue after all.

https://github.com/behdad/harfbuzz/issues/360

7 years agoAdd hb_font_[sg]et_ptem() to set/get point size on font
Behdad Esfahbod [Wed, 11 Oct 2017 09:47:47 +0000 (11:47 +0200)]
Add hb_font_[sg]et_ptem() to set/get point size on font

New API:
hb_font_set_ptem()
hb_font_get_ptem()

Needed for hb-coretext optical sizing:
https://github.com/behdad/harfbuzz/issues/360

7 years agoFix TODO item
Behdad Esfahbod [Wed, 11 Oct 2017 09:34:53 +0000 (11:34 +0200)]
Fix TODO item

7 years ago[arabic] Fix cluster merging
Behdad Esfahbod [Sat, 7 Oct 2017 11:17:33 +0000 (13:17 +0200)]
[arabic] Fix cluster merging

7 years agoAdd check for HB_EXTERNs
Behdad Esfahbod [Sat, 7 Oct 2017 10:56:53 +0000 (12:56 +0200)]
Add check for HB_EXTERNs

https://github.com/behdad/harfbuzz/pull/555

7 years agoFix build of HarfBuzz tools and HarfBuzz-GObject on Visual Studio (#555)
fanc999 [Sat, 7 Oct 2017 10:57:14 +0000 (18:57 +0800)]
Fix build of HarfBuzz tools and HarfBuzz-GObject on Visual Studio (#555)

* hb-buffer.h: Mark hb_buffer_diff() for export

This will fix the tools builds on Visual Studio, as the symbol is used
by the tools.

* build: Adapt NMake Makefiles for GLib 2.53.4 or later

glib-mkenums was ported from a PERL script to a Python script, so we
need to update how we generate the enum sources for HarfBuzz-GObject in
the NMake builds.  Let this be known in the build documentation for MSVC
builds.

One of the problems with the underlying cmd.exe that the NMake Makefiles
run on is that shebang lines are not recognized, so we need to to test
run the script with Python and see whether it succeeded by outputing a
source file that is larger than 0 in file size (since running the PERL
version of the script will clearly fail and cause an empty file to be
created).

If it succeeds, we then run a small Python utility script that makes the
necessary string replacements, and we are done.  If that fails, then we
run the glib-mkenums script with PERL, and do the replacements with the
PERL one-liners as we did before.

We need to make replace.py use latin-1 encoding when using Python 3.x to
cope with the copyright sign that is in the generated enum sources.

7 years ago[ot] Remove 'mal' and 'gle' lang tags
Behdad Esfahbod [Wed, 4 Oct 2017 14:59:22 +0000 (16:59 +0200)]
[ot] Remove 'mal' and 'gle' lang tags

Fixes https://github.com/behdad/harfbuzz/issues/477

7 years agoImprove performance of ligature component matching
Behdad Esfahbod [Wed, 4 Oct 2017 13:06:48 +0000 (15:06 +0200)]
Improve performance of ligature component matching

This O(N^2) was introduced in 8b2c94c43fd335b944d5e5487265706b8e0f9041.
Make it O(N).

7 years ago[arabic] Implement Unicode Arabic Mark Ordering Algorithm UTR#53
Behdad Esfahbod [Wed, 4 Oct 2017 12:47:10 +0000 (14:47 +0200)]
[arabic] Implement Unicode Arabic Mark Ordering Algorithm UTR#53

Fixes https://github.com/behdad/harfbuzz/issues/509

7 years agoAdd info_cc() convenience macro
Behdad Esfahbod [Wed, 4 Oct 2017 11:37:08 +0000 (13:37 +0200)]
Add info_cc() convenience macro

7 years agoAdjust normalizer for out-of-order marks
Behdad Esfahbod [Wed, 4 Oct 2017 11:20:33 +0000 (13:20 +0200)]
Adjust normalizer for out-of-order marks

We are going to implement Unicode Arabic Mark Ordering Algorithm:

  http://www.unicode.org/reports/tr53/tr53-1.pdf

which will reorder marks out of their sorted ccc order.  Adjust
normalizer to stop combining as soon as dangerous ordering is
detected.

7 years agoMinor
Behdad Esfahbod [Wed, 4 Oct 2017 11:07:08 +0000 (13:07 +0200)]
Minor

7 years agoRevert "Treat HAMZA ABOVE similar to SHADD for sorting purposes"
Behdad Esfahbod [Wed, 4 Oct 2017 11:06:51 +0000 (13:06 +0200)]
Revert "Treat HAMZA ABOVE similar to SHADD for sorting purposes"

This reverts commit 5a330575768f5a213072230b9ec8faabac9c5737.

Proper fix coming soon.

7 years agoShorthand format controls should not be ignored
Behdad Esfahbod [Wed, 4 Oct 2017 09:33:47 +0000 (11:33 +0200)]
Shorthand format controls should not be ignored

Fixes https://github.com/behdad/harfbuzz/issues/503

7 years agoAdd Chinantec language tags
Behdad Esfahbod [Wed, 4 Oct 2017 09:28:04 +0000 (11:28 +0200)]
Add Chinantec language tags

Fixes https://github.com/behdad/harfbuzz/issues/516

7 years agoFix GPOS v_origin ordering
Behdad Esfahbod [Tue, 3 Oct 2017 15:22:43 +0000 (17:22 +0200)]
Fix GPOS v_origin ordering

This should affect mark attachment in vertical text.  I have no font to test,
but this sounds the right order.

Noticed while debugging https://github.com/behdad/harfbuzz/issues/532

7 years ago[indic] Fix shaping of U+0AFB GUJARATI SIGN SHADDA
Behdad Esfahbod [Tue, 3 Oct 2017 14:00:18 +0000 (16:00 +0200)]
[indic] Fix shaping of U+0AFB GUJARATI SIGN SHADDA

Fixes https://github.com/behdad/harfbuzz/issues/552

7 years ago[indic] Implement Consonent_With_Stacker
Behdad Esfahbod [Tue, 3 Oct 2017 13:20:07 +0000 (15:20 +0200)]
[indic] Implement Consonent_With_Stacker

Fixes https://github.com/behdad/harfbuzz/issues/528

7 years ago[use] Implement Consonant_With_Stacker
Behdad Esfahbod [Tue, 3 Oct 2017 12:57:14 +0000 (14:57 +0200)]
[use] Implement Consonant_With_Stacker

Related to https://github.com/behdad/harfbuzz/issues/528

7 years agoTest Consonant_With_Stacker in Kannada (#530)
David Corbett [Tue, 3 Oct 2017 12:07:02 +0000 (08:07 -0400)]
Test Consonant_With_Stacker in Kannada (#530)

7 years agoTweak mark-base attachment
Behdad Esfahbod [Tue, 3 Oct 2017 11:46:25 +0000 (13:46 +0200)]
Tweak mark-base attachment

Apparently a base glyph can also become an attached component of a
ligature if the ligature-forming lookup used IgnoreBase.  This was
being confused with a non-first component of a MultipleSubst and
hence not matched for mark-attachment.  Tweak test to fix.

Fixes https://github.com/behdad/harfbuzz/issues/543

7 years agoMerge commit 'c44657a05d565ec5f2c32ac15d4ecfbee00ac5f7'
Behdad Esfahbod [Tue, 3 Oct 2017 11:25:44 +0000 (13:25 +0200)]
Merge commit 'c44657a05d565ec5f2c32ac15d4ecfbee00ac5f7'

7 years agoMinor
Behdad Esfahbod [Tue, 3 Oct 2017 11:23:31 +0000 (13:23 +0200)]
Minor

7 years agoMake bots happy
Behdad Esfahbod [Tue, 3 Oct 2017 11:22:07 +0000 (13:22 +0200)]
Make bots happy

Fixes https://github.com/behdad/harfbuzz/issues/551

7 years agoTweak input matching some more
Behdad Esfahbod [Tue, 3 Oct 2017 11:14:17 +0000 (13:14 +0200)]
Tweak input matching some more

Followup to 8b2c94c43fd335b944d5e5487265706b8e0f9041

Allow matching sequences of marks attached to different ligatures,
as supposedly the base of the subsequent marks were already jumped
over.

7 years agoPrint test-suite.log when CI builds fail
Khaled Hosny [Mon, 2 Oct 2017 20:36:14 +0000 (22:36 +0200)]
Print test-suite.log when CI builds fail

7 years agoAdd test for U+0A51
Behdad Esfahbod [Mon, 2 Oct 2017 18:28:56 +0000 (20:28 +0200)]
Add test for U+0A51

New Indic numbers are:

BENGALI: 353725 out of 354188 tests passed. 463 failed (0.130722%)
DEVANAGARI: 707307 out of 707394 tests passed. 87 failed (0.0122987%)
GUJARATI: 366355 out of 366457 tests passed. 102 failed (0.0278341%)
GURMUKHI: 60729 out of 60747 tests passed. 18 failed (0.0296311%)
KANNADA: 951201 out of 951913 tests passed. 712 failed (0.0747968%)
KHMER: 299071 out of 299124 tests passed. 53 failed (0.0177184%)
MALAYALAM: 1048136 out of 1048334 tests passed. 198 failed (0.0188871%)
ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
SINHALA: 271662 out of 271847 tests passed. 185 failed (0.068053%)
TAMIL: 1091754 out of 1091754 tests passed. 0 failed (0%)
TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)

Before 71c0a1429db7c7e7e32507be248c9457e1cbfc7d GURMUKHI used to be at 15,
because Uniscribe seems to allow this character standalone, but that looks
wrong.

7 years agoTweak ligature component matching for ligature formation
Behdad Esfahbod [Mon, 2 Oct 2017 18:02:45 +0000 (20:02 +0200)]
Tweak ligature component matching for ligature formation

If two marks want to ligate and they belong to different components of the
same ligature glyph, and said ligature glyph is to be ignored according to
mark-filtering rules, then allow.

Example Burmese senquence:

  U+1004,U+103A,U+1039,U+101B,U+103D,U+102D

Test font provided by Norbert Lindenberg.

Fixes https://github.com/behdad/harfbuzz/issues/545

7 years ago[indic] Fix shaping of U+0A51
Behdad Esfahbod [Mon, 2 Oct 2017 16:56:10 +0000 (18:56 +0200)]
[indic] Fix shaping of U+0A51

Mark it as matra below to allow the sequence U+0A15, U+0A51, U+0A47.
Oh well...

Fixes https://github.com/behdad/harfbuzz/issues/524

7 years ago[ucdn] Oops!
Behdad Esfahbod [Mon, 2 Oct 2017 16:30:05 +0000 (18:30 +0200)]
[ucdn] Oops!

7 years agoRemove some really old cruft
Behdad Esfahbod [Mon, 2 Oct 2017 16:26:52 +0000 (18:26 +0200)]
Remove some really old cruft

7 years ago[ucdn] Update README
Behdad Esfahbod [Mon, 2 Oct 2017 16:22:51 +0000 (18:22 +0200)]
[ucdn] Update README

7 years ago[ot] Improve shaper selection heuristic
Behdad Esfahbod [Mon, 2 Oct 2017 16:21:27 +0000 (18:21 +0200)]
[ot] Improve shaper selection heuristic

7 years ago[use] Hack to fix shaping of U+1A7F
Behdad Esfahbod [Mon, 2 Oct 2017 16:20:51 +0000 (18:20 +0200)]
[use] Hack to fix shaping of U+1A7F

Fixes https://github.com/behdad/harfbuzz/issues/525

7 years ago[ucdn] Update to Unicode 10
Behdad Esfahbod [Mon, 2 Oct 2017 15:15:46 +0000 (17:15 +0200)]
[ucdn] Update to Unicode 10

Update to commit c000ebf79c095a7d58cf90090bde5715592c4834
plus this bug-fix: https://github.com/grigorig/ucdn/issues/18

7 years ago[use] Update to Unicode 10
Behdad Esfahbod [Mon, 2 Oct 2017 15:02:39 +0000 (17:02 +0200)]
[use] Update to Unicode 10

7 years agoMinor
Behdad Esfahbod [Mon, 2 Oct 2017 14:36:21 +0000 (16:36 +0200)]
Minor

7 years agoAdd Unicode 10 scripts
Behdad Esfahbod [Mon, 2 Oct 2017 14:12:18 +0000 (16:12 +0200)]
Add Unicode 10 scripts

7 years ago[indic] Update table to Unicode 10
Behdad Esfahbod [Mon, 2 Oct 2017 14:00:31 +0000 (10:00 -0400)]
[indic] Update table to Unicode 10

7 years ago[indic] Add test for 1a0a356a0f2b2932581e4fd0437c01c058f4f6d1
Behdad Esfahbod [Mon, 2 Oct 2017 13:19:15 +0000 (09:19 -0400)]
[indic] Add test for 1a0a356a0f2b2932581e4fd0437c01c058f4f6d1

https://github.com/behdad/harfbuzz/issues/538

7 years ago[indic] Move manual code out of generated table
Behdad Esfahbod [Mon, 2 Oct 2017 13:03:16 +0000 (09:03 -0400)]
[indic] Move manual code out of generated table

7 years ago[arabic] Update table to Unicode 10 data
Behdad Esfahbod [Mon, 2 Oct 2017 12:57:06 +0000 (08:57 -0400)]
[arabic] Update table to Unicode 10 data

7 years ago[indic] Categorize U+0980 BENGALI ANJI as placeholder
Behdad Esfahbod [Mon, 2 Oct 2017 12:49:23 +0000 (08:49 -0400)]
[indic] Categorize U+0980 BENGALI ANJI as placeholder

Fixes https://github.com/behdad/harfbuzz/issues/538

7 years ago[shape-plan] Don't look for a cached plan if variation coords are specified. Fixes...
jfkthame [Mon, 2 Oct 2017 12:08:49 +0000 (13:08 +0100)]
[shape-plan] Don't look for a cached plan if variation coords are specified. Fixes #549. (#550)

This is a temporary hack just to avoid incorrect shaping results, pending proper support
for caching shape-plans with variation coordinates.

7 years agoAdd RELEASING.md to dist
Behdad Esfahbod [Sun, 1 Oct 2017 16:06:00 +0000 (12:06 -0400)]
Add RELEASING.md to dist

7 years agoAdd release checklist (#529)
ebraminio [Sun, 1 Oct 2017 16:05:24 +0000 (19:35 +0330)]
Add release checklist (#529)

7 years agoFix missing xscale in rtl graphite unpacking (#541)
mhosken [Tue, 26 Sep 2017 18:29:45 +0000 (01:29 +0700)]
Fix missing xscale in rtl graphite unpacking (#541)

* Fix missing xscale in rtl graphite unpacking

* Oops didn't need to mess with yscale

7 years agoUse strtod_l() to correctly parse decimal numbers in French & other locales
Behdad Esfahbod [Fri, 15 Sep 2017 00:50:35 +0000 (20:50 -0400)]
Use strtod_l() to correctly parse decimal numbers in French & other locales

Test with, eg.:
$ LC_ALL=fr_FR.utf-8 ./hb-view NotoSansArabic-VF.ttf بهداد --variations wght=1.2

7 years ago[util] Add a few shorthand forms for commandline options
Behdad Esfahbod [Sat, 9 Sep 2017 18:21:07 +0000 (11:21 -0700)]
[util] Add a few shorthand forms for commandline options

-o, -O, -u, -v, -V

7 years ago1.5.1
Behdad Esfahbod [Tue, 5 Sep 2017 18:18:35 +0000 (11:18 -0700)]
1.5.1

7 years agoFix buffer_diff for empty buffers
Behdad Esfahbod [Tue, 5 Sep 2017 03:14:13 +0000 (20:14 -0700)]
Fix buffer_diff for empty buffers

If buffers are empty, content type should be ignored.

This fixes last of the failing tests: fuzzed.tests.  Green again!

7 years ago[unsafe-to-break] Fix unsafe-to-break for cluster-level=1
Behdad Esfahbod [Tue, 5 Sep 2017 03:04:59 +0000 (20:04 -0700)]
[unsafe-to-break] Fix unsafe-to-break for cluster-level=1

Fixes tests/shaping/tests/cluster.tests

7 years agoMinor
Behdad Esfahbod [Tue, 5 Sep 2017 02:48:52 +0000 (19:48 -0700)]
Minor

7 years ago[util] Add --unicodes to hb-view / hb-shape
Behdad Esfahbod [Sat, 2 Sep 2017 02:09:54 +0000 (19:09 -0700)]
[util] Add --unicodes to hb-view / hb-shape

Fixes https://github.com/behdad/harfbuzz/issues/154

7 years agoMinor
Behdad Esfahbod [Sat, 2 Sep 2017 01:28:47 +0000 (18:28 -0700)]
Minor

7 years agoMinor
Behdad Esfahbod [Fri, 1 Sep 2017 17:46:48 +0000 (10:46 -0700)]
Minor

7 years agoAdd test accidentally removed in previous commit
Behdad Esfahbod [Fri, 1 Sep 2017 17:38:25 +0000 (10:38 -0700)]
Add test accidentally removed in previous commit

7 years ago[indic] Treat Consonant_With_Stacker as consonant
Behdad Esfahbod [Fri, 1 Sep 2017 17:34:21 +0000 (10:34 -0700)]
[indic] Treat Consonant_With_Stacker as consonant

Fixes https://github.com/behdad/harfbuzz/issues/528
"Kannada JIHVAMULIYA and UPADHMANIYA insert dotted circles"

7 years ago[unsafe-to-break] Mark during fraction-slash formation
Behdad Esfahbod [Thu, 31 Aug 2017 00:28:22 +0000 (17:28 -0700)]
[unsafe-to-break] Mark during fraction-slash formation

Fixes tests/automatic-fractions.tests

7 years ago[util] Fix cluster sweeping during --verify
Behdad Esfahbod [Thu, 31 Aug 2017 00:25:10 +0000 (17:25 -0700)]
[util] Fix cluster sweeping during --verify

If *I* get this wrong in 2017, I have no idea how others get their head around
cluster math...

Fixes tests/arabic-fallback-shaping.tests

7 years ago[util] When --verify fails, return reconstructed shape results
Behdad Esfahbod [Thu, 31 Aug 2017 00:07:29 +0000 (17:07 -0700)]
[util] When --verify fails, return reconstructed shape results

7 years agohb_buffer_diff() tweak
Behdad Esfahbod [Wed, 30 Aug 2017 23:45:06 +0000 (16:45 -0700)]
hb_buffer_diff() tweak

I like to have a mode where CONTAINS_NOTDEF and CONTAINS_DOTTEDCIRCLE are not
returned.  Abused a value of -1 for that.  hb-shape now uses it.  Fixes two
of the six tests failing with --verify in test/shaping/run-tests.sh.

7 years ago1.5.0
Behdad Esfahbod [Wed, 23 Aug 2017 22:00:45 +0000 (15:00 -0700)]
1.5.0

7 years ago[docs] Minor
Behdad Esfahbod [Wed, 23 Aug 2017 21:41:48 +0000 (14:41 -0700)]
[docs] Minor

7 years ago[test] Add --verify to hb-shape
Behdad Esfahbod [Wed, 23 Aug 2017 21:35:58 +0000 (14:35 -0700)]
[test] Add --verify to hb-shape

Disabled for now.  Will enable and fix failures after next release.

7 years agoAdd hb_glyph_info_get_glyph_flags()
Behdad Esfahbod [Wed, 23 Aug 2017 20:12:54 +0000 (13:12 -0700)]
Add hb_glyph_info_get_glyph_flags()

New API.

7 years agoRename HB_BUFFER_DIFF_FLAG_MASK_MISMATCH to HB_BUFFER_DIFF_FLAG_GLYPH_FLAGS_MISMATCH
Behdad Esfahbod [Wed, 23 Aug 2017 00:56:25 +0000 (17:56 -0700)]
Rename HB_BUFFER_DIFF_FLAG_MASK_MISMATCH to HB_BUFFER_DIFF_FLAG_GLYPH_FLAGS_MISMATCH

7 years ago[util] Prefix trace lines with "trace:", and error lines with "error:"
Behdad Esfahbod [Wed, 16 Aug 2017 00:30:18 +0000 (17:30 -0700)]
[util] Prefix trace lines with "trace:", and error lines with "error:"

7 years ago[util] Respect eot/bot in safe-to-break test; hook up hb_buffer_diff()
Behdad Esfahbod [Wed, 16 Aug 2017 00:12:28 +0000 (17:12 -0700)]
[util] Respect eot/bot in safe-to-break test; hook up hb_buffer_diff()

7 years agoFix warning about "may be used uninitialized"
Behdad Esfahbod [Wed, 16 Aug 2017 00:12:21 +0000 (17:12 -0700)]
Fix warning about "may be used uninitialized"

7 years agoFix signed/unsigned warning (#522)
Emil A Eklund (eae) [Tue, 15 Aug 2017 23:25:18 +0000 (16:25 -0700)]
Fix signed/unsigned warning (#522)

Change hb_buffer_diff to explicitly cast result of abs to unsigned when
comparing with position_fuzz to avoid unsafe signed/unsigned comparions
warnings on windows.