Bug 1464094 - follow-up - check that dlsym succeeded in ApplyVariations. r=me

MozReview-Commit-ID: 5lrrnFVKMS0
This commit is contained in:
Lee Salzman 2018-06-01 15:39:50 -04:00
parent 10db8f0662
commit 5cf4237333

View File

@ -589,6 +589,10 @@ ScaledFontFontconfig::ApplyVariations(const FontVariation* aVariations,
setCoords = (SetVarDesignCoordsFunc)dlsym(RTLD_DEFAULT, "FT_Set_Var_Design_Coordinates");
}
if (!setCoords) {
return;
}
cairo_scaled_font_t* sf = GetCairoScaledFont();
FT_Face face = cairo_ft_scaled_font_lock_face(sf);
if (face && face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS) {