Index: src/ports/SkFontHost_win.cpp |
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp |
index 67927fd81cc6d8449630ec4047fd498ac941168d..379e7afaaa92d6690790ea196f70a74493618ffb 100755 |
--- a/src/ports/SkFontHost_win.cpp |
+++ b/src/ports/SkFontHost_win.cpp |
@@ -633,7 +633,7 @@ SkScalerContext_GDI::SkScalerContext_GDI(SkTypeface* rawTypeface, |
fGsA.eM21 = SkScalarToFIXED(-GsA.get(SkMatrix::kMSkewX)); |
fGsA.eM22 = SkScalarToFIXED(GsA.get(SkMatrix::kMScaleY)); |
- SkScalar gdiTextSize = scale.fY; |
+ SkScalar gdiTextSize = SkScalarRoundToScalar(scale.fY); |
reed1
2015/03/18 13:57:08
// Comment here, to document WHY we need the round
bungeman-skia
2015/03/18 14:22:13
Done.
|
if (gdiTextSize == 0) { |
gdiTextSize = SK_Scalar1; |
} |