From: handa Date: Thu, 16 Aug 2007 05:11:12 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc04cf7a79fad60b33e024ee2a0fa923f45694f0;p=m17n%2Fm17n-test.git *** empty log message *** --- diff --git a/flt.c b/flt.c index d7cf04a..6df60a8 100644 --- a/flt.c +++ b/flt.c @@ -771,33 +771,27 @@ setup_features (int gsubp, FontInfoHB *font_info, MFLT_OTF_Spec *spec, if (req_feature != 0xFFFF) info->indices[i++] = req_feature; for (j = 0; j < preordered; j++) - { - if ((err = (gsubp - ? HB_GSUB_Select_Feature (font_info->gsub, features[j], - script, langsys, &index) - : HB_GPOS_Select_Feature (font_info->gpos, features[j], - script, langsys, &index))) - != HB_Err_Ok) - return err; + if ((err = (gsubp + ? HB_GSUB_Select_Feature (font_info->gsub, features[j], + script, langsys, &index) + : HB_GPOS_Select_Feature (font_info->gpos, features[j], + script, langsys, &index))) + == HB_Err_Ok) info->indices[i++] = index; - } if (feature_list) for (j = 0; feature_list[j]; j++) { for (k = preordered + 1; k < count; k++) if (feature_list[j] == features[k]) break; - if (k == count) - { - if ((gsubp + if (k == count + && ((gsubp ? HB_GSUB_Select_Feature (font_info->gsub, feature_list[j], script, langsys, &index) : HB_GPOS_Select_Feature (font_info->gpos, feature_list[j], script, langsys, &index)) - != FT_Err_Ok) - return -1; - info->indices[i++] = index; - } + == FT_Err_Ok)) + info->indices[i++] = index; } info->count = i; return HB_Err_Ok;