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/fonts/extensions-001.tex)
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.a)
(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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________