platform/upstream/libHarfBuzzSharp.git
12 years agoFallback to Latin script if the font has no other usable scripts
Behdad Esfahbod [Sun, 22 Jan 2012 20:31:44 +0000 (15:31 -0500)]
Fallback to Latin script if the font has no other usable scripts

Patch and description from Jonathan Kew:

It turns out that some legacy Thai fonts provide OpenType substitution
features to implement mark positioning, but (incorrectly) put those
features/lookups under the 'latn' script tag instead of using 'thai' (or
possibly 'DFLT'). See
https://bugzilla.mozilla.org/show_bug.cgi?id=719366 for an example and
more detailed description.

Although this is really a font bug, I suggest that we could improve the
rendering of such fonts by looking for the 'latn' as a fallback if
neither the requested script nor "default" is found in
hb_ot_layout_table_choose_script. Suggested patch against harfbuzz
master is attached.

This does _not_ affect the other kind of legacy Thai font, where custom
code to support vendor-specific PUA codepoints would be needed. I'm not
keen to go down that path; IMO, such fonts should be ruthlessly stamped
out in favour of standards-based solutions. :)

JK

12 years agoMore shoveling around
Behdad Esfahbod [Sun, 22 Jan 2012 01:03:25 +0000 (20:03 -0500)]
More shoveling around

12 years agoCleanup
Behdad Esfahbod [Sun, 22 Jan 2012 00:55:16 +0000 (19:55 -0500)]
Cleanup

12 years agoDistribute testing tools
Behdad Esfahbod [Sun, 22 Jan 2012 00:43:58 +0000 (19:43 -0500)]
Distribute testing tools

12 years agoSpeed up colorless diff
Behdad Esfahbod [Sun, 22 Jan 2012 00:40:30 +0000 (19:40 -0500)]
Speed up colorless diff

12 years agoCleanup manifest code
Behdad Esfahbod [Sun, 22 Jan 2012 00:37:31 +0000 (19:37 -0500)]
Cleanup manifest code

12 years agoPort hb-manifest-update to Python
Behdad Esfahbod [Sun, 22 Jan 2012 00:31:51 +0000 (19:31 -0500)]
Port hb-manifest-update to Python

12 years agoIgnore Broken Pipe errors
Behdad Esfahbod [Sun, 22 Jan 2012 00:15:41 +0000 (19:15 -0500)]
Ignore Broken Pipe errors

12 years ago[util] Make clusters work with char offset instead of UTF-8 offset
Behdad Esfahbod [Sun, 22 Jan 2012 00:07:22 +0000 (19:07 -0500)]
[util] Make clusters work with char offset instead of UTF-8 offset

This means the --features indices also refer to char position
instead of byte position now.  Same for cluster values reported
by hb-shape.

Will add an option for byte indices later.

12 years agoCorrectly print out Unicode strings
Behdad Esfahbod [Sat, 21 Jan 2012 23:59:48 +0000 (18:59 -0500)]
Correctly print out Unicode strings

12 years agoMisc fixes
Behdad Esfahbod [Sat, 21 Jan 2012 02:21:47 +0000 (21:21 -0500)]
Misc fixes

12 years agoPort hb-manifest-read to Python
Behdad Esfahbod [Sat, 21 Jan 2012 02:16:34 +0000 (21:16 -0500)]
Port hb-manifest-read to Python

12 years agoAdd final residues from test-shape-complex
Behdad Esfahbod [Sat, 21 Jan 2012 01:56:32 +0000 (20:56 -0500)]
Add final residues from test-shape-complex

12 years agoAdd Punjabi tests from test-shape-complex also
Behdad Esfahbod [Sat, 21 Jan 2012 01:51:52 +0000 (20:51 -0500)]
Add Punjabi tests from test-shape-complex also

12 years agoAdd Tamil test data from Muguntharaj Subramanian
Behdad Esfahbod [Sat, 21 Jan 2012 01:50:09 +0000 (20:50 -0500)]
Add Tamil test data from Muguntharaj Subramanian

12 years agoImport test data from late test-shape-complex
Behdad Esfahbod [Sat, 21 Jan 2012 01:48:14 +0000 (20:48 -0500)]
Import test data from late test-shape-complex

12 years agoFix Unicode encoding issue
Behdad Esfahbod [Sat, 21 Jan 2012 00:32:17 +0000 (19:32 -0500)]
Fix Unicode encoding issue

12 years agoMake test tools interactive
Behdad Esfahbod [Fri, 20 Jan 2012 23:39:27 +0000 (18:39 -0500)]
Make test tools interactive

By bypassing readlines() buffering.

12 years agoMove most testing logic into hb_test_tools.py
Behdad Esfahbod [Fri, 20 Jan 2012 23:27:52 +0000 (18:27 -0500)]
Move most testing logic into hb_test_tools.py

The actual utils are one-liners now.

12 years agoRemove test-shape-complex
Behdad Esfahbod [Fri, 20 Jan 2012 22:36:10 +0000 (17:36 -0500)]
Remove test-shape-complex

New shaping testsuite and framework coming.

12 years agoAdd hb-unicode-encode
Behdad Esfahbod [Fri, 20 Jan 2012 22:24:05 +0000 (17:24 -0500)]
Add hb-unicode-encode

12 years ago[hb-shape] Add parantheses around --show-text output
Behdad Esfahbod [Fri, 20 Jan 2012 22:18:59 +0000 (17:18 -0500)]
[hb-shape] Add parantheses around --show-text output

12 years agoAdd hb-diff-filter-failures
Behdad Esfahbod [Fri, 20 Jan 2012 22:17:44 +0000 (17:17 -0500)]
Add hb-diff-filter-failures

12 years agoMove
Behdad Esfahbod [Fri, 20 Jan 2012 22:16:35 +0000 (17:16 -0500)]
Move

12 years agoMinor
Behdad Esfahbod [Fri, 20 Jan 2012 19:24:21 +0000 (14:24 -0500)]
Minor

12 years agoMinor
Behdad Esfahbod [Fri, 20 Jan 2012 19:21:53 +0000 (14:21 -0500)]
Minor

12 years ago[test/shaping] Add some Indic test data for the new test suite
Behdad Esfahbod [Fri, 20 Jan 2012 18:57:57 +0000 (13:57 -0500)]
[test/shaping] Add some Indic test data for the new test suite

Imported from UTRRS.

12 years agoFix
Behdad Esfahbod [Fri, 20 Jan 2012 18:57:14 +0000 (13:57 -0500)]
Fix

12 years agoMove hb-diff to test/shaping/
Behdad Esfahbod [Fri, 20 Jan 2012 18:50:55 +0000 (13:50 -0500)]
Move hb-diff to test/shaping/

12 years agoAdd hb-unicode-decode
Behdad Esfahbod [Fri, 20 Jan 2012 18:50:05 +0000 (13:50 -0500)]
Add hb-unicode-decode

12 years agoMinor
Behdad Esfahbod [Fri, 20 Jan 2012 18:49:56 +0000 (13:49 -0500)]
Minor

12 years agoRecognize more characters
Behdad Esfahbod [Fri, 20 Jan 2012 18:39:27 +0000 (13:39 -0500)]
Recognize more characters

12 years ago[test] Make hb-unicode-prettyname take a --stdin option
Behdad Esfahbod [Fri, 20 Jan 2012 18:31:59 +0000 (13:31 -0500)]
[test] Make hb-unicode-prettyname take a --stdin option

12 years ago[test/shaping] Add hb-unicode-prettyname
Behdad Esfahbod [Fri, 20 Jan 2012 01:28:31 +0000 (20:28 -0500)]
[test/shaping] Add hb-unicode-prettyname

12 years ago[test/shaping] Add hb-read-manifest
Behdad Esfahbod [Fri, 20 Jan 2012 01:28:15 +0000 (20:28 -0500)]
[test/shaping] Add hb-read-manifest

12 years agoIgnore AUTHORS also
Behdad Esfahbod [Fri, 20 Jan 2012 01:27:53 +0000 (20:27 -0500)]
Ignore AUTHORS also

12 years ago[hb-shape] Change glyphstring brackets from </> to [/]
Behdad Esfahbod [Thu, 19 Jan 2012 22:51:57 +0000 (17:51 -0500)]
[hb-shape] Change glyphstring brackets from </> to [/]

Sorry for the disruption but I need this to differentiate from the
Unicode string.

12 years agoMore Indic tests from Pravin
Behdad Esfahbod [Thu, 19 Jan 2012 21:55:26 +0000 (16:55 -0500)]
More Indic tests from Pravin

12 years ago[test/shaping] Add hb-update-manifests
Behdad Esfahbod [Thu, 19 Jan 2012 20:43:48 +0000 (15:43 -0500)]
[test/shaping] Add hb-update-manifests

