Command/setupfontexpansion

From Wiki
< Command
Revision as of 08:40, 14 May 2023 by Hraban (talk | contribs) (more details)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\setupfontexpansion

Summary

The command \setupfontexpansion is used to define a set of font expansion (hz) parameters

Settings

\setupfontexpansion[...][...=...,...]
[...]name
vectorname
factornumber
stretchnumber
shrinknumber
stepnumber

OptionExplanation
name of an expansion preset
vector
set of affected characters; always "default"="quality", a combination of "alpha" and "punctuation", see font-imp-quality.lua
factor
(default = 1)
stretch
amount of stretching (default = 2)
shrink
amount of shrinking (default = 2)
step
granularity (default = 0.5)

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

Help from ConTeXt-Mailinglist/Forum

All issues with: