diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2013-08-13 18:43:25 -0700 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2013-08-13 20:02:07 -0700 |
commit | 3309edccdbc2a92eb03a285abb27c1c1c4a88e43 (patch) | |
tree | 17c653ff83008a06cfbee960134b60ed9e5861c5 | |
parent | 7025601d0815f37c67f879b82ae8878347f37fbc (diff) | |
download | harfbuzz_ng-idea133-weekly-release.tar.gz |
Support U+061C ARABIC LETTER MARK by making it invisible when rendering text.android-sdk-4.4.2_r1.0.1android-sdk-4.4.2_r1android-cts-4.4_r4android-cts-4.4_r1android-4.4w_r1android-4.4_r1.2.0.1android-4.4_r1.2android-4.4_r1.1.0.1android-4.4_r1.1android-4.4_r1.0.1android-4.4_r1android-4.4_r0.9android-4.4_r0.8android-4.4_r0.7android-4.4.4_r2.0.1android-4.4.4_r2android-4.4.4_r1.0.1android-4.4.4_r1android-4.4.3_r1.1.0.1android-4.4.3_r1.1android-4.4.3_r1.0.1android-4.4.3_r1android-4.4.2_r2.0.1android-4.4.2_r2android-4.4.2_r1.0.1android-4.4.2_r1android-4.4.1_r1.0.1android-4.4.1_r1kitkat-wearkitkat-releasekitkat-mr2.2-releasekitkat-mr2.1-releasekitkat-mr2-releasekitkat-mr1.1-releasekitkat-mr1-releasekitkat-devkitkat-cts-releasekitkat-cts-devidea133-weekly-releaseidea133
The character works automagically otherwise: for the Unicode Bidirectional
Algorithm, the default type for undefined characters in the Arabic block is
set to AL.
Patch cherrypicked from upstream at:
https://github.com/behdad/harfbuzz/commit/a8bf0e91f18341e1e20f4e3341fc7dcdd0c990e1
Bug: 10190564
Change-Id: Id50c3163d3751b0247095c1c110432962683638c
-rw-r--r-- | src/hb-unicode-private.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hb-unicode-private.hh b/src/hb-unicode-private.hh index 155a8a350..dd4d00138 100644 --- a/src/hb-unicode-private.hh +++ b/src/hb-unicode-private.hh @@ -128,6 +128,9 @@ HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS_SIMPLE * is NOT Default_Ignorable, but it really behaves in a way that it should * be. That has been reported to the Unicode Technical Committee for * consideration. As such, we include it here, since Uniscribe removes it. + * It *is* in Unicode 6.3 however. U+061C ARABIC LETTER MARK from Unicode + * 6.3 is also added manually. The new Unicode 6.3 bidi formatting + * characters are encoded in a block that was Default_Ignorable already. * * Note: While U+115F and U+1160 are Default_Ignorable, we do NOT want to * hide them, as the way Uniscribe has implemented them is with regular @@ -173,6 +176,7 @@ HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS_SIMPLE switch (page) { case 0x00: return unlikely (ch == 0x00AD); case 0x03: return unlikely (ch == 0x034F); + case 0x06: return unlikely (ch == 0x061C); case 0x17: return hb_in_range<hb_codepoint_t> (ch, 0x17B4, 0x17B5); case 0x18: return hb_in_range<hb_codepoint_t> (ch, 0x180B, 0x180E); case 0x20: return hb_in_ranges<hb_codepoint_t> (ch, 0x200B, 0x200F, |