Behdad Esfahbod
51f563579b
Move try_set to sanitize context
11 years ago
Behdad Esfahbod
500737e8e1
[ot-font] Don't select a Null cmap subtable
...
Can happen either in broken fonts, or as a result of sanitize().
11 years ago
Behdad Esfahbod
dac86026a6
Fix some cppcheck warnings
...
Bug 77800 - cppcheck reports
11 years ago
Behdad Esfahbod
c306410cab
Bug 77732 - Fix unused typedef warning for ASSERT_STATIC with GCC 4.8
11 years ago
Behdad Esfahbod
ae2b854eab
Move code around
11 years ago
Behdad Esfahbod
17c3b809f4
[indic] Treat U+A8E0..A8F1 as OT_A instead of OT_VD
...
Apparently they can intermix with other OT_A.
Test: U+0915,A8E2,1CD0
11 years ago
Behdad Esfahbod
6ae13f257c
[graphite2] Fix cluster mapping
...
Patch from Martin Hosken. I expect this to fix the following bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=75076
https://bugzilla.gnome.org/show_bug.cgi?id=723582
https://bugzilla.redhat.com/show_bug.cgi?id=998812
11 years ago
Behdad Esfahbod
5875ad9c46
0.9.29
11 years ago
Behdad Esfahbod
7977ca17aa
[indic] Allow decimal and Brahmi digits as placeholders
...
Tests: U+0967,0951 U+0031,093F
11 years ago
Behdad Esfahbod
e8b5d64039
[indic] Do NOT allow reph formation on placeholders
...
Only allow it on DOTTED CIRCLE. No effect on test numbers.
Test: U+0930,094D,00A0
11 years ago
Behdad Esfahbod
52b562a6a0
[indic] Clean up a bit
...
No functional change intended.
11 years ago
Behdad Esfahbod
3bf652b907
[indic] Treat U+002D and U+2010..2014 as placeholders
11 years ago
Behdad Esfahbod
e0de95f402
[indic] Treat U+00D7 MULTIPLICATION SIGN as placeholder
11 years ago
Behdad Esfahbod
cf78dd483c
[indic/myanmar] Rename OT_NBSP to OT_PLACEHOLDER
11 years ago
Behdad Esfahbod
186ece94c8
[myanmar] Use OT_NBSP instead of OT_DOTTEDCIRCLE for OT_GB
...
No functional change.
11 years ago
Behdad Esfahbod
cf71d28c38
[indic/myanmar] Refactor a few macros
11 years ago
Behdad Esfahbod
2307268e01
[indic] Treat U+0A72..0A73 like regular consonants
...
Unicode 6.x IndicSyllableCategory categorizes them as
placeholders, but they can subjoin.
11 years ago
Behdad Esfahbod
e9b2a4cfe5
[indic] Support U+1CED
11 years ago
Behdad Esfahbod
d19f8e8570
[indic] Support U+A8F2..A8F7,1CE9..1CEC,1CEE..1CF1
11 years ago
Behdad Esfahbod
ddbdfcbf1c
[indic] Simplify grammar
...
No functional change.
11 years ago
Behdad Esfahbod
4e9b1f662b
[indic] Always start new syllable for Avagraha
...
In fact, the previous grammar was ambigious. No functional
change.
11 years ago
Behdad Esfahbod
9f9bd9bf31
[indic] Rename avagraha cluster to symbol cluster
...
In anticipation of adding more characters to that class of clusters.
11 years ago
Behdad Esfahbod
a498565ced
[indic] Support U+1CF2,U+1CF3
11 years ago
Behdad Esfahbod
ecb98babba
[indic] Support U+1CE2..U+1CE8
11 years ago
Behdad Esfahbod
37bf2c9224
Minor
11 years ago
Behdad Esfahbod
131e17ff9a
[indic] Support U+1CF5,1CF6
11 years ago
Behdad Esfahbod
72ead0cc72
[indic] Treat U+1CE1 as a tone-mark too
...
It's spacing, but otherwise the same as the other ones.
11 years ago
Behdad Esfahbod
e848bfae7c
[indic] Recategorize U+A8E0..A8F1 as OT_VD
...
Up to two of them come after all OT_A characters.
11 years ago
Behdad Esfahbod
c519536c34
[indic] Allow up to three tone marks
...
According to Roozbeh, there are valid combinations in Unicode
proposals for up to three. Previously we were allowing up to two.
11 years ago
Behdad Esfahbod
c11fc68339
[indic] Support more extended Devanagari tone marks
...
Also adjust U+0953,0954 handling.
11 years ago
Behdad Esfahbod
26c836e53d
[indic] Handle "Cantillation marks for the Samaveda"
11 years ago
Behdad Esfahbod
29531128f2
[indic] Improve reph formation of Sinhala and Telugu
...
Sinhala and Telugu use "explicit" reph. That is, the reph is formed by
a Ra,H,ZWJ sequence. Previously, upon detecting this sequence, we were
checking checking whether the 'rphf' feature applies to the first two
glyphs of the sequence. This is how the Microsoft fonts are designed.
However, testing with Noto shows that apparently Uniscribe also forms
the reph if the lookup ligates all three glyphs. So, try both
sequences.
Doesn't affect test results for Sinhala or Telugu.
https://code.google.com/a/google.com/p/noto-alpha/issues/detail?id=232
11 years ago
Oleg Oshmyan
8c703f13bf
Fix build with --coretext on older OS X
...
Fixes https://github.com/behdad/harfbuzz/pull/40
11 years ago
Behdad Esfahbod
439b05867c
[myanmar] Allow MedialYa+Asat in the grammar
...
The grammar in the OT spec, and the existing Windows implementation
seem to be confused around where to allow Asat around the medial
consonants.
The previous grammar for medial group was allowing an Asat after
the medial group only if there was a medial Wa or Ha, but not if
there was only a medial Ya. This doesn't make sense to me and
sounds reversed, as both medial Wa and Ha are below marks while
Asat is an above mark. An Asat can come before the medial group
already (in fact, multiple ones can. Why?!). The medial Ya
however is a spacing mark and according to Roozbeh it's valid
to want an Asat on the medial Ya instead of the base, so it looks
to me like we want to allow an Asat after the medial group if
there *was* a Ya but not if there wasn't any. Not wanting to
produce dotted-circle where Windows is not, this commit changes
the grammar to allow one Asat after the medial group no matter
what comes in the group.
Test: U+1002,103A,103B vs U+1002,103B,103A
11 years ago
Behdad Esfahbod
0a017ce169
Add tests for Myanmar Asat+MedialYa and MedialYa+Asat sequences
...
One of them currently produces dotted-circle. Fix and detailed
message coming.
11 years ago
Behdad Esfahbod
c95587618c
[ot] Minor note re cmap subtable format 2 and 8
11 years ago
Behdad Esfahbod
b7878cd58e
[ot] Implement cmap subtable format 0
11 years ago
Behdad Esfahbod
ca7b77431d
[ot] Factor out code between cmap sutable format 12 and 13
11 years ago
Behdad Esfahbod
94759e8219
[ot] Factor out code between cmap subtable format 6 and 10
11 years ago
Behdad Esfahbod
1a8ffc5129
Minor
11 years ago
Behdad Esfahbod
91bbfca875
[ot] Implement cmap subtable formats 6 and 10
11 years ago
Behdad Esfahbod
d294a2cb16
[ot] Implement cmap subtable format 13
11 years ago
Behdad Esfahbod
0d75793fae
[ot] Implement cmap subtable format 12
11 years ago
Behdad Esfahbod
3608a6847e
[ot] Hook up cmap table to hb_ot_font_funcs()
11 years ago
Behdad Esfahbod
c8a4745299
[ot] Implement cmap subtable format 4
11 years ago
Behdad Esfahbod
4719621f20
Minor
11 years ago
Behdad Esfahbod
41ca1fbebf
[ot] Start implementing cmap table
11 years ago
Behdad Esfahbod
c7074b8798
[otlayout] Add GenericArrayOf::search()
11 years ago
Behdad Esfahbod
40a479797a
[otlayout] Add GenericSortedArrayOf
11 years ago
Behdad Esfahbod
0ddecabc6d
[main] Minor improvement to output
11 years ago