Il 05/04/22 13:54, Hans Hagen via ntg-context ha scritto:
On 4/5/2022 1:45 PM, mf via ntg-context wrote:
It's defined in typo-fkr.lua, but I can't understand what parameters
to pass and whether it's the right macro. It looks like it's not.
look at the extension examples in the test suite: you can define a kern
pair positioning feature than you enable for just that font
Thanks Hans, here's the working MWE:
-------------------------------------------------------
\mainlanguage[it]
% from http://www.pragma-ade.com/context/latest/cont-tst.zip
% file doc/context/tests/mkiv/fonts/extensions-001.tex
\startluacode
fonts.handlers.otf.addfeature {
name = "ktest",
type = "kern",
data = {
[ '’' ] = { [ '4' ] = -100 },
}
}
\stopluacode
\definefontfeature[ktest][ktest=yes]
\starttext
Default: «Questo è successo nel ’48».
Desired: «Questo è successo nel ’\kern-.1em 48».
Solved: \feature[+][ktest]«Questo è successo nel ’48».
\stoptext
------------------------------------------------------
Massi
___________________________________________________________________________________
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
___________________________________________________________________________________