How to get an outline effect on text in SVG?

前端 未结 5 1992
南方客
南方客 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:23

    Graphical objects in SVG can have a fill (black by default) and a stroke (none by default). If you want to have red outline on your text, then set fill="none" and stroke="red". You might want to also tweak the value of the stroke-width property.

提交回复
热议问题