Bug 975460 - check for null CTFontRef after creation. r=jfkthame

This commit is contained in:
John Daggett 2014-02-25 16:37:26 +09:00
parent 7644ee9553
commit 4d834aff1c

View File

@ -1078,6 +1078,10 @@ MacFontInfo::LoadFontFamilyData(const nsAString& aFamilyName)
}
CTFontRef fontRef = CTFontCreateWithFontDescriptor(faceDesc,
0.0, nullptr);
if (!fontRef) {
NS_WARNING("failed to create a CTFontRef");
continue;
}
if (mLoadCmaps) {
// face name