I ran into a small issue, where SVGs that use the currentColor for the fill and stroke weren't being shown.
I was able to "fix" the issue by making this change in canvas.h:
SvgDrawable::ColorContext context {};
if (state_.brush) {
Brush current = state_.set_brush;
context.current_color = ¤t;
+ svg.drawable()->drawAll(*this, &context, x, y, width, height);
+ } else {
+ svg.drawable()->drawAll(*this, &context, x, y, width, height);
}
- svg.drawable()->drawAll(*this, &context, x, y, width, height);
}
Does this seem reasonable? I'm not very knowledgable about the specifics of SVG drawing.
I ran into a small issue, where SVGs that use the
currentColorfor the fill and stroke weren't being shown.I was able to "fix" the issue by making this change in
canvas.h:SvgDrawable::ColorContext context {}; if (state_.brush) { Brush current = state_.set_brush; context.current_color = ¤t; + svg.drawable()->drawAll(*this, &context, x, y, width, height); + } else { + svg.drawable()->drawAll(*this, &context, x, y, width, height); } - svg.drawable()->drawAll(*this, &context, x, y, width, height); }Does this seem reasonable? I'm not very knowledgable about the specifics of SVG drawing.