Updated to trunk
authorromashin
Sat, 19 Apr 2008 18:40:12 +0300
changeset 16828 a2be703b808ece829f67c54ac2ad7045a33ea818
parent 16827 7b965bc0201ddf63ffb323814272b0e5ecd875f8
child 16829 19257524576a4dfa1512ce715b954a3ea2a63d82
push id1298
push userpavlov@mozilla.com
push dateSun, 17 Aug 2008 05:03:09 +0000
treeherderautoland@4a506fa751d8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone2.0a1pre
Updated to trunk
gfx/src/thebes/nsSystemFontsQt.cpp
--- a/gfx/src/thebes/nsSystemFontsQt.cpp
+++ b/gfx/src/thebes/nsSystemFontsQt.cpp
@@ -94,17 +94,17 @@ nsSystemFontsQt::GetSystemFontInfo(const
                                      gfxFontStyle *aFontStyle) const
 {
     aFontStyle->style       = FONT_STYLE_NORMAL;
     aFontStyle->systemFont  = PR_TRUE;
     NS_NAMED_LITERAL_STRING(quote, "\"");
     nsString family((PRUnichar*)aFont.family().data());
     *aFontName = quote + family + quote;
     aFontStyle->weight = aFont.weight();
-    aFontStyle->size = aFont.pointSizeF();
+    aFontStyle->size = aFont.pointSizeF() * float(gfxPlatformQt::DPI()) / 72.0f;
     return NS_OK;
 }
 
 
 nsresult
 nsSystemFontsQt::GetSystemFont(nsSystemFontID anID, nsString *aFontName,
                                  gfxFontStyle *aFontStyle) const
 {