You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.
Using the letterspace font feature, letterspacing within ligatures will be doubled (this does not happen with the typesetters function):
\input luaotfload.sty
\tracingoutput 1
\showboxdepth 10
\showboxbreadth100
\font\x = "EB Garamond:mode=node;+liga;+dlig" at 10pt
{\x\directlua{typesetters.kerns.set(0.2)}
Thefoofi}
\font\x = "EB Garamond:mode=node;-liga;letterspace=0.2" at 10pt
\x Thefoofi
\font\x = "EB Garamond:mode=node;+liga;letterspace=0.2" at 10pt
\x Thefoofi
\font\x = "EB Garamond:mode=node;+liga;+dlig;letterspace=0.2" at 10pt
\x Thefoofi
\bye
(BTW: Is there a possibility to selectively disable the breaking of ligatures? I reckon it could somehow be done with the keeptogether and/or keepligatures functions, but I don't really understand their intended use.)
The text was updated successfully, but these errors were encountered:
Thanks for reporting, I’ll look into it. Regarding your other question:
(BTW: Is there a possibility to selectively disable the breaking of ligatures? I reckon it could somehow be done with the keeptogether and/or keepligatures functions, but I don't really understand their intended use.)
keeptogether() and keepligatures() are predicates: they receive a pair of glyph nodes or a ligature node respectively and depending on whether they return true or false the node processor will insert a kern or leave them untouched. I’ve put together a demo:
Using the
letterspace
font feature, letterspacing within ligatures will be doubled (this does not happen with thetypesetters
function):(BTW: Is there a possibility to selectively disable the breaking of ligatures? I reckon it could somehow be done with the
keeptogether
and/orkeepligatures
functions, but I don't really understand their intended use.)The text was updated successfully, but these errors were encountered: