Behdad Esfahbod
71632c96da
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
2012-01-22 15:31:44 -05:00
Behdad Esfahbod
8f80f93491
More shoveling around
2012-01-21 20:03:25 -05:00
Behdad Esfahbod
c78c6e9844
Cleanup
2012-01-21 19:55:16 -05:00
Behdad Esfahbod
ab94a9c542
Distribute testing tools
2012-01-21 19:43:58 -05:00
Behdad Esfahbod
3e86feb54c
Speed up colorless diff
2012-01-21 19:40:30 -05:00
Behdad Esfahbod
1e58df6034
Cleanup manifest code
2012-01-21 19:37:31 -05:00
Behdad Esfahbod
956d552e10
Port hb-manifest-update to Python
2012-01-21 19:31:51 -05:00
Behdad Esfahbod
3a34e9e351
Ignore Broken Pipe errors
2012-01-21 19:15:41 -05:00
Behdad Esfahbod
d530024168
[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.
2012-01-21 19:07:22 -05:00
Behdad Esfahbod
0f68f4a0b5
Correctly print out Unicode strings
2012-01-21 18:59:48 -05:00
Behdad Esfahbod
f22089ac24
Misc fixes
2012-01-20 21:22:14 -05:00
Behdad Esfahbod
96968bfae5
Port hb-manifest-read to Python
2012-01-20 21:16:34 -05:00
Behdad Esfahbod
a59ed46fa4
Add final residues from test-shape-complex
2012-01-20 20:56:32 -05:00
Behdad Esfahbod
820e0ed318
Add Punjabi tests from test-shape-complex also
2012-01-20 20:51:52 -05:00
Behdad Esfahbod
a7d71c1057
Add Tamil test data from Muguntharaj Subramanian
2012-01-20 20:50:09 -05:00
Behdad Esfahbod
5992a9941e
Import test data from late test-shape-complex
2012-01-20 20:48:14 -05:00
Behdad Esfahbod
46ac456477
Fix Unicode encoding issue
2012-01-20 19:32:17 -05:00
Behdad Esfahbod
ad34e39a4a
Make test tools interactive
...
By bypassing readlines() buffering.
2012-01-20 18:40:25 -05:00
Behdad Esfahbod
91540a7d97
Move most testing logic into hb_test_tools.py
...
The actual utils are one-liners now.
2012-01-20 18:28:10 -05:00
Behdad Esfahbod
66aa080033
Remove test-shape-complex
...
New shaping testsuite and framework coming.
2012-01-20 17:36:10 -05:00
Behdad Esfahbod
ed459bfb63
Add hb-unicode-encode
2012-01-20 17:24:05 -05:00
Behdad Esfahbod
d8134bc017
[hb-shape] Add parantheses around --show-text output
2012-01-20 17:18:59 -05:00
Behdad Esfahbod
b12c4d4361
Add hb-diff-filter-failures
2012-01-20 17:17:44 -05:00
Behdad Esfahbod
d4bffbc55b
Move
2012-01-20 17:16:35 -05:00
Behdad Esfahbod
45f640c98d
Minor
2012-01-20 14:24:21 -05:00
Behdad Esfahbod
47ca766a9c
Minor
2012-01-20 14:21:53 -05:00
Behdad Esfahbod
8f1db07894
[test/shaping] Add some Indic test data for the new test suite
...
Imported from UTRRS.
2012-01-20 14:00:44 -05:00
Behdad Esfahbod
11267aef36
Fix
2012-01-20 13:57:14 -05:00
Behdad Esfahbod
4e84ce48d5
Move hb-diff to test/shaping/
2012-01-20 13:51:22 -05:00
Behdad Esfahbod
f868e1b84d
Add hb-unicode-decode
2012-01-20 13:50:05 -05:00
Behdad Esfahbod
9ab23ef474
Minor
2012-01-20 13:49:56 -05:00
Behdad Esfahbod
c8d81db033
Recognize more characters
2012-01-20 13:39:27 -05:00
Behdad Esfahbod
0016d4662d
[test] Make hb-unicode-prettyname take a --stdin option
2012-01-20 13:31:59 -05:00
Behdad Esfahbod
ad8c6446f2
[test/shaping] Add hb-unicode-prettyname
2012-01-20 13:27:40 -05:00
Behdad Esfahbod
e900869b0f
[test/shaping] Add hb-read-manifest
2012-01-19 20:28:15 -05:00
Behdad Esfahbod
a211cd3ffc
Ignore AUTHORS also
2012-01-19 20:27:53 -05:00
Behdad Esfahbod
c91c4fa471
[hb-shape] Change glyphstring brackets from </> to [/]
...
Sorry for the disruption but I need this to differentiate from the
Unicode string.
2012-01-19 17:51:57 -05:00
Behdad Esfahbod
36fe87d1b4
More Indic tests from Pravin
2012-01-19 16:55:26 -05:00
Behdad Esfahbod
a33e46cf7d
[test/shaping] Add hb-update-manifests
2012-01-19 15:44:55 -05:00
Behdad Esfahbod
d4de562adf
Start adding new shaping test suite together
2012-01-19 15:21:04 -05:00
Behdad Esfahbod
7a4a848db2
Minor
2012-01-19 15:15:21 -05:00
Behdad Esfahbod
4d6dafd47f
Rename test/ to test/api/
2012-01-19 14:52:02 -05:00
Behdad Esfahbod
3b5c22c39b
Remove src/test.cc
...
Not really useful.
2012-01-19 14:28:11 -05:00
Behdad Esfahbod
4983feebbb
[hb-diff] Clean up
2012-01-19 13:54:52 -05:00
Behdad Esfahbod
cdc673d97c
[hb-shape] Add --show-line-num
...
Ok, much more useful as a test suite driver now.
2012-01-19 12:46:18 -05:00
Behdad Esfahbod
cc4d9810d6
[hb-shape] Add --show-text and --show-unicode options
2012-01-19 12:32:20 -05:00
Behdad Esfahbod
27c36af411
Fix OOB in hb-shape
2012-01-19 12:30:43 -05:00
Behdad Esfahbod
8d2781d692
[test] Add two Indic test cases from Bernard Massot
2012-01-19 11:36:39 -05:00
Behdad Esfahbod
8750abaf84
[util] Add --help-features
...
Patch from Khaled Hosny.
2012-01-18 22:47:44 -05:00
Behdad Esfahbod
889caa52fa
[icu] Use U_FAILURE
2012-01-18 22:32:52 -05:00