platform/upstream/libHarfBuzzSharp.git
11 years agoCopy stdint.h boilerplate to ucdn
Behdad Esfahbod [Tue, 21 May 2013 21:22:13 +0000 (17:22 -0400)]
Copy stdint.h boilerplate to ucdn

11 years ago0.9.17
Behdad Esfahbod [Mon, 20 May 2013 13:23:58 +0000 (09:23 -0400)]
0.9.17

11 years agoMinor refactoring
Behdad Esfahbod [Mon, 20 May 2013 13:18:52 +0000 (09:18 -0400)]
Minor refactoring

11 years agoArabic mark width-zeroing regression
Behdad Esfahbod [Mon, 20 May 2013 13:11:35 +0000 (09:11 -0400)]
Arabic mark width-zeroing regression

Mozilla Bug 873902 - Display Arabic text with diacritics is bad
https://bugzilla.mozilla.org/show_bug.cgi?id=873902

11 years agoBug 64476 - Typo in hb_set_t.get_min()
Behdad Esfahbod [Tue, 14 May 2013 19:30:55 +0000 (15:30 -0400)]
Bug 64476 - Typo in hb_set_t.get_min()

Fixes previous commit's test.

11 years ago[test] Add test for hb_set_get_min() bug
Behdad Esfahbod [Tue, 14 May 2013 19:30:17 +0000 (15:30 -0400)]
[test] Add test for hb_set_get_min() bug

Failing now.

Bug 64476 - Typo in hb_set_t.get_min()

11 years agoAdd U+061C ARABIC LETTER MARK to Default_Ignorable
Behdad Esfahbod [Fri, 3 May 2013 18:45:04 +0000 (14:45 -0400)]
Add U+061C ARABIC LETTER MARK to Default_Ignorable

11 years ago[OTLayout] Make MultipleSubst in-place for sequences of len=1
Behdad Esfahbod [Thu, 2 May 2013 18:44:45 +0000 (14:44 -0400)]
[OTLayout] Make MultipleSubst in-place for sequences of len=1

11 years ago[OTLayout] Whitespace
Behdad Esfahbod [Thu, 2 May 2013 19:27:53 +0000 (15:27 -0400)]
[OTLayout] Whitespace

11 years ago[OTLayout] Minor refactoring
Behdad Esfahbod [Thu, 2 May 2013 19:16:59 +0000 (15:16 -0400)]
[OTLayout] Minor refactoring

11 years agoMinor
Behdad Esfahbod [Thu, 2 May 2013 18:41:39 +0000 (14:41 -0400)]
Minor

11 years agoMinor
Behdad Esfahbod [Thu, 2 May 2013 18:29:32 +0000 (14:29 -0400)]
Minor

11 years agoMinor
Behdad Esfahbod [Thu, 2 May 2013 18:25:09 +0000 (14:25 -0400)]
Minor

11 years agoMinor
Behdad Esfahbod [Thu, 2 May 2013 17:59:46 +0000 (13:59 -0400)]
Minor

11 years agoRenamed DEBUG to something else
Behdad Esfahbod [Tue, 30 Apr 2013 15:34:00 +0000 (11:34 -0400)]
Renamed DEBUG to something else

Some infrastructures use DEBUG as a generic symbol.

11 years agoFix icu linking by requesting the library searchpath from icu-config
Behdad Esfahbod [Mon, 29 Apr 2013 17:48:49 +0000 (13:48 -0400)]
Fix icu linking by requesting the library searchpath from icu-config

This is not ideal as we don't like -L/usr/lib in our linker line.
But this is only relevant to environments that don't have pkgconfig
files for ICU...

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

11 years agoMake both old autoconf and new automake happy
Behdad Esfahbod [Mon, 29 Apr 2013 17:40:52 +0000 (13:40 -0400)]
Make both old autoconf and new automake happy

Sigh..

Bug 64039 - undefined macro AM_PROG_AR

11 years agoMinor
Behdad Esfahbod [Sun, 21 Apr 2013 19:39:25 +0000 (15:39 -0400)]
Minor

11 years agoMinor renaming
Behdad Esfahbod [Sun, 21 Apr 2013 19:21:49 +0000 (15:21 -0400)]
Minor renaming

11 years agoRename "pause" to "stage"
Behdad Esfahbod [Sun, 21 Apr 2013 19:19:38 +0000 (15:19 -0400)]
Rename "pause" to "stage"

