From af92b4cc90e4184d5bdd8037c551ed482700114f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 16 Jul 2012 20:31:24 -0400 Subject: [PATCH] [Indic] Disable 'kern' in Uniscribe bug compatibility mode Uniscribe does not apply 'kern' in the Indic module. Some of the Khmer fonts they ship have small adjustments in the 'kern' table. Disable 'kern' in the Indic module under Uniscribe bug compatibility mode. Fixes some 10% of the Khmer failures. Remains under 3% (excluding dotted-circle ones). --- src/hb-ot-shape-complex-indic.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index f8be98e8e..19bb75c32 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -221,6 +221,9 @@ void _hb_ot_shape_complex_override_features_indic (hb_ot_map_builder_t *map, const hb_segment_properties_t *props HB_UNUSED) { + /* Uniscribe does not apply 'kern'. */ + if (indic_options ().uniscribe_bug_compatible) + map->add_feature (HB_TAG('k','e','r','n'), 0, true); }