Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: src/gpu/GrDistanceFieldTextContext.cpp

Issue 200423003: Get correct text metrics for distance fields, and fix dropouts due to thin features. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/core/SkDistanceFieldGen.cpp ('K') | « src/core/SkDistanceFieldGen.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDistanceFieldTextContext.cpp
diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp
index 03d09a03313748ac8bd0b039b536c71be3a69d76..c4e715fd76a01048cc74cb467b300568010b2c87 100755
--- a/src/gpu/GrDistanceFieldTextContext.cpp
+++ b/src/gpu/GrDistanceFieldTextContext.cpp
@@ -308,7 +308,8 @@ inline void GrDistanceFieldTextContext::init(const GrPaint& paint, const SkPaint
fSkPaint.setTextSize(SkIntToScalar(kBaseDFFontSize));
fSkPaint.setLCDRenderText(false);
fSkPaint.setAutohinted(false);
- fSkPaint.setSubpixelText(false);
+ fSkPaint.setSubpixelText(true);
+ fSkPaint.setLinearText(true);
reed1 2014/03/14 18:32:50 This field is of questionable meaning :) Did you n
jvanverth1 2014/03/14 18:46:02 Purely speculative. It's gone.
}
inline void GrDistanceFieldTextContext::finish() {
« src/core/SkDistanceFieldGen.cpp ('K') | « src/core/SkDistanceFieldGen.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698