mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1464094 - follow-up - check that dlsym succeeded in ApplyVariations. r=me
MozReview-Commit-ID: 5lrrnFVKMS0
This commit is contained in:
parent
10db8f0662
commit
5cf4237333
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user