diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-01-17 13:51:05 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2018-01-17 13:51:05 +0100 |
commit | 84591a31c39887dbf582df5d535f1de1a115fd62 (patch) | |
tree | 1c4613a1c79db3cdfb41b977c64e993492fbdd88 /doc/context/sources/general/fonts/fonts/fonts-features.tex | |
parent | a16cd078a5cc00d7c789093b5209b6f8d2dfdb1a (diff) | |
download | context-84591a31c39887dbf582df5d535f1de1a115fd62.tar.gz |
2018-01-17 13:16:00
Diffstat (limited to 'doc/context/sources/general/fonts/fonts/fonts-features.tex')
-rw-r--r-- | doc/context/sources/general/fonts/fonts/fonts-features.tex | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/context/sources/general/fonts/fonts/fonts-features.tex b/doc/context/sources/general/fonts/fonts/fonts-features.tex index 64cb164f6..48121b51f 100644 --- a/doc/context/sources/general/fonts/fonts/fonts-features.tex +++ b/doc/context/sources/general/fonts/fonts/fonts-features.tex @@ -2708,6 +2708,32 @@ do do: \startsection[title=Spacekerns] +Some fonts kern glyphs with spaces. Although \TEX\ doesn't really have spaces we do +support this. However, it's implemented as part of kerning so when you define such +kerns you need to hook it into for instance the \type {kern} feature: + +\starttyping +\startluacode + local kern = -50 + local pair = { [32] = kern } + + fonts.handlers.otf.addfeature { + name = "kern", -- spacekerns assume kern + type = "kern", + data = { + A = pair, V = pair, W = pair, + [32] = { + A = kern, + V = kern, + W = kern, + }, + } + } +\stopluacode +\stoptyping + +Of course this depends on font properties so one can wonder how useful this is. + \stopsection \stopchapter |