Cufon Collaborate-常规 JQuery 放置
在我有的 PSD 中... 有文本使用 协作-常规 无 和 协作-常规锐利 如何使用JQuery来替换那些Font?
因为我使用 jquery :
Cufon.replace('.CF_ColReg',{fontFamily: 'Colaborate-Regular' });
默认它使用 Collaborate-Regular Sharp
我只是想知道如何使用 Collaborate-Regular None 或 Collaborate-Regular Crisp 或 < strong>协作-常规强或协作-常规平滑 谢谢 ...
In The PSD which i have ...
There are Text which use
Collaborate-Regular None
and
Collaborate-Regular Sharp
How to use JQuery to replace those Font ??
Because i use jquery :
Cufon.replace('.CF_ColReg',{fontFamily: 'Colaborate-Regular' });
And default it use Collaborate-Regular Sharp
I just want to know how so it can use Collaborate-Regular None or Collaborate-Regular Crisp or Collaborate-Regular Strong or Collaborate-Regular Smooth
Thank you ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,jQuery,引用tag wiki,是一个用于“DOM 遍历、事件处理、动画和 ajax 交互”的 JavaScript 库 - 它不用于将自定义字体嵌入到您的网站中。
借助 Cufon,您可以将字体嵌入到您的网站中 - 只需按照网站上的说明操作即可小心一点,你应该没问题。或者,您可以使用@font-face技术来更简单地执行相同的操作。 FontSquirrel 上提供协作,以及他们预先打包的
@font-face
套件非常易于使用。解决您问题的最后一部分,这些不是您正在查看的不同字体,甚至是不同的粗细。这些是 Photoshop 提供的不同抗锯齿模式。一般来说,抗锯齿选项是在操作系统级别控制的,因此您无法影响浏览器在抗锯齿方面显示这些字体的方式。
First of all, jQuery, quoting the tag wiki, is a JavaScript library used for "DOM traversal, event handling, animation, and ajax interactions" - it is not used for embedding custom font into your websites.
With Cufon, you can embed the font into your website - just follow the instruction on the website carefully, and you should be fine. Alternatively, you can use
@font-face
technology to do the same in more simply. Collaboration is available on FontSquirrel, and their prepackaged@font-face
kits are extremely easy to use.Addressing the last part of your question, those are not different fonts you're looking at, or different weights, even. Those are different anti-aliasing modes offered by Photoshop. In general, anti-aliasing options are controlled at the Operating System level, so there is no way you can affect how the browsers display those fonts in terms of how they're anti-aliased.