\everyjob={%
\message{Loaded ucw-luacsplain 2018-06}%
- % Set resolution of bitmap fonts
- \directlua{kpse.init_prog("luatex", 600, "ljfour")}%
% These packages do not survive dumping, defer loading to \everyjob
\input ltluatex.tex
\input ucwmac.tex
\pdfpkresolution=600 % Provide a reasonable default
\fi\fi
+\ifx\directlua\undefined\else
+ % In LuaTeX \pdfpkresolution is not enough
+ \directlua{kpse.init_prog("luatex", 600, "ljfour")}
+\fi
+
%%% Auxiliary macros %%%
% Prepend/append #2 to the definition of #1