Fabric.js + Google字体 [英] Fabric.js + Google Fonts

查看:443
本文介绍了Fabric.js + Google字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以使用 Fabric.js 与web字体,不附加Cufon库及其字体?我可以很容易地用标准的画布功能做,所以我不知道是否可能在面料。

Is that possible to use Fabric.js with web fonts, without attaching Cufon library and its fonts? I can easily do it with standard canvas functionality so I wonder if it's possible in Fabric.

推荐答案

https://github.com/kangax/fabric.js/wiki/Roadmap%2C-TODO\">计划沟渠Cufon 很快,赞成本地文本方法。当原始文本方法不是很好的跨浏览器可用时,我们将Cufon加入了大约2年了(请参阅我的这个测试)从后天)。一旦我们删除它,它可能是一个可选的模块,对于旧的客户端的兼容性很重要的情况下。

We're planning to ditch Cufon soon, in favor of native text methods. We incorporated Cufon ~2 years back when native text methods weren't very cross-browser available (see this test of mine from back in the days). Once we drop it, it will probably be an optional module, for cases when compatibility in older clients is important.

这篇关于Fabric.js + Google字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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