From 458b6033c5ef26467509dbacfb157b5328c2d750 Mon Sep 17 00:00:00 2001 From: "pavlov@pavlov.net" Date: Tue, 3 Apr 2007 13:11:25 -0700 Subject: [PATCH] fixing bug causing font-weight: 900 to not be bold. bug 359542. r=vlad --- gfx/thebes/src/gfxWindowsFonts.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/thebes/src/gfxWindowsFonts.cpp b/gfx/thebes/src/gfxWindowsFonts.cpp index a7bf6095a59..2aeacb2a611 100644 --- a/gfx/thebes/src/gfxWindowsFonts.cpp +++ b/gfx/thebes/src/gfxWindowsFonts.cpp @@ -256,6 +256,9 @@ gfxWindowsFont::MakeHFONT() chosenWeight = baseWeight * 100; } + if (chosenWeight == 0) + chosenWeight = baseWeight * 100; + mAdjustedSize = mStyle->size; if (mStyle->sizeAdjust > 0) { if (!mFont) {