The compile() function is starting to become illegible...

11 years agoMinor
Behdad Esfahbod [Sun, 21 Apr 2013 19:13:57 +0000 (15:13 -0400)]
Minor

11 years agoRemove unneeded code
Behdad Esfahbod [Sun, 21 Apr 2013 19:13:08 +0000 (15:13 -0400)]
Remove unneeded code

We always push a pause at the end such that each lookup falls in exactly
one pause_map_t.  Now, only if I can find a better name for that...

11 years ago0.9.16
Behdad Esfahbod [Fri, 19 Apr 2013 20:32:06 +0000 (16:32 -0400)]
0.9.16

11 years agoHand-code bsearch in the hot inner loop.
Behdad Esfahbod [Fri, 19 Apr 2013 18:33:17 +0000 (14:33 -0400)]
Hand-code bsearch in the hot inner loop.

Saves another 3 / 4 percent with Amiri.

11 years agoMinor
Behdad Esfahbod [Thu, 18 Apr 2013 23:04:12 +0000 (19:04 -0400)]
Minor

11 years ago[util] Unbreak --show-text / --show-unicode
Behdad Esfahbod [Thu, 18 Apr 2013 03:49:54 +0000 (23:49 -0400)]
[util] Unbreak --show-text / --show-unicode

11 years agoObssesive optimization
Behdad Esfahbod [Thu, 18 Apr 2013 03:04:03 +0000 (23:04 -0400)]
Obssesive optimization

Not measurable by any means, but conceptually this is faster since
the mask matches more often than the digest.

11 years agoRemove HB_DEBUG_SET_DIGESTS
Behdad Esfahbod [Wed, 17 Apr 2013 23:01:49 +0000 (19:01 -0400)]
Remove HB_DEBUG_SET_DIGESTS

Wasn't correct with the new combiner.  I should add it back somehow,
but for now the digests seem to be working very well...

11 years agoRemove hb_set_digest_common_bits_t
Behdad Esfahbod [Wed, 17 Apr 2013 22:20:44 +0000 (18:20 -0400)]
Remove hb_set_digest_common_bits_t

Was unused.

11 years agoImprove hb_set_digest_t
Behdad Esfahbod [Wed, 17 Apr 2013 22:19:21 +0000 (18:19 -0400)]
Improve hb_set_digest_t

Make Amiri rendering faster a whopping 45% again!  Speends up pretty
much anything I tested.

11 years agoTemplatize hb_set_digest_lowest_bits_t filter
Behdad Esfahbod [Wed, 17 Apr 2013 21:45:39 +0000 (17:45 -0400)]
Templatize hb_set_digest_lowest_bits_t filter

11 years agoAdd comment
Behdad Esfahbod [Wed, 17 Apr 2013 21:26:56 +0000 (17:26 -0400)]
Add comment

11 years agoAdd hb_set_digest_combiner_t
Behdad Esfahbod [Wed, 17 Apr 2013 03:21:38 +0000 (23:21 -0400)]
Add hb_set_digest_combiner_t

11 years agoSpeed up Speed up hb_set_digest_common_bits_t calcs
Behdad Esfahbod [Wed, 17 Apr 2013 03:13:10 +0000 (23:13 -0400)]
Speed up Speed up hb_set_digest_common_bits_t calcs

Correctly this time.

11 years agoInitialize set digests
Behdad Esfahbod [Wed, 17 Apr 2013 01:50:33 +0000 (21:50 -0400)]
Initialize set digests

We were not initializing the digests properly and as a result they were
being initialized to zero, making digest1 to never do any useful work.

Speeds up Amiri shaping significantly.

11 years agoPrint set-digest hit ratio with HB_DEBUG_SET_DIGESTS
Behdad Esfahbod [Wed, 17 Apr 2013 01:57:21 +0000 (21:57 -0400)]
Print set-digest hit ratio with HB_DEBUG_SET_DIGESTS

11 years agoRevert "Speed up hb_set_digest_common_bits_t calcs"
Behdad Esfahbod [Wed, 17 Apr 2013 01:47:40 +0000 (21:47 -0400)]
Revert "Speed up hb_set_digest_common_bits_t calcs"

This reverts commit 3d1b66a35e1ab3be19335705f310b278d76d66d2.

The calculations were buggy.  It's not worth optimizing right now.

11 years agoFix typo in unused macro
Behdad Esfahbod [Tue, 16 Apr 2013 20:11:09 +0000 (16:11 -0400)]
Fix typo in unused macro

11 years ago[util] Add --num-iterations
Behdad Esfahbod [Thu, 11 Apr 2013 20:31:01 +0000 (16:31 -0400)]
[util] Add --num-iterations

Useful for profiling shapers.

11 years ago[old] Speed up Unicode properties access in hb-old shaper
Behdad Esfahbod [Thu, 11 Apr 2013 18:45:58 +0000 (14:45 -0400)]
[old] Speed up Unicode properties access in hb-old shaper

Just to be sure it's not punishing the old shaper performance
numbers.  Doesn't seem to have a measurable effect.

11 years ago[git.mk] Update
Behdad Esfahbod [Thu, 11 Apr 2013 17:38:37 +0000 (13:38 -0400)]
[git.mk] Update

11 years agoMinor
Behdad Esfahbod [Tue, 9 Apr 2013 18:06:54 +0000 (14:06 -0400)]
Minor

11 years ago0.9.15
Behdad Esfahbod [Fri, 5 Apr 2013 22:02:43 +0000 (18:02 -0400)]
0.9.15

11 years ago[git.mk] Ignore ar-lib
Behdad Esfahbod [Fri, 5 Apr 2013 21:58:25 +0000 (17:58 -0400)]
[git.mk] Ignore ar-lib

11 years agoAdd note re Hangul shaping
Behdad Esfahbod [Fri, 5 Apr 2013 16:38:58 +0000 (12:38 -0400)]
Add note re Hangul shaping

11 years agoDon't compose Hangul jamo
Behdad Esfahbod [Fri, 5 Apr 2013 03:06:54 +0000 (23:06 -0400)]
Don't compose Hangul jamo

See thread "an issue regarding discrepancy between Korean and Unicode
standards" on the mailing list for the rationale.  In short: Uniscribe
doesn't, so fonts are designed to work without it.

11 years agoPut back MemoryBarrier fallback implementation on MINGW32
Behdad Esfahbod [Thu, 4 Apr 2013 19:02:03 +0000 (15:02 -0400)]
Put back MemoryBarrier fallback implementation on MINGW32

This almost reverts 2761e8a632c14353f286708898be8df6ebad7407,
but only if under MINGW32, so it doesn't affect MSVC.

11 years ago[Arabic] Zero marks by GDEF, not Unicode category
Behdad Esfahbod [Thu, 4 Apr 2013 18:25:36 +0000 (14:25 -0400)]
[Arabic] Zero marks by GDEF, not Unicode category

Testing shows that this is closer to what Uniscribe does.

Reported by Khaled Hosny:

"""
commit 568000274c8edb5f41bc4f876ce21fcc8bdaeed8
...
This commit is causing a regression with Amiri, the string “هَٰذ” with
Uniscribe and HarfBuzz before this commit, gives:

[uni0630.fina=3+965|uni0670.medi=0+600|uni064E=0@-256,0+0|uni0647.init=0+926]

But now it gives:

[uni0630.fina=3+965|uni0670.medi=0+0|uni064E=0@-256,0+0|uni0647.init=0+926]

i.e. uni0670.medi is zeroed though it has a base glyph GDEF class.
"""

The test case is U+0647,U+064E,U+0670,U+0630 with Amiri.

11 years agoBug 63107 - FTBFS on ppc64: symbols marked with 'D' on powerpc64 instead
Behdad Esfahbod [Thu, 4 Apr 2013 16:06:46 +0000 (12:06 -0400)]
Bug 63107 - FTBFS on ppc64: symbols marked with 'D' on powerpc64 instead

11 years ago[graphite2] Don't crash if language is not set
Behdad Esfahbod [Tue, 2 Apr 2013 18:08:53 +0000 (14:08 -0400)]
[graphite2] Don't crash if language is not set

https://bugs.webkit.org/show_bug.cgi?id=113796

11 years agoMinor
Behdad Esfahbod [Fri, 22 Mar 2013 01:02:16 +0000 (21:02 -0400)]
Minor

11 years agoRemove gthread leftovers
Behdad Esfahbod [Thu, 21 Mar 2013 20:26:39 +0000 (16:26 -0400)]
Remove gthread leftovers

We don't use gthread anymore, remove leftovers.

11 years agoMinor
Behdad Esfahbod [Thu, 21 Mar 2013 20:25:20 +0000 (16:25 -0400)]
Minor

