From 029a82d81d8ffa1b6771d19018d592fec1dbc934 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 11 Apr 2012 22:00:46 -0400 Subject: [PATCH] [hangul] Apply *jmo features to all Hangul chars This is what old HB does. Morever, fixes rendering with Win8 malgun font. The Win7 version doesn't compose with either Uniscribe nor HB, but Win8 version works as expected, like Uniscribe, with this change. Lets call Hangul done for now. --- src/hb-ot-shape-complex-misc.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hb-ot-shape-complex-misc.cc b/src/hb-ot-shape-complex-misc.cc index 99e54f6e0..76cb3a385 100644 --- a/src/hb-ot-shape-complex-misc.cc +++ b/src/hb-ot-shape-complex-misc.cc @@ -56,9 +56,18 @@ _hb_ot_shape_complex_setup_masks_default (hb_ot_map_t *map, hb_buffer_t *buffer, /* Hangul shaper */ +static const hb_tag_t hangul_features[] = +{ + HB_TAG('l','j','m','o'), + HB_TAG('v','j','m','o'), + HB_TAG('t','j','m','o'), +}; + void _hb_ot_shape_complex_collect_features_hangul (hb_ot_map_builder_t *map, const hb_segment_properties_t *props) { + for (unsigned int i = 0; i < ARRAY_LENGTH (hangul_features); i++) + map->add_bool_feature (hangul_features[i]); } hb_ot_shape_normalization_mode_t