Lev Solntsev
Lev Solntsev
I'm afraid not so soon. It's trivial enough, but I have no time for this.
It should work: https://github.com/svg/svgo/blob/898f0a2ca502415dc3088f185029e757ba085c65/plugins/convertColors.js#L92-L95 UPD. >Honestly I wonder if the config file is used at all. That may be a reason. How do you pass a config?
I don't think it has something with optimizing SVGs (wrt to file size) at all.
AFAIK, fonts in SVG is outdated and deprecated technology in prefer to CSS fonts, which have better feature set and support.
Ok, I understand the case, but still it's very specific and hacky one. I don't think it worth bloating the plugin list with this one. Perhaps, the plugin interface would...
There are several caveats in your code.
Well, SVGO doesn't handle CSS almost at all.
Path merging and computation is a complex topic. Can you suggest an effective algorithm (i.e. better then O(n²))?
No update and unlikely there will be in the near future. I have no idea how to do this effectively. It's better to do such thinks in an image editor.
Seems like it's just converting to shapes and applying transformations. Nothing to do with clip-paths.