Search found 4 matches
- 2014-10-11T14:49:16-07:00
- Forum: Bugs
- Topic: bug in SVG path rendering?
- Replies: 7
- Views: 5304
Re: bug in SVG path rendering?
The bug is present in current git master... that's where I found it by looking at the source code.
- 2014-10-11T10:48:39-07:00
- Forum: Bugs
- Topic: bug in SVG path rendering?
- Replies: 7
- Views: 5304
Re: bug in SVG path rendering?
I think i found the bug. It's in rsvg: the code in rsvg-path.c goes
case 'h':
/* horizontal lineto */
if (ctx->param == 1) {
rsvg_path_builder_line_to (&ctx->builder, ctx->params[0], ctx->cp.point.y);
ctx->cp.point.x = ctx->rp.point.x = ctx->params[0];
ctx->param = 0;
}
break;
case 'v ...
case 'h':
/* horizontal lineto */
if (ctx->param == 1) {
rsvg_path_builder_line_to (&ctx->builder, ctx->params[0], ctx->cp.point.y);
ctx->cp.point.x = ctx->rp.point.x = ctx->params[0];
ctx->param = 0;
}
break;
case 'v ...
- 2014-10-11T09:17:59-07:00
- Forum: Bugs
- Topic: bug in SVG path rendering?
- Replies: 7
- Views: 5304
Re: bug in SVG path rendering?
Hmmm... this means that also MY rendering has a bug because I also reflect the control point from quadratic arcs (Qq/Tt) :(
What is strange is that the source code for handing "H" is the exact copy of the code handling "V" and yet "H" handles it correctly.
Am I missing something or draw.c is not ...
What is strange is that the source code for handing "H" is the exact copy of the code handling "V" and yet "H" handles it correctly.
Am I missing something or draw.c is not ...
- 2014-10-11T08:30:50-07:00
- Forum: Bugs
- Topic: bug in SVG path rendering?
- Replies: 7
- Views: 5304
bug in SVG path rendering?
While working on an svg rendering program and using "convert" as reference I discovered a strange rendering bug.
In the specific the "path" command handles among other things
- c (bezier cubic arcs with 2 control points)
- s (bezier cubic arcs with one control point automatically computed from ...
In the specific the "path" command handles among other things
- c (bezier cubic arcs with 2 control points)
- s (bezier cubic arcs with one control point automatically computed from ...