12 years agoStart adding new shaping test suite together
Behdad Esfahbod [Thu, 19 Jan 2012 20:21:04 +0000 (15:21 -0500)]
Start adding new shaping test suite together

12 years agoMinor
Behdad Esfahbod [Thu, 19 Jan 2012 20:15:21 +0000 (15:15 -0500)]
Minor

12 years agoRename test/ to test/api/
Behdad Esfahbod [Thu, 19 Jan 2012 19:52:02 +0000 (14:52 -0500)]
Rename test/ to test/api/

12 years agoRemove src/test.cc
Behdad Esfahbod [Thu, 19 Jan 2012 19:28:11 +0000 (14:28 -0500)]
Remove src/test.cc

Not really useful.

12 years ago[hb-diff] Clean up
Behdad Esfahbod [Thu, 19 Jan 2012 18:54:52 +0000 (13:54 -0500)]
[hb-diff] Clean up

12 years ago[hb-shape] Add --show-line-num
Behdad Esfahbod [Thu, 19 Jan 2012 17:46:18 +0000 (12:46 -0500)]
[hb-shape] Add --show-line-num

Ok, much more useful as a test suite driver now.

12 years ago[hb-shape] Add --show-text and --show-unicode options
Behdad Esfahbod [Thu, 19 Jan 2012 17:32:20 +0000 (12:32 -0500)]
[hb-shape] Add --show-text and --show-unicode options

12 years agoFix OOB in hb-shape
Behdad Esfahbod [Thu, 19 Jan 2012 17:30:43 +0000 (12:30 -0500)]
Fix OOB in hb-shape

12 years ago[test] Add two Indic test cases from Bernard Massot
Behdad Esfahbod [Thu, 19 Jan 2012 16:36:39 +0000 (11:36 -0500)]
[test] Add two Indic test cases from Bernard Massot

12 years ago[util] Add --help-features
Behdad Esfahbod [Thu, 19 Jan 2012 03:47:44 +0000 (22:47 -0500)]
[util] Add --help-features

Patch from Khaled Hosny.

12 years ago[icu] Use U_FAILURE
Behdad Esfahbod [Thu, 19 Jan 2012 03:32:52 +0000 (22:32 -0500)]
[icu] Use U_FAILURE

12 years agoReplace u_strlen() with u_countChar32()
Behdad Esfahbod [Thu, 19 Jan 2012 03:16:49 +0000 (22:16 -0500)]
Replace u_strlen() with u_countChar32()

The latter is what I meant.

12 years agoAdd test for bug in ICU decompose
Behdad Esfahbod [Thu, 19 Jan 2012 02:58:34 +0000 (21:58 -0500)]
Add test for bug in ICU decompose

As reported by Kenichi Ishibashi on 2011-10-28.

12 years agoFix OOB in replace_glyph()
Behdad Esfahbod [Thu, 19 Jan 2012 02:51:05 +0000 (21:51 -0500)]
Fix OOB in replace_glyph()

Patch from Kenichi Ishibashi.

12 years agoFix more possible buffer overruns
Behdad Esfahbod [Thu, 19 Jan 2012 02:28:34 +0000 (21:28 -0500)]
Fix more possible buffer overruns

I have this function, but can't clean up it to my satisfaction.

12 years agoRefactor the two remaining uses of _hb_ot_layout_skip_mark()
Behdad Esfahbod [Thu, 19 Jan 2012 02:19:32 +0000 (21:19 -0500)]
Refactor the two remaining uses of _hb_ot_layout_skip_mark()

12 years agoFurther mark skippy fixes from Jonathan Kew
Behdad Esfahbod [Wed, 18 Jan 2012 21:07:53 +0000 (16:07 -0500)]
Further mark skippy fixes from Jonathan Kew

We should be in good shape now.

12 years agoFix mark skipping regression
Behdad Esfahbod [Tue, 17 Jan 2012 23:08:41 +0000 (18:08 -0500)]
Fix mark skipping regression

Ouch!

12 years agoRefactor mark skipping
Behdad Esfahbod [Tue, 17 Jan 2012 03:05:08 +0000 (22:05 -0500)]
Refactor mark skipping

12 years agoMinor
Behdad Esfahbod [Mon, 16 Jan 2012 22:03:55 +0000 (17:03 -0500)]
Minor

