Skip to content

alias KerningCallback


(alias) KerningCallback = fun(head: Node, tail: Node) -> false?

Apply kerning to a node list.

No return values. This callback has to apply kerning between the nodes in the node list it receives. See ligaturing for calling conventions.

Setting this callback to false will prevent the internal kern insertion pass.

You must not ruin the node list. For instance, the head normally is a local par node, and the tail a glue. Messing too much can push LuaTeX into panic mode.

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!