diff options
Diffstat (limited to 'src/ports/SkScalerContext_win_dw.cpp')
-rw-r--r-- | src/ports/SkScalerContext_win_dw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ports/SkScalerContext_win_dw.cpp b/src/ports/SkScalerContext_win_dw.cpp index 5dc8327554..a4f08e89c0 100644 --- a/src/ports/SkScalerContext_win_dw.cpp +++ b/src/ports/SkScalerContext_win_dw.cpp @@ -330,7 +330,7 @@ SkScalerContext_DW::SkScalerContext_DW(sk_sp<DWriteFontTypeface> typefaceRef, } else { fTextSizeRender = realTextSize; GaspRange range(0, 0xFFFF, GaspRange::Behavior()); - get_gasp_range(typeface, SkScalarTruncToInt(fTextSizeRender), &range); + get_gasp_range(typeface, SkScalarTruncToInt(gdiTextSize), &range); fRenderingMode = gasp_allows_cleartype_symmetric(range.fFlags) ? DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC : DWRITE_RENDERING_MODE_NATURAL; |