mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1321031
pt 4 - Preserve variations settings if gfxCoreTextShaper needs to instantiate a new CTFont. r=jrmuizel
This commit is contained in:
parent
c021e933d7
commit
d6f651d360
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user