Arcticons-Team / Arcticons-Linux

Arcticons for Linux

Home Page:http://arcticons.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Line Width change doesn't apply to dots

quantenzitrone opened this issue · comments

example:
image

Oh yeah that's because stroke-only icons have some rendering issues with Inkscape for example.

Idk if it's the case for Linux, but it might be worth it to test.

https://gitlab.com/inkscape/inkscape/-/issues/855

nah the dot enlargement is just not implemented in generate-manual.sh

commented

We should maybe check if xmlstarlet is better for manipulating the SVGs, because we seem to get into territory where a real XML parser would be better to use then trying to use regexes.

Idk how difficult it would be to do this, but generally all circles should be 1,5px with the 1px line-width. So if the script searches for a circle property (SVGs have those), and then changes its radius 1,5x the size of the line, it should scale properly.

This is how a circle property looks like in SVG:
<circle class="cls-2" cx="25.4" cy="33.3" r="0.75"/>

The radius r has to be altered according to the given line-width, something like:
line-width * 1,5 / 2 ?

Idk if it could be done easier because I'm very bad at math 🙃

a start

xmlstarlet ed -N x="http://www.w3.org/2000/svg" -u '//x:circle/@r' -v "<new r>" path/to/icon.svg

i don't think (not sure) we can edit inline css with xmlstarlet
aka the style attribute or class definitions