在paper.js中沿着贝塞尔曲线绘制文本 [英] Draw text along the bezier curve in paper.js

查看:447
本文介绍了在paper.js中沿着贝塞尔曲线绘制文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 paper.js 可以轻松地沿着贝塞尔曲线绘制文本吗?

Is it possible to easily draw text along the bezier curve using paper.js?

我知道可以将文本附加到一个行路径,然后旋转它,
,但我特别感兴趣的是沿着曲线绘制文本。
http://www.w3.org/TR /SVG11/images/text/toap02.svg

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中沿着贝塞尔曲线绘制文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