Comments (6)
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.
from arcticons-linux.
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
from arcticons-linux.
nah the dot enlargement is just not implemented in generate-manual.sh
from arcticons-linux.
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 🙃
from arcticons-linux.
a start
xmlstarlet ed -N x="http://www.w3.org/2000/svg" -u '//x:circle/@r' -v "<new r>" path/to/icon.svg
from arcticons-linux.
i don't think (not sure) we can edit inline css with xmlstarlet
aka the style attribute or class definitions
from arcticons-linux.
Related Issues (10)
- Fallback icon theme HOT 10
- Upload to the KDE Store HOT 3
- "Error: unknown shorthand flag: 'c' in -cM" when executing ./generate-manual.sh HOT 8
- Broken nextcloud symlinks
- Include Arcticons Sans as part of the theme? HOT 1
- Unable to apply to some flatpaks
- Librewolf icon is oddly thin HOT 1
- Authors and contributors file HOT 3
- probably doesnt work HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcticons-linux.