Inkscape.org
Beyond the Basics Apply stroke to shape
  1. #1
    meetdilip meetdilip @meetdilip

    Hi, Happy New Year :)

    How to apply stroke to a shape like this?

     

    The stroke applied is for the entire shape as a whole and not just the letters. I tried converting text to path, Union them and then tried applying stroke. But I still get this

     

    Is it possible to add stroke to 2024 as a whole and not just limit to individual letters? Thanks.

     

  2. #2
    Paddy_CAD Paddy_CAD @Paddy_CAD

    Duplicate your text [ctrl+d] then [Path > Object to Path] then [Path > Dynamic Offset] then use the node tool [n] to adjust the offset distance.

  3. #3
    meetdilip meetdilip @meetdilip

    Works like a charm. Always wondered how to achieve this effect. Thanks :)

  4. #4
    meetdilip meetdilip @meetdilip

    Hi, a small doubt. Any chance we can ignore the break at spacing?

     

  5. #5
    Paddy_CAD Paddy_CAD @Paddy_CAD

    My first thought was to use the clone and bounding box path effects, but that's much too complicated. The simplest solution I can offer is to fill the gap with a background circle (or any other shape).

  6. #6
    meetdilip meetdilip @meetdilip

    Yep, sounds like plan :)

  7. #7
    Paddy_CAD Paddy_CAD @Paddy_CAD

    I left out the last step.

    Dynamic offset is an Inkscape feature that doesn't appear in the svg spec so it's not understood by browsers or other applications. [Path > Object to Path] converts the offset shape to a regular path.

  8. #8
    Polygon Polygon @Polygon🌶

    No need to duplicate text in my opinion - just change the Order to Stroke/Fill/Markers:

  9. #9
    meetdilip meetdilip @meetdilip

    Thanks @Polygon :)