(Had my svg-chart export drop from >250MB size to a few mega-bytes)
There were a few necessary addition I made to it, comming from version 1.9 I see you allready have implemented the rgba fix.

But here are two additional suggestions:
Adding support for stroke-linecap:
In SVGGraphics2D.java after
Code: Select all
private String strokeStyle() {
Code: Select all
String strokeCap = "butt";
Code: Select all
dashArray = bs.getDashArray();
Code: Select all
switch (bs.getEndCap()) {
case BasicStroke.CAP_ROUND:
strokeCap = "round";
break;
case BasicStroke.CAP_SQUARE:
strokeCap = "square";
break;
default:
case BasicStroke.CAP_BUTT:
}
Code: Select all
b.append("stroke-opacity: ").append(getColorAlpha() * getAlpha())
.append(";");
Code: Select all
b.append("stroke-linecap: ").append(strokeCap).append(";");
Add support to export a compressed SVG (SVGZ), with something like:
Code: Select all
public static void saveCompressed(String path, String text) {
BufferedWriter writer = null;
try {
final File file = new File(path);
final GZIPOutputStream zip = new GZIPOutputStream(new FileOutputStream(file));
writer = new BufferedWriter(new OutputStreamWriter(zip, "UTF-8"));
writer.append(text);
writer.flush();
writer.close();
} catch (final FileNotFoundException e) {} catch (final IOException e) {} finally {
if (writer != null)
try {
writer.close();
} catch (final IOException e) {}
}
}

EDIT: Faulty explanation fixed ^^