Bug 314707 - SVG Font Size Printing Error. r=tor, sr=roc

git-svn-id: svn://10.0.0.236/trunk@203095 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
longsonr%gmail.com
2006-07-19 12:40:05 +00:00
parent 26f76b5fce
commit 883f6a9a6b

View File

@@ -1202,9 +1202,11 @@ void nsSVGGlyphFrame::SelectFont(cairo_t *ctx)
// (Ctrl++,Ctrl+-)
nsPresContext *presContext = GetPresContext();
float pxPerTwips = presContext->TwipsToPixels();
float pixelScale;
presContext->DeviceContext()->GetCanonicalPixelScale(pixelScale);
float textZoom = presContext->TextZoom();
cairo_set_font_size(ctx, font.size * pxPerTwips / textZoom);
cairo_set_font_size(ctx, font.size * pxPerTwips / pixelScale / textZoom);
}
void nsSVGGlyphFrame::UpdateGeometry(PRBool bRedraw,