Inkscape.org
Beyond the Basics Padding or Margin with XML or extension
  1. #1
    Tayo Tayo @tayo6

    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 

  2. #2
    inklinea inklinea @inklinea⛰️

    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.

  3. #3
    Tyler Durden Tyler Durden @TylerDurden

    Please describe what kind of "more control" you are seeking.

  4. #4
    Tayo Tayo @tayo6

    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 

  5. #5
    inklinea inklinea @inklinea⛰️

    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 ? 

  6. #6
    Tayo Tayo @tayo6

    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 

  7. #7
    inklinea inklinea @inklinea⛰️

    https://inkscape.org/forums/extensions/simple-frame/

  8. #8
    Tayo Tayo @tayo6

    Thanks for the help. Unfortunately, the extension isn't showing. I did extracted it in extension folder 

  9. #9
    inklinea inklinea @inklinea⛰️
    😀

    It should appear under Extensions>Render>Simple Frame

     

  10. #10
    Tayo Tayo @tayo6
    *

    Thank you very much, I got it! I will have to introduce it to a YouTube who uses inkscape for design 

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Padding or Margin with XML or extension