11 years ago0.9.14
Behdad Esfahbod [Thu, 21 Mar 2013 17:38:06 +0000 (13:38 -0400)]
0.9.14

11 years agoRemove Hangul filler characters from Default_Ignorable chars
Behdad Esfahbod [Tue, 19 Mar 2013 10:59:40 +0000 (06:59 -0400)]
Remove Hangul filler characters from Default_Ignorable chars

See discussion on mailing list.

11 years ago[Indic] Futher adjust ZWJ handling in Indic-like shapers
Behdad Esfahbod [Tue, 19 Mar 2013 09:53:26 +0000 (05:53 -0400)]
[Indic] Futher adjust ZWJ handling in Indic-like shapers

After the Ngapi hackfest work, we were assuming that fonts
won't use presentation features to choose specific forms
(eg. conjuncts).  As such, we were using auto-joiner behavior
for such features.  It proved to be troublesome as many fonts
used presentation forms ('pres') for example to form conjuncts,
which need to be disabled when a ZWJ is inserted.

Two examples:

U+0D2F,U+200D,U+0D4D,U+0D2F with kartika.ttf
U+0995,U+09CD,U+200D,U+09B7 with vrinda.ttf

What we do now is to never do magic to ZWJ during GSUB's main input
match for Indic-style shapers.  Note that backtrack/lookahead are still
matched liberally, as is GPOS.  This seems to be an acceptable
compromise.

As to the bug that initially started this work, that one needs to
be fixed differently:

  Bug 58714 - Kannada u+0cb0 u+200d u+0ccd u+0c95 u+0cbe does not
  provide same results as Windows8
  https://bugs.freedesktop.org/show_bug.cgi?id=58714

New numbers:

BENGALI: 353689 out of 354188 tests passed. 499 failed (0.140886%)
DEVANAGARI: 707305 out of 707394 tests passed. 89 failed (0.0125814%)
GUJARATI: 366349 out of 366457 tests passed. 108 failed (0.0294714%)
GURMUKHI: 60706 out of 60747 tests passed. 41 failed (0.067493%)
KANNADA: 951030 out of 951913 tests passed. 883 failed (0.0927606%)
KHMER: 299070 out of 299124 tests passed. 54 failed (0.0180527%)
LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
MALAYALAM: 1048102 out of 1048334 tests passed. 232 failed (0.0221304%)
ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
SINHALA: 271666 out of 271847 tests passed. 181 failed (0.0665816%)
TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)

11 years agoAllow disabling ICU by using a fake icu-config script
Behdad Esfahbod [Tue, 19 Mar 2013 09:22:27 +0000 (05:22 -0400)]
Allow disabling ICU by using a fake icu-config script

11 years ago[travis] Install libicu
Behdad Esfahbod [Tue, 12 Mar 2013 00:18:49 +0000 (20:18 -0400)]
[travis] Install libicu

11 years agoAdd build system fallback to icu-config
Behdad Esfahbod [Mon, 11 Mar 2013 23:53:44 +0000 (19:53 -0400)]
Add build system fallback to icu-config

Ubuntu doesn't (or didn't until recently?) ship icu pkg-config
files.  That's quite unfortunate.  Work around it.

Bug 57608 - ICU Detection fallback for non-pkgconfig systems

11 years ago[ft] Remove TODO items that I'm not going to fix
Behdad Esfahbod [Sun, 10 Mar 2013 01:30:22 +0000 (20:30 -0500)]
[ft] Remove TODO items that I'm not going to fix

11 years ago[ft] Remove TODO item re FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH
Behdad Esfahbod [Sun, 10 Mar 2013 01:27:55 +0000 (20:27 -0500)]
[ft] Remove TODO item re FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH

That flag is redundant, deprecated, and ignored since April 2011.
From FreeType git log:

commit 8c82ec5b17d0cfc9b0876a2d848acc207a62a25a
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Thu Apr 21 08:21:37 2011 +0200

    Always ignore global advance.

    This makes FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH redundant,
    deprecated, and ignored.  The new behavior is what every major user
    of FreeType has been requesting.  Global advance is broken in many
    CJK fonts.  Just ignoring it by default makes most sense.

    * src/truetype/ttdriver.c (tt_get_advances),
    src/truetype/ttgload.c (TT_Get_HMetrics, TT_Get_VMetrics,
    tt_get_metrics, compute_glyph_metrics, TT_Load_Glyph),
    src/truetype/ttgload.h: Implement it.

    * docs/CHANGES: Updated.

11 years agoAdd hb_auto_array_t
Behdad Esfahbod [Sat, 9 Mar 2013 09:34:21 +0000 (04:34 -0500)]
Add hb_auto_array_t

11 years ago[OTLayout] Move code around
Behdad Esfahbod [Sat, 9 Mar 2013 06:59:30 +0000 (01:59 -0500)]
[OTLayout] Move code around

11 years ago[OTLayout] Rename process() to dispatch()
Behdad Esfahbod [Sat, 9 Mar 2013 06:55:04 +0000 (01:55 -0500)]
[OTLayout] Rename process() to dispatch()

11 years ago[win32] Remove MemoryBarrier() fallback implementation
Behdad Esfahbod [Fri, 8 Mar 2013 01:51:30 +0000 (20:51 -0500)]
[win32] Remove MemoryBarrier() fallback implementation

I added these because the older mingw32 toolchain didn't have
MemoryBarrier().  The newer mingw-w64 toolchain however has.
As reported by John Emmas this was causing build failure with
MSVC (on glib) because of inline issues.  But that reminded me
that we may be taking this path even if the system implements
MemoryBarrier as a function, which is a waste.  So, just remove
it.

11 years ago[build] Port to newer automake recommended syntax
Behdad Esfahbod [Thu, 7 Mar 2013 01:21:11 +0000 (20:21 -0500)]
[build] Port to newer automake recommended syntax

11 years agoMove valgrind suppressions to the correct directory
Behdad Esfahbod [Thu, 7 Mar 2013 01:20:45 +0000 (20:20 -0500)]
Move valgrind suppressions to the correct directory

11 years ago[build] Add AM_PROG_AR
Behdad Esfahbod [Thu, 7 Mar 2013 01:05:34 +0000 (20:05 -0500)]
[build] Add AM_PROG_AR

Newer automake / libtools warns otherwise.

11 years ago[FT] Just return if glyph name not found
Behdad Esfahbod [Thu, 7 Mar 2013 00:37:31 +0000 (19:37 -0500)]
[FT] Just return if glyph name not found

The fallback happens in higher level already.  No need to do here.

11 years ago[Indic] Minor
Behdad Esfahbod [Wed, 6 Mar 2013 05:53:24 +0000 (00:53 -0500)]
[Indic] Minor

11 years ago[Indic] Work around fonts with broken new-spec tables
Behdad Esfahbod [Wed, 6 Mar 2013 01:08:59 +0000 (20:08 -0500)]
[Indic] Work around fonts with broken new-spec tables

See comments, and this thread:

http://lists.freedesktop.org/archives/harfbuzz/2013-March/002990.html

Originally reported here:

https://code.google.com/p/chromium/issues/detail?id=96143

Doesn't change test suite numbers.

11 years ago[travis] Oops. Run make check, not make test!
Behdad Esfahbod [Tue, 5 Mar 2013 22:23:33 +0000 (17:23 -0500)]
[travis] Oops.  Run make check, not make test!

11 years agoRun autogen.sh, not configure, in travis-ci
Behdad Esfahbod [Tue, 5 Mar 2013 07:35:31 +0000 (02:35 -0500)]
Run autogen.sh, not configure, in travis-ci

11 years agoAdd .travis.yml for continuous building with travis-ci.org
Behdad Esfahbod [Tue, 5 Mar 2013 06:37:44 +0000 (01:37 -0500)]
Add .travis.yml for continuous building with travis-ci.org

Notifications sent to IRC channel and mailing list.

11 years agoFix distcheck
Behdad Esfahbod [Tue, 5 Mar 2013 02:29:38 +0000 (21:29 -0500)]
Fix distcheck

11 years ago[git.mk] Update to commit efc928222179576270c5910416d8055dd7a97896
Behdad Esfahbod [Tue, 5 Mar 2013 01:56:15 +0000 (20:56 -0500)]
[git.mk] Update to commit efc928222179576270c5910416d8055dd7a97896

    Move reusable list of files into variable definitions modules can
    reuse

11 years agoAdd libtool m4 macros to MAINTAINERCLEANFILES
Behdad Esfahbod [Mon, 4 Mar 2013 23:52:12 +0000 (18:52 -0500)]
Add libtool m4 macros to MAINTAINERCLEANFILES

