diff --git a/gfx/thebes/gfxMacFont.cpp b/gfx/thebes/gfxMacFont.cpp index 9dc574c2737a..f3b98c2314e3 100644 --- a/gfx/thebes/gfxMacFont.cpp +++ b/gfx/thebes/gfxMacFont.cpp @@ -563,7 +563,8 @@ gfxMacFont::CreateCTFontFromCGFontWithVariations(CGFontRef aCGFont, ctFont = ::CTFontCreateWithGraphicsFont(aCGFont, aSize, nullptr, varDesc); ::CFRelease(varDesc); } else { - ctFont = ::CTFontCreateWithGraphicsFont(aCGFont, aSize, nullptr, nullptr); + ctFont = ::CTFontCreateWithGraphicsFont(aCGFont, aSize, nullptr, + aFontDesc); } return ctFont; }