if (FcPatternGetString(fonts->fonts[i], FC_FAMILY, 0, &family_value) != FcResultMatch)
continue;
- if (FcPatternGetBool(fonts->fonts[i], FC_SCALABLE, 0, &scalable_value) != FcResultMatch || scalable_value != FcTrue)
+ FcPatternGetBool(fonts->fonts[i], FC_SCALABLE, 0, &scalable_value);
+ if (scalable_value != FcTrue)
continue;
if (FcPatternGetString(fonts->fonts[i], FC_FOUNDRY, 0, &foundry_value) != FcResultMatch)
}
#if defined(FC_AUTOHINT) && defined(FT_LOAD_FORCE_AUTOHINT)
- bool autohint = false;
- FcBool b = FcFalse;
- if (FcPatternGetBool(pattern, FC_AUTOHINT, 0, &b) == FcResultMatch) {
- autohint = b;
- }
- if (autohint) {
+ FcBool autohint = FcFalse;
+ FcPatternGetBool(pattern, FC_AUTOHINT, 0, &autohint);
+ if (autohint == FcTrue) {
default_load_flags |= FT_LOAD_FORCE_AUTOHINT;
}
#endif