Comment #7 on issue 29144 by [email protected]: Large stroke widths in SVG
rendered incorrectly
http://code.google.com/p/chromium/issues/detail?id=29144
Is the linux build using SkScalar as floats, or fixed?
When I tried to reproduce this (on a Mac) in a test harness, it drew fine...
static void test_huge_stroke(SkCanvas* canvas) {
SkRect srcR = { 0, 0, 72000, 54000 };
SkRect dstR = { 0, 0, 640, 480 };
SkPath path;
path.moveTo(17600, 8000);
path.lineTo(52800, 8000);
path.lineTo(52800, 41600);
path.lineTo(17600, 41600);
path.close();
SkPaint paint;
paint.setAntiAlias(true);
paint.setStrokeWidth(8000);
paint.setStrokeMiter(10);
paint.setStrokeCap(SkPaint::kButt_Cap);
paint.setStrokeJoin(SkPaint::kRound_Join);
paint.setStyle(SkPaint::kStroke_Style);
SkMatrix matrix;
matrix.setRectToRect(srcR, dstR, SkMatrix::kCenter_ScaleToFit);
canvas->concat(matrix);
canvas->drawPath(path, paint);
}
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs