static void ff_do_reencode(Encoding * encoding, int force) { assert(encoding); if(force) { SFForceEncoding(cur_fv->sf, cur_fv->map, encoding); } else { EncMapFree(cur_fv->map); cur_fv->map = EncMapFromEncoding(cur_fv->sf, encoding); } if(cur_fv->normal) { EncMapFree(cur_fv->normal); cur_fv->normal = NULL; } SFReplaceEncodingBDFProps(cur_fv->sf, cur_fv->map); }
static void ffw_do_reencode(Encoding * encoding, int force) { assert(encoding); if(force) { SFForceEncoding(cur_fv->sf, cur_fv->map, encoding); } else { EncMapFree(cur_fv->map); cur_fv->map = EncMapFromEncoding(cur_fv->sf, encoding); } if(cur_fv->normal) { EncMapFree(cur_fv->normal); cur_fv->normal = NULL; } SFReplaceEncodingBDFProps(cur_fv->sf, cur_fv->map); free(cur_fv->selected); cur_fv->selected = gcalloc(cur_fv->map->enccount, sizeof(char)); }