From 166e653f67f3fffc3846184a25ce45ab083f07a2 Mon Sep 17 00:00:00 2001 From: "djsollen@google.com" Date: Tue, 20 Mar 2012 14:24:38 +0000 Subject: 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 --- samplecode/SampleTextOnPath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'samplecode/SampleTextOnPath.cpp') 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); -- cgit v1.2.3