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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user