Return back Qt font using
authorromashin
Sat, 19 Apr 2008 18:40:46 +0300
changeset 16836 26a480c8630e66b6627388ba1d5fab1abc5fbab7
parent 16835 f64b501d7d781d8a2a8c4d81e5e2b731ecdc2fdd
child 16837 d070b230ed886611c6ad192344f371da665b56a8
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
Return back Qt font using
gfx/thebes/src/gfxQtFonts.cpp
--- a/gfx/thebes/src/gfxQtFonts.cpp
+++ b/gfx/thebes/src/gfxQtFonts.cpp
@@ -701,18 +701,18 @@ cairo_scaled_font_t*
 gfxQtFont::CreateScaledFont(cairo_t *aCR, cairo_matrix_t *aCTM, QFont &aQFont)
 {
     double size = mAdjustedSize ? mAdjustedSize : GetStyle()->size;
     cairo_matrix_t fontMatrix;
     cairo_matrix_init_scale(&fontMatrix, size, size);
     cairo_font_options_t *fontOptions = cairo_font_options_create();
 
     cairo_scaled_font_t* scaledFont = 
-//                cairo_scaled_font_create( CairoFontFace(&aQFont),
-                cairo_scaled_font_create( CairoFontFace(), // This makes fonts working almost perfect
+                cairo_scaled_font_create( CairoFontFace(&aQFont),
+//                cairo_scaled_font_create( CairoFontFace(), // This makes fonts working almost perfect
                                           &fontMatrix,
                                           aCTM,
                                           fontOptions);
 
     cairo_font_options_destroy(fontOptions);
 
     return scaledFont;
 }