From be4784460354381c24dc24da705621c1157d7de9 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 3 Jun 2011 16:31:08 +1200 Subject: [PATCH] Bug 661471. Part 3: Apply 'GDI Classic' prefs to @font-face local(). r=jdaggett,jfkthame --- gfx/thebes/gfxDWriteFontList.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gfx/thebes/gfxDWriteFontList.cpp b/gfx/thebes/gfxDWriteFontList.cpp index d72fb74cf290..da0d5122577e 100644 --- a/gfx/thebes/gfxDWriteFontList.cpp +++ b/gfx/thebes/gfxDWriteFontList.cpp @@ -552,13 +552,14 @@ gfxDWriteFontList::LookupLocalFont(const gfxProxyFontEntry *aProxyEntry, { return nsnull; } - gfxFontEntry *fe = + gfxDWriteFontEntry* dwriteLookup = static_cast(lookup); + gfxDWriteFontEntry *fe = new gfxDWriteFontEntry(lookup->Name(), - static_cast(lookup)->mFont, + dwriteLookup->mFont, aProxyEntry->Weight(), aProxyEntry->Stretch(), aProxyEntry->IsItalic()); - + fe->SetForceGDIClassic(dwriteLookup->GetForceGDIClassic()); return fe; }