问题描述
使用可以轻松地沿着贝塞尔曲线绘制文本吗?
Is it possible to easily draw text along the bezier curve using paper.js?
我知道可以将文本附加到一个行路径,然后旋转它,
,但我特别感兴趣的是沿着曲线绘制文本。
像
I know it is possible to attach text to a line path and then rotate it,but I am interested specifically in drawing text along the curve.Something like http://www.w3.org/TR/SVG11/images/text/toap02.svg
我理解这可以通过用字母打印文本,并将相应的旋转应用于每个项目来实现,但我有兴趣在paper.js中实现这个更简单的方法
I understand this may be achieved by printing text a letter by letter with corresponding rotation applied to every item, but I am interested in easier way to achieve this in paper.js
推荐答案
js。目前,文本支持是相当初步的,但是一旦我们推出了1.0版本的库,这将有希望改变。
We haven't implement text along path in Paper.js yet. At the moment, text support is rather rudimentary, but this will hopefully change soon once we have rolled out version 1.0 of the library.
这篇关于在paper.js中沿着贝塞尔曲线绘制文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!