在CSS中调整Kerning [英] Adjusting Kerning in CSS
问题描述
CSS是否可以调整CSS中的字距调整?我想要能够找到一个文本块,使它实际上看起来像一个文本块(左右边缘对齐)。
Is it possible with CSS to adjust kerning in CSS? I'd like to be able to kern a block of text such that it will actually look like a block of text (both left and right edges are aligned).
编辑:将 http://letteringjs.com/ 与 http ://www.kernjs.com/ 有很好的字距。至于原始问题, http://fittextjs.com/ 很好地解决了这个问题。
Using http://letteringjs.com/ in conjunction with http://www.kernjs.com/ makes for pretty good kerning. As for the original problem, http://fittextjs.com/ solves this nicely.
推荐答案
一些对字距调整的控制可以在CSS中使用字母间距属性。
Some control on kerning can be achieved in CSS using the letter-spacing attribute.
但是,如果你需要的是获得左右边缘对齐,你可能想尝试使用 text-align:justify
。
However, if all you need is to get "both left and right edges aligned", you might want to try using text-align: justify
.
编辑: CSS3定义 font-kerning 属性,可用于启用或禁用特定元素的字距调整。
CSS3 defines a font-kerning property that can be used to enable or disable kerning for specific elements.
这篇关于在CSS中调整Kerning的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!