On 5/19/2017 9:34 AM, Ulrike Fischer wrote:
In extensions-001.tex (http://minimals.metatex.org/current/context/test/doc/context/tests/mkiv/font...) there is an example how to add or change the kern between two chars:
fonts.handlers.otf.addfeature { name = "ktest", type = "kern", data = { a = { b = -500 }, } }
Can this be used to implement also a "Single adjustment positioning" which would effectivly change the width of character?
(http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html#6....)
(I tried a few probable variants but got either errors or no effect at all).
I'll add support for 'single' to user features: \startluacode fonts.handlers.otf.addfeature { name = "stest", type = "single", data = { a = { -30, 0, -50, 0 }, } } \stopluacode \definefontfeature[whatever][default][stest=yes] \starttext \definedfont[Serif*whatever] \vl a\vl \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------