On 1/10/2026 7:35 AM, luigi scarso wrote:
On Mon, 5 Jan 2026 at 14:40, Vítek Starý Novotný <[email protected]
<mailto:[email protected]>> wrote:
Consider the following minimal working example [1]:
\protrudechars2
\lpcode\font`-=500
% OR:
%\input luaotfload.sty
%\directlua{fonts.protrusions.setups["test"] = {[0x002D] = { 1,
1 }}}
%\font\x=LatinModernRoman:protrusion=test; \x
\noindent
-\hfil\break
-foo\hfil\break
-\kern0pt foo
\bye
With LuaTeX 1.04 from TeX Live 2017, three protruded lines are produced,
as expected. Since LuaTeX 1.07 from TeX Live 2018, the second line
(`-foo\hfil\break`) is not protruded for some reason.
[1]: https://github.com/schlcht/microtype/
issues/61#issuecomment-3690602014 <https://github.com/schlcht/
microtype/issues/61#issuecomment-3690602014>
What do you think?
I will check this weekend.
it seems to work ok here with luatex 1.23.3
\protrudechars2
\lpcode\font`-=500
\noindent\vrule width 4cm height 1mm
\noindent
-\hfil\break
-foo\hfil\break
-\kern0pt foo
\noindent\vrule width 4cm height 1mm
\end
I see three - moved into the left margin.
Hans
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------