diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-10 16:12:14 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-10 16:12:14 +0000 |
commit | 36d6edac9f3e63d9a5f499d0076550d08b80eaca (patch) | |
tree | ac2e35b2b8c48e5a4baf6b6a2b8f1760dd3658af /src | |
parent | a6926b1f0352916c31cda66f2239a25d52f09315 (diff) |
Draw hairline text as path.
R=reed@google.com
Review URL: https://codereview.appspot.com/6632060
git-svn-id: http://skia.googlecode.com/svn/trunk@5884 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkDraw.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp index 31f36d4b6f..17d29b6f1f 100644 --- a/src/core/SkDraw.cpp +++ b/src/core/SkDraw.cpp @@ -1538,8 +1538,11 @@ void SkDraw::drawText(const char text[], size_t byteLength, return; } + // SkScalarRec doesn't currently have a way of representing hairline stroke and + // will fill if its frame-width is 0. if (/*paint.isLinearText() ||*/ - (fMatrix->hasPerspective())) { + (fMatrix->hasPerspective()) || + (0 == paint.getStrokeWidth() && SkPaint::kStroke_Style == paint.getStyle())) { this->drawText_asPaths(text, byteLength, x, y, paint); return; } |