11 years ago[Indic] Help compiler put indic_features table in .rodata
Behdad Esfahbod [Thu, 28 Feb 2013 01:40:54 +0000 (20:40 -0500)]
[Indic] Help compiler put indic_features table in .rodata

The overridden "or" operator was preventing the flag expression from
being const, and putting the table in .data instead or .rodata.

11 years ago[buffer] Better parse glyph names
Behdad Esfahbod [Wed, 27 Feb 2013 23:47:26 +0000 (18:47 -0500)]
[buffer] Better parse glyph names

11 years ago[buffer] Implement buffer deserialization for format=json
Behdad Esfahbod [Wed, 27 Feb 2013 23:39:37 +0000 (18:39 -0500)]
[buffer] Implement buffer deserialization for format=json

Using a ragel machine.

11 years ago[buffer] Implement buffer deserialization for format=text
Behdad Esfahbod [Wed, 27 Feb 2013 22:59:28 +0000 (17:59 -0500)]
[buffer] Implement buffer deserialization for format=text

Using a ragel machine.

11 years ago[buffer] Fix serializing of buffer with invalid direction
Behdad Esfahbod [Wed, 27 Feb 2013 21:09:55 +0000 (16:09 -0500)]
[buffer] Fix serializing of buffer with invalid direction

11 years ago[buffer] Start implementing buffer deserialization
Behdad Esfahbod [Wed, 27 Feb 2013 18:01:02 +0000 (13:01 -0500)]
[buffer] Start implementing buffer deserialization

11 years ago[buffer] Minor
Behdad Esfahbod [Wed, 27 Feb 2013 17:02:42 +0000 (12:02 -0500)]
[buffer] Minor

11 years ago[buffer] Move buffer serialization code to a new file
Behdad Esfahbod [Wed, 27 Feb 2013 16:06:36 +0000 (11:06 -0500)]
[buffer] Move buffer serialization code to a new file

11 years agoMinor
Behdad Esfahbod [Wed, 27 Feb 2013 22:48:31 +0000 (17:48 -0500)]
Minor

11 years ago[Indic] Sort pre-base reordering consonants with post-forms
Behdad Esfahbod [Wed, 27 Feb 2013 02:22:37 +0000 (21:22 -0500)]
[Indic] Sort pre-base reordering consonants with post-forms

Before, we were marking them as below-form for initial reordering.
However, there is a rule that says "post consonants should follow
below consonsnts" for base determination purposes.  Malayalam has
port-form YA/VA, and RA is pre-base.  As such, for a sequence like
YA,Virama,YA,Virama,RA, the correct base is at index 0.  But
because the code was seeing RA as a below-base, it was stopping at
the second YA as base, instead of jumping it as a post-base.

By treating prebase-reordering consonants like post-forms, this
is fixed.

MALAYALAM went down from 351 to 265.  Other numbers didn't change:

BENGALI: 353686 out of 354188 tests passed. 502 failed (0.141733%)
DEVANAGARI: 707305 out of 707394 tests passed. 89 failed (0.0125814%)
GUJARATI: 366262 out of 366457 tests passed. 195 failed (0.0532122%)
GURMUKHI: 60706 out of 60747 tests passed. 41 failed (0.067493%)
KANNADA: 950680 out of 951913 tests passed. 1233 failed (0.129529%)
KHMER: 299074 out of 299124 tests passed. 50 failed (0.0167155%)
LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
MALAYALAM: 1048069 out of 1048334 tests passed. 265 failed (0.0252782%)
ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
SINHALA: 271539 out of 271847 tests passed. 308 failed (0.113299%)
TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)

11 years ago[tests] Add Malayalam tests frim cibu
Behdad Esfahbod [Wed, 27 Feb 2013 00:35:50 +0000 (19:35 -0500)]
[tests] Add Malayalam tests frim cibu

11 years agoUpdate Android.mk
Behdad Esfahbod [Tue, 26 Feb 2013 20:01:45 +0000 (15:01 -0500)]
Update Android.mk

11 years agoFix "comparison between signed and unsigned" warnings
Behdad Esfahbod [Tue, 26 Feb 2013 04:57:51 +0000 (23:57 -0500)]
Fix "comparison between signed and unsigned" warnings

Patch from Jonathan Kew.

11 years agoGive up sanitizing after 100 edit requests
Behdad Esfahbod [Tue, 26 Feb 2013 00:09:57 +0000 (19:09 -0500)]
Give up sanitizing after 100 edit requests

