[Unicode 14] Handle U+180F FVS4
This commit is contained in:
parent
794b00db4b
commit
8c65442069
|
@ -236,7 +236,7 @@ _hb_glyph_info_set_unicode_props (hb_glyph_info_t *info, hb_buffer_t *buffer)
|
||||||
* FVSes are GC=Mn, we have use a separate bit to remember them.
|
* FVSes are GC=Mn, we have use a separate bit to remember them.
|
||||||
* Fixes:
|
* Fixes:
|
||||||
* https://github.com/harfbuzz/harfbuzz/issues/234 */
|
* https://github.com/harfbuzz/harfbuzz/issues/234 */
|
||||||
else if (unlikely (hb_in_range<hb_codepoint_t> (u, 0x180Bu, 0x180Du))) props |= UPROPS_MASK_HIDDEN;
|
else if (unlikely (hb_in_ranges<hb_codepoint_t> (u, 0x180Bu, 0x180Du, 0x180Fu, 0x180Fu))) props |= UPROPS_MASK_HIDDEN;
|
||||||
/* TAG characters need similar treatment. Fixes:
|
/* TAG characters need similar treatment. Fixes:
|
||||||
* https://github.com/harfbuzz/harfbuzz/issues/463 */
|
* https://github.com/harfbuzz/harfbuzz/issues/463 */
|
||||||
else if (unlikely (hb_in_range<hb_codepoint_t> (u, 0xE0020u, 0xE007Fu))) props |= UPROPS_MASK_HIDDEN;
|
else if (unlikely (hb_in_range<hb_codepoint_t> (u, 0xE0020u, 0xE007Fu))) props |= UPROPS_MASK_HIDDEN;
|
||||||
|
|
|
@ -349,7 +349,7 @@ mongolian_variation_selectors (hb_buffer_t *buffer)
|
||||||
unsigned int count = buffer->len;
|
unsigned int count = buffer->len;
|
||||||
hb_glyph_info_t *info = buffer->info;
|
hb_glyph_info_t *info = buffer->info;
|
||||||
for (unsigned int i = 1; i < count; i++)
|
for (unsigned int i = 1; i < count; i++)
|
||||||
if (unlikely (hb_in_range<hb_codepoint_t> (info[i].codepoint, 0x180Bu, 0x180Du)))
|
if (unlikely (hb_in_ranges<hb_codepoint_t> (info[i].codepoint, 0x180Bu, 0x180Du, 0x180Fu, 0x180Fu)))
|
||||||
info[i].arabic_shaping_action() = info[i - 1].arabic_shaping_action();
|
info[i].arabic_shaping_action() = info[i - 1].arabic_shaping_action();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS_SIMPLE
|
||||||
static hb_bool_t
|
static hb_bool_t
|
||||||
is_variation_selector (hb_codepoint_t unicode)
|
is_variation_selector (hb_codepoint_t unicode)
|
||||||
{
|
{
|
||||||
/* U+180B..180D MONGOLIAN FREE VARIATION SELECTORs are handled in the
|
/* U+180B..180D, U+180F MONGOLIAN FREE VARIATION SELECTORs are handled in the
|
||||||
* Arabic shaper. No need to match them here. */
|
* Arabic shaper. No need to match them here. */
|
||||||
return unlikely (hb_in_ranges<hb_codepoint_t> (unicode,
|
return unlikely (hb_in_ranges<hb_codepoint_t> (unicode,
|
||||||
0xFE00u, 0xFE0Fu, /* VARIATION SELECTOR-1..16 */
|
0xFE00u, 0xFE0Fu, /* VARIATION SELECTOR-1..16 */
|
||||||
|
|
Loading…
Reference in New Issue