Raphael JS and Text positioning?

前端 未结 4 1469
花落未央
花落未央 2020-12-23 14:02

I\'m trying to position text within the SVG canvas, by supplying x, y coordinates

var t = paper.text(50, 50, \"Raphaël\\nkicks\\nbutt!\");
<         


        
4条回答
  •  没有蜡笔的小新
    2020-12-23 14:12

    Resolved!

    By using the following

    paper.print(100, 100, "Test string", paper.getFont("Times", 800), 30);
    

    it now aligns text on the left.

提交回复
热议问题