什么是样式中的跟踪?我们如何使用XSL来实现与样式相关的跟踪?

huangapple go评论67阅读模式
英文:

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-kerningCSS 属性),但如果您选择的字体具有字距调整信息并且您使用的格式化程序支持它,生成的输出将以正确的字符间距显示。
如果您正在使用 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.

huangapple
  • 本文由 发表于 2023年4月19日 16:28:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/76052297.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定