[luatex] How to access user-defined kerning

Herbert Voss Herbert.Voss at fu-berlin.de
Fri Apr 20 07:47:39 CEST 2018


Am 20.04.2018 um 05:52 schrieb Henri Menke:

> I'm trying to determine the kerning between two letters (here A and V).  For the
> sake of this example I'm inserting negative kerning of -400/1000 em.  However,
> when I examine the kern in the kerning callback this massive enhancement of the
> negative kern doesn't show up but I only see the kerning from the font itself.
>
> How can I access the user-defined kerns?  MWE is below.

no problem with

\input luaotfload.sty

\directlua{
   fonts.handlers.otf.addfeature{
     name = "ktest",
     type = "kern",
     data = {
       ["A"] = { ["V"] =  -400 } } % make them overlap for the example
   }
}

AV

\font\test="Latin Modern Roman:+ktest" at 11pt
\test
AV

\bye


This is LuaTeX, Version 1.07.0 (TeX Live 2018)


Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto vom 2018-04-20 07-46-25.png
Type: image/png
Size: 2010 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20180420/6fb16b9f/attachment.png>


More information about the luatex mailing list