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>
This commit is contained in:
Hal Canary 2016-10-31 12:40:49 -04:00 committed by Skia Commit-Bot
parent e71b1a1496
commit 7bb9301b16

View File

@ -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(" ");