mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +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
4c288caa59
commit
a926c70f28
@ -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