From 1590ae33cc768d581fcdbaf43ea5a885da76ed42 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 d72fb74cf29..da0d5122577 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; }