webkit 中的 @font-face 和 letter-spacing [英] @font-face and letter-spacing in webkit

查看:19
本文介绍了webkit 中的 @font-face 和 letter-spacing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现在嵌入字体时,字母间距在 webkit(也许还有其他浏览器?)中并不总是有效.我在两种不同的字体上尝试过,得到了不同的结果.

I just discovered that letter-spacing doesn't always work in webkit (and perhaps other browsers?) when embedding fonts. I've tried it on two different fonts and received different results.

League Gothic Regular"会起作用

"League Gothic Regular" will work

http://www.theleagueofmoveabletype.com/fonts/7-league-gothic

流沙之光"不会

http://www.fontsquirrel.com/fonts/Quicksand

什么是瘦?有没有办法强制不合规字体的手?

What's the skinny? Is there a way to force the hand of non-compliant fonts?

快速说明:Firefox 似乎确实适用于这两种字体.

Quick note: Firefox does seem to apply to both fonts.

推荐答案

我不确定我有答案,但我在使用 Font Squirrel 的 League Gothic 时遇到了字间距问题,直到我才弄清楚我使用不同的设置在网站上重新生成了字体内容.我使用的是 Paul Irish 的 Bulletproof 方法...

I'm not sure I have the answer but I was having a word-spacing problem with League Gothic from Font Squirrel, I couldn't figure it out until I re-generated the font-face stuff on the site using different settings. I use the Paul Irish's Bulletproof method...

字体松鼠设置 http://img59.imageshack.us/img59/8784/截图20100428at132.png

这篇关于webkit 中的 @font-face 和 letter-spacing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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