diff options
author | Ben Wagner <bungeman@google.com> | 2017-03-30 10:19:24 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-30 16:23:27 +0000 |
commit | b1f76531f673854135b19fa4342c0d085be2bf29 (patch) | |
tree | 4a43f517b4b0ac28e9f03a6997429558f6db695f /src/ports | |
parent | 77f1edce072756a6226874be9a41283d19307fef (diff) |
Use the rounded text size for gasp.
When comparing against gasp ranges always use the rounded (gdi) size.
Previously the truncated size was used, but it appears other
implementations are using the rounded size.
BUG=chromium:706693
Change-Id: I0f545175bf2d5f4e8db610b26c2f3e21a89eeb2a
Reviewed-on: https://skia-review.googlesource.com/10751
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/ports')
-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; |