Bug 661471. Part 3: Apply 'GDI Classic' prefs to @font-face local(). r=jdaggett,jfkthame

This commit is contained in:
Robert O'Callahan 2011-06-03 16:31:08 +12:00
Родитель e6a174ce46
Коммит be47844603
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -552,13 +552,14 @@ gfxDWriteFontList::LookupLocalFont(const gfxProxyFontEntry *aProxyEntry,
{
return nsnull;
}
gfxFontEntry *fe =
gfxDWriteFontEntry* dwriteLookup = static_cast<gfxDWriteFontEntry*>(lookup);
gfxDWriteFontEntry *fe =
new gfxDWriteFontEntry(lookup->Name(),
static_cast<gfxDWriteFontEntry*>(lookup)->mFont,
dwriteLookup->mFont,
aProxyEntry->Weight(),
aProxyEntry->Stretch(),
aProxyEntry->IsItalic());
fe->SetForceGDIClassic(dwriteLookup->GetForceGDIClassic());
return fe;
}