commit | 7977ca17aac34b9ab10622928bed8afa2177f16a | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Thu May 29 15:34:26 2014 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Thu May 29 15:34:26 2014 -0400 |
tree | a4ecca48cc97696a1132a0a35307766f65c7eedd | |
parent | e8b5d64039614ecce472eda1a7a603736da25d86 [diff] |
[indic] Allow decimal and Brahmi digits as placeholders Tests: U+0967,0951 U+0031,093F
diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index bd6c765..d652018 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc
@@ -254,6 +254,10 @@ if (_hb_glyph_info_get_general_category (&info) == HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK) cat = OT_N; } + /* Decimal and Brahmi numbers. */ + else if (unlikely (_hb_glyph_info_get_general_category (&info) == + HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER || + hb_in_range<hb_codepoint_t> (u, 0x11052, 0x11065))) cat = OT_PLACEHOLDER;
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt index abf9760..4a8326c 100644 --- a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt +++ b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt
@@ -32,3 +32,5 @@ कि ऽं रुँः +1ि +१॑