[NTG-context] modify kern between two glyphs
mf
massifr at fastwebnet.it
Tue Apr 5 14:34:24 CEST 2022
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
More information about the ntg-context
mailing list