diff options
author | Hal Canary <halcanary@google.com> | 2016-10-31 12:40:49 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-01 15:38:44 +0000 |
commit | 7bb9301b161fce4cccee0cb43661b9f65d71dabb (patch) | |
tree | fe59704bc46459aadc6006a90d1ac4b0b464eaa6 | |
parent | e71b1a1496738ebce4a8cac4ffa5ee1413996542 (diff) |
SkPDF: Always individually position glyphs in Windows.
Confirmed to fix BUG=chromium:659604
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4202
Change-Id: Ied25284e285ee51ee1a4712b7e17d752f50d88d2
Reviewed-on: https://skia-review.googlesource.com/4202
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index 8b80de2940..d2089ce1a8 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -968,9 +968,14 @@ public: fCurrentMatrixOrigin.set(0.0f, 0.0f); fInitialized = true; } +#ifdef SK_BUILD_FOR_WIN + const bool kAlwaysPosition = true; +#else + const bool kAlwaysPosition = false; +#endif if (!fDefaultPositioning) { SkPoint position = xy - fCurrentMatrixOrigin; - if (position != SkPoint{fXAdvance, 0}) { + if (kAlwaysPosition || position != SkPoint{fXAdvance, 0}) { this->flush(); SkPDFUtils::AppendScalar(position.x(), fContent); fContent->writeText(" "); |