How to get an outline effect on text in SVG?

前端 未结 5 2023
南方客
南方客 2020-12-24 10:53

I just want a simple SVG image that has some arbitrary text on an angle, which I can do. Thing is, I also want the text to have a sort of \"outline\" effect. Like rather t

5条回答
  •  不知归路
    2020-12-24 11:21

    Yes it can ;-)

    I tried to realize that with Inkscape and then edited the source of the svg-File. Just don't fill it and use a stroke with color and width to draw it. I got that:

    
    D

    The interesting part is in the "style" attribute.

    "fill:none;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
    

提交回复
热议问题