Bug 1321031 pt 4 - Preserve variations settings if gfxCoreTextShaper needs to instantiate a new CTFont. r=jrmuizel

This commit is contained in:
Jonathan Kew 2017-01-06 16:35:12 +00:00
parent c021e933d7
commit d6f651d360

View File

@ -773,9 +773,9 @@ CTFontRef
gfxCoreTextShaper::CreateCTFontWithFeatures(CGFloat aSize,
CTFontDescriptorRef aDescriptor)
{
gfxMacFont *f = static_cast<gfxMacFont*>(mFont);
return ::CTFontCreateWithGraphicsFont(f->GetCGFontRef(), aSize, nullptr,
aDescriptor);
CGFontRef cgFont = static_cast<gfxMacFont*>(mFont)->GetCGFontRef();
return gfxMacFont::CreateCTFontFromCGFontWithVariations(cgFont, aSize,
aDescriptor);
}
void