diff options
author | Ben Wagner <bungeman@google.com> | 2014-08-27 19:17:41 -0400 |
---|---|---|
committer | Ben Wagner <bungeman@google.com> | 2014-08-27 19:17:41 -0400 |
commit | b2f7fce9e034c3b6749e75a129e7836df3529706 (patch) | |
tree | 7f5112b38c1cc417234c5f52fcac2f6847351227 /src/core | |
parent | 56fa44250365cd1cef9f57d642b3d6e90749f025 (diff) |
DirectWrite to use aliased if ClearType is empty.
Some CJK fonts with some versions of DirectWrite return valid
data for bitmaps, but not for cleartype data.
For reference, two screenshots. M37 Stable and then with this patch:
http://imgur.com/9pf3rB9,EiTb6Li
See https://code.google.com/p/chromium/issues/detail?id=396624#c10 for
content of test html file.
R=eae@chromium.org, reed@google.com, shrikant@chromium.org, bungeman@chromium.org, cpu@chromium.org
BUG=chromium:407945
Review URL: https://codereview.chromium.org/504343007
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkGlyph.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkGlyph.h b/src/core/SkGlyph.h index 5e0ac7ec0b..4290bb889d 100644 --- a/src/core/SkGlyph.h +++ b/src/core/SkGlyph.h @@ -32,6 +32,7 @@ struct SkGlyph { void* fDistanceField; uint8_t fMaskFormat; int8_t fRsbDelta, fLsbDelta; // used by auto-kerning + int8_t fForceBW; void init(uint32_t id) { fID = id; @@ -39,6 +40,7 @@ struct SkGlyph { fPath = NULL; fDistanceField = NULL; fMaskFormat = MASK_FORMAT_UNKNOWN; + fForceBW = 0; } /** |