12 years ago[GSUB/GPOS] Fix mark skip indexing issues
Behdad Esfahbod [Mon, 16 Jan 2012 21:43:26 +0000 (16:43 -0500)]
[GSUB/GPOS] Fix mark skip indexing issues

Mozilla bug 701637 and 714067 combined.

Patch from Jonathan Kew.

12 years agoAvoid enum trailing commas
Behdad Esfahbod [Mon, 16 Jan 2012 21:39:40 +0000 (16:39 -0500)]
Avoid enum trailing commas

Based on patch from Jonathan Kew.

12 years agoRequire glib >= 2.16 for the gobject option
Behdad Esfahbod [Sun, 15 Jan 2012 20:55:52 +0000 (15:55 -0500)]
Require glib >= 2.16 for the gobject option

12 years agoDisable gtk-doc macro
Behdad Esfahbod [Sun, 15 Jan 2012 19:56:56 +0000 (14:56 -0500)]
Disable gtk-doc macro

We don't have any docs yet.

12 years ago[icu] Remove glib-ism
Behdad Esfahbod [Sun, 15 Jan 2012 02:29:45 +0000 (21:29 -0500)]
[icu] Remove glib-ism

12 years agoAllow space in one more place when parsing features
Behdad Esfahbod [Sat, 14 Jan 2012 22:55:51 +0000 (17:55 -0500)]
Allow space in one more place when parsing features

12 years agoMinor
Behdad Esfahbod [Fri, 21 Oct 2011 16:18:43 +0000 (09:18 -0700)]
Minor

12 years agoFix intrin.h b0rkage with older MSVC
Behdad Esfahbod [Mon, 17 Oct 2011 18:50:54 +0000 (11:50 -0700)]
Fix intrin.h b0rkage with older MSVC

Reported by Jonathan Kew.

12 years agoFix infinite loop in normalization code with variation selectors
Behdad Esfahbod [Mon, 17 Oct 2011 18:39:28 +0000 (11:39 -0700)]
Fix infinite loop in normalization code with variation selectors

Reported by Jonathan Kew.

12 years ago[util] Add --list-shapers to hb-view and hb-shape
Behdad Esfahbod [Wed, 12 Oct 2011 19:03:58 +0000 (15:03 -0400)]
[util] Add --list-shapers to hb-view and hb-shape

12 years agoMake test-c.c actually use hb
Behdad Esfahbod [Wed, 28 Sep 2011 20:57:34 +0000 (16:57 -0400)]
Make test-c.c actually use hb

This will make sure we test that C code can actually link to the
library.

12 years agoAdd comments
Behdad Esfahbod [Wed, 28 Sep 2011 20:20:09 +0000 (16:20 -0400)]
Add comments

12 years agoAdd TODO item
Behdad Esfahbod [Tue, 27 Sep 2011 17:50:45 +0000 (13:50 -0400)]
Add TODO item

12 years agoFix GSUB lookuptype 1 subtype 1 delta wrapping
Behdad Esfahbod [Tue, 27 Sep 2011 16:38:16 +0000 (12:38 -0400)]
Fix GSUB lookuptype 1 subtype 1 delta wrapping

12 years ago[util] s/%d/%u/ when printing glyph ids and clusters
Behdad Esfahbod [Tue, 27 Sep 2011 16:36:26 +0000 (12:36 -0400)]
[util] s/%d/%u/ when printing glyph ids and clusters

12 years agoMinor
Behdad Esfahbod [Wed, 21 Sep 2011 20:50:39 +0000 (16:50 -0400)]
Minor

12 years agoFix possible leaks
Behdad Esfahbod [Wed, 21 Sep 2011 20:49:33 +0000 (16:49 -0400)]
Fix possible leaks

12 years agohb-shape: In --no-glyph-names, output glyph number directly
Behdad Esfahbod [Wed, 21 Sep 2011 20:41:43 +0000 (16:41 -0400)]
hb-shape: In --no-glyph-names, output glyph number directly

Ie. write "86" instead of "gid86".

12 years ago[util] Fix option parsing
Behdad Esfahbod [Tue, 20 Sep 2011 18:43:55 +0000 (14:43 -0400)]
[util] Fix option parsing

Wow, who knew bool is one byte and I was using it as a 4byte int?!

C++ auto casts fails you in mysterious ways...

12 years agoWhitespace
Behdad Esfahbod [Tue, 20 Sep 2011 18:34:06 +0000 (14:34 -0400)]
Whitespace

