Command/setupfontexpansion
< Command
Jump to navigation
Jump to search
Contents
\setupfontexpansion
Summary
The command \setupfontexpansion is used to define a set of font expansion (hz) parameters
Settings
\setupfontexpansion[...][...=...,...] | |
[...] | name |
vector | name |
factor | number |
stretch | number |
shrink | number |
step | number |
Option | Explanation | ||
---|---|---|---|
name of an expansion preset | |||
vector |
| ||
factor |
| ||
stretch |
| ||
shrink |
| ||
step |
|
Description
According to the manual, there are two presets, "preset" and "quality".
name vector step factor stretch shrink preset 0.50 1.00 2 2 quality default 0.50 1.00 2 2
“The smaller the step, the more instances of a font we get, the better it looks, and the larger the files become. It’s best not to use too many stretch and shrink steps. A stretch of 2 and shrink of 2 and step of .25 results in up to 8 instances plus the regular sized one.”
Examples
Notes
See also
- hand-ini.mkiv
- fonts-mkiv.pdf
- font-imp-quality.lua
- \definefontfeature
- \showfontexpansion for debugging
- \noexpansion disable expansion locally