I would like to know if it is possible to use xml or even an extension to create padding or margin in inkscape around text or object. I know about the Offset effect in Path effects, but I want something that can give me more control than what Offset offers.
In respect to the "more control", I was hoping if instead of giving left, right, top and bottom corners the same offset value, which I could do with Offset effect in path effect, I would like to give each each sides their own seperate values, something like in CSS padding or margin
Hello,
I would like to know if it is possible to use xml or even an extension to create padding or margin in inkscape around text or object. I know about the Offset effect in Path effects, but I want something that can give me more control than what Offset offers.
Thanks for reading
Padding an Margins do not exist in svg as such.
If you mean to automatically create a rectangle frame around an object, then yes it can be done in an extension.
get bounding box, then draw a rectangle x pixels bigger than that bounding box.
However if you want to put a frame around text, then it does require a command call - because the extension system cannot get a bounding box for text.
Please describe what kind of "more control" you are seeking.
In respect to the "more control", I was hoping if instead of giving left, right, top and bottom corners the same offset value, which I could do with Offset effect in path effect, I would like to give each each sides their own seperate values, something like in CSS padding or margin
It depends if this is something which would be useful to other users ?
I can make it, however seems like a bit of a niche use ?
It will be useful for anyone who wants to do UI/UX design in inkscape. This is what webflow users use to design website on webflow
https://inkscape.org/forums/extensions/simple-frame/
Thanks for the help. Unfortunately, the extension isn't showing. I did extracted it in extension folder
It should appear under Extensions>Render>Simple Frame
Thank you very much, I got it! I will have to introduce it to a YouTube who uses inkscape for design