Such fonts are *definitely* really broken.  Give up.
Limits time spent in sanitize for extremely / deliberately broken
fonts.  For example, two fonts with these md5sum / names:

  9343f0a1b8c84b8123e7d201cae62ffd.ttf
  eb8c978547f09d368fc204194fb34688.ttf

were spending over a second in sanitize!  Not anymore.

11 years agoAdd HB_DEBUG_VERBOSE
Behdad Esfahbod [Tue, 26 Feb 2013 00:04:56 +0000 (19:04 -0500)]
Add HB_DEBUG_VERBOSE

Only affects the verbosity of function name printing right now.

11 years ago0.9.13
Behdad Esfahbod [Mon, 25 Feb 2013 23:19:20 +0000 (18:19 -0500)]
0.9.13

11 years agoFix blob test to match c3ba49b6fa1865e8318926eaa6c0f2063d1053bb
Behdad Esfahbod [Mon, 25 Feb 2013 22:54:10 +0000 (17:54 -0500)]
Fix blob test to match c3ba49b6fa1865e8318926eaa6c0f2063d1053bb

11 years agoAlways create sub-blobs in MEMORY_MODE_READONLY
Behdad Esfahbod [Mon, 25 Feb 2013 22:06:35 +0000 (17:06 -0500)]
Always create sub-blobs in MEMORY_MODE_READONLY

This fixes a design bug with sanitize and sub-blobs that can
cause crashes.  Jonathan and I found and debugged this issue
when we tested a corrupt font with the md5sum / filename:
ea395483d37af0cb933f40689ff7b60a.  Two hours of intense
debugging we found out that the font has overlapping GSUB/GPOS
tables, and as such, sanitizing the second table can modify
the first one, which can cause all kinds of undefined behavior.

The correct way to fix this is to make sure sub-blobs are
always created readonly, since we consider the parent blob
to be a shared resource and can't modify it, even if it *is*
writable.

This essentially makes the READONLY_MAY_MAKE_WRITABLE mode
unused...  Maybe we should simply remove / deprecate it.

11 years agoMinor
Behdad Esfahbod [Thu, 21 Feb 2013 20:54:05 +0000 (15:54 -0500)]
Minor

11 years agoPort TrueType-kerning to use skippy iterator
Behdad Esfahbod [Thu, 21 Feb 2013 20:39:57 +0000 (15:39 -0500)]
Port TrueType-kerning to use skippy iterator

It skips joiners and default ignorables now.  Skips marks too, but only
if there is proper GDEF classes for marks.

11 years agoFixup previous commit
Behdad Esfahbod [Thu, 21 Feb 2013 20:37:51 +0000 (15:37 -0500)]
Fixup previous commit

Was not decreasing num_items.  Ouch!

11 years agoMove code around
Behdad Esfahbod [Thu, 21 Feb 2013 20:23:39 +0000 (15:23 -0500)]
Move code around

11 years ago[OTLayout] Correctly skip Default_Ignorable when match_func not set
Behdad Esfahbod [Thu, 21 Feb 2013 20:07:03 +0000 (15:07 -0500)]
[OTLayout] Correctly skip Default_Ignorable when match_func not set

When a match_func was not set on the matcher_t object (ie. from GPOS),
then the Default_Ignorables (including joiners) were never skipped.
This meant that they were not skipped as they should during GPOS
matching.  Fix that.

A few Indic numbers have "regressed": BENGALI and DEVANAGARI went
up from 290 and 58 respectively, but in both cases new results are
superior to Uniscribe, as they apply GPOS when we weren't (and
Uniscribe isn't) before.
BENGALI: 353686 out of 354188 tests passed. 502 failed (0.141733%)
DEVANAGARI: 707305 out of 707394 tests passed. 89 failed (0.0125814%)
GUJARATI: 366262 out of 366457 tests passed. 195 failed (0.0532122%)
GURMUKHI: 60706 out of 60747 tests passed. 41 failed (0.067493%)
KANNADA: 950680 out of 951913 tests passed. 1233 failed (0.129529%)
KHMER: 299074 out of 299124 tests passed. 50 failed (0.0167155%)
LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
MALAYALAM: 1047983 out of 1048334 tests passed. 351 failed (0.0334817%)
ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
SINHALA: 271539 out of 271847 tests passed. 308 failed (0.113299%)
TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)