How to properly display multiline text in SVG 1.1?

前端 未结 4 1720
春和景丽
春和景丽 2021-01-13 06:52

I would like to take a multiline block of text and display it in SVG. I would like to keep the lines as lines. Is there a proper way to do this?

I am using Inkscape

4条回答
  •  离开以前
    2021-01-13 07:27

    This is not acceptable since flow* elements are non-standard elements. It comes from an SVG1.2 draft that has never been accepted and it is designed to wrap text in custom shapes. Only Inkscape and some builds of Opera support it. So, don't use it, at least for the moment.

    If you don't need text wrapping (and you don't seem to, but I don't understand what you mean by "I would like to keep the lines as lines"), I suggest you use the basic element.

提交回复
热议问题