diff options
author | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-20 14:24:38 +0000 |
---|---|---|
committer | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-20 14:24:38 +0000 |
commit | 166e653f67f3fffc3846184a25ce45ab083f07a2 (patch) | |
tree | 1888ff8d2ec6bb24dd5ee216d96c7a8996be8b46 /samplecode | |
parent | 7c3578ac7a3bbec220e9ad7e03dead5f3341ccfb (diff) |
Fix scaling issue when drawing text on a path.
If the paint is stroked and the font size is small
we were incorrectly rendering the sample text.
Review URL: https://codereview.appspot.com/5844060
git-svn-id: http://skia.googlecode.com/svn/trunk@3437 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleTextOnPath.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleTextOnPath.cpp b/samplecode/SampleTextOnPath.cpp index 2899e7c8e9..91100a64ee 100644 --- a/samplecode/SampleTextOnPath.cpp +++ b/samplecode/SampleTextOnPath.cpp @@ -28,8 +28,8 @@ static void textStrokePath(SkCanvas* canvas) { paint.setAntiAlias(true); paint.setStyle(SkPaint::kStroke_Style); paint.setColor(0xFFFF0000); - paint.setTextSize(SkFloatToScalar(0.065f)); - paint.setStrokeWidth(SkFloatToScalar(.01f)); + paint.setTextSize(SkFloatToScalar(0.085f)); + paint.setStrokeWidth(SkFloatToScalar(.005f)); canvas->drawPath(path, paint); |