英文:
What do we mean by Tracking In styling ? How we can implement Tracking w.r.t styling using xsl?
问题
In a few of the competitive xslt technical sessions I saw, they used to mention a styling chart where they mentioned that while writing xslt, make sure to use the specification like:
Tracking: -3
Kerning: Optical
Now, I see we have font-kerning
, but that is limited to:
font-kerning: auto|normal|none
I don't see an option like "optical," and I'm also not finding any useful information about tracking. If anyone can help me with how I can implement these Tracking and Kerning options in my .xslt, that would be helpful.
英文:
In few of the competitive xslt technical sessions I saw they use to mention a styling chart where they are mentioning while writing xslt make sure we are using the specification like
Tracking: -3
Kerning: Optical
Now I saw we have font-kerning: but that is limited to
font-kerning:auto|normal|none
I don't see a option like optical and also not getting any fruitful information about tracking; so if any one can help me with the input how I can implement this Tracking and Kerning options in my .xslt that will be helpful.
答案1
得分: 2
跟踪(Tracking) 只是字母间距的另一个术语:
在排版学中,字母间距、字符间距或跟踪是一种视觉上一致的调整,用于改变文字行或文本块之间的字母间距,以改变视觉密度。
来源:维基百科
在 XSL-FO 中,相应的属性是 letter-spacing
。
没有控制**字距调整(kerning)**的 FO 属性(font-kerning
是 CSS 属性),但如果您选择的字体具有字距调整信息并且您使用的格式化程序支持它,生成的输出将以正确的字符间距显示。
如果您正在使用 FOP,可以在注册字体时启用/禁用字距调整;默认情况下,它是启用的。
英文:
Tracking is just a different term for letter spacing:
> In typography, letter spacing, character spacing or tracking is an optically consistent adjustment to the space between letters to change the visual density of a line or block of text.
> <sub>source: Wikipedia</sub>
In XSL-FO the corresponding property is letter-spacing
.
There is no FO property controlling kerning (font-kerning
is a CSS property), but if the font you choose has kerning information and the formatter you use supports it the resulting output will show the characters properly spaced.
If you are using FOP, kerning can be enabled / disabled when you register the fonts; by default, it is enabled.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论