12 years ago[util] Add hb-diff
Behdad Esfahbod [Tue, 20 Sep 2011 15:20:53 +0000 (11:20 -0400)]
[util] Add hb-diff

A diff program written in Python that is more suitable for comparing
hb-shape output from different backends.  Main differences with stock
diff:

1. It outputs one line's comparison at a time, as opposed to batching
'+' lines and '-' lines.

2. It colors the part of the line that changed, taking word boundaries
into consideration.

You can pipe the colored output to 'less -r'.

12 years agoRewrite ICU detection code with in-house macros
Behdad Esfahbod [Tue, 20 Sep 2011 03:10:22 +0000 (23:10 -0400)]
Rewrite ICU detection code with in-house macros

At least works for cross-compiling now...

12 years ago[graphite] Add note about graphite shaker brokenness
Behdad Esfahbod [Mon, 19 Sep 2011 22:51:48 +0000 (18:51 -0400)]
[graphite] Add note about graphite shaker brokenness

12 years ago[util] Account for line-space in surface size
Behdad Esfahbod [Mon, 19 Sep 2011 21:57:02 +0000 (17:57 -0400)]
[util] Account for line-space in surface size

12 years ago[util] Rename --output to --output_file, and --format to --output-format
Behdad Esfahbod [Mon, 19 Sep 2011 20:56:21 +0000 (16:56 -0400)]
[util] Rename --output to --output_file, and --format to --output-format

12 years agoMinor
Behdad Esfahbod [Mon, 19 Sep 2011 20:53:47 +0000 (16:53 -0400)]
Minor

12 years agoReally fix build this time
Behdad Esfahbod [Mon, 19 Sep 2011 20:50:18 +0000 (16:50 -0400)]
Really fix build this time

12 years agoFix dist
Behdad Esfahbod [Mon, 19 Sep 2011 20:49:03 +0000 (16:49 -0400)]
Fix dist

12 years ago[util] Add hb-shape utility
Behdad Esfahbod [Mon, 19 Sep 2011 20:41:17 +0000 (16:41 -0400)]
[util] Add hb-shape utility

Like hb-view, but prints out buffer contents.

The output format is kinda cryptic.  Suggestions welcome.

12 years agoMinor
Behdad Esfahbod [Mon, 19 Sep 2011 20:15:22 +0000 (16:15 -0400)]
Minor

12 years ago[util] If no text is provided, simply call cairo_show_glyphs()
Behdad Esfahbod [Mon, 19 Sep 2011 19:45:52 +0000 (15:45 -0400)]
[util] If no text is provided, simply call cairo_show_glyphs()

12 years ago[uniscribe] Various improvements
Behdad Esfahbod [Mon, 19 Sep 2011 18:53:26 +0000 (14:53 -0400)]
[uniscribe] Various improvements

12 years ago[util] Move font-size into view-options
Behdad Esfahbod [Mon, 19 Sep 2011 13:58:55 +0000 (09:58 -0400)]
[util] Move font-size into view-options

12 years agoFix Linux build when io.h is available
Behdad Esfahbod [Sat, 17 Sep 2011 13:59:58 +0000 (09:59 -0400)]
Fix Linux build when io.h is available

Bug 40953 - fail compile git: make[2]: *** [hb_view-options.o] Error 1

12 years agoFix "[util] Fix hb-view crash with bogus font."
Behdad Esfahbod [Fri, 16 Sep 2011 20:59:17 +0000 (16:59 -0400)]
Fix "[util] Fix hb-view crash with bogus font."

12 years agoCosmetic
Behdad Esfahbod [Fri, 16 Sep 2011 20:56:34 +0000 (16:56 -0400)]
Cosmetic

12 years ago[util] Fix hb-view crash with bogus font
Behdad Esfahbod [Fri, 16 Sep 2011 20:52:26 +0000 (16:52 -0400)]
[util] Fix hb-view crash with bogus font

12 years agoMinor
Behdad Esfahbod [Fri, 16 Sep 2011 20:40:44 +0000 (16:40 -0400)]
Minor

12 years agoTODO items
Behdad Esfahbod [Fri, 16 Sep 2011 20:34:39 +0000 (16:34 -0400)]
TODO items

12 years agoMinor
Behdad Esfahbod [Fri, 16 Sep 2011 20:33:18 +0000 (16:33 -0400)]
Minor

12 years agoMinor
Behdad Esfahbod [Fri, 16 Sep 2011 16:30:50 +0000 (12:30 -0400)]
Minor