From 2ca3097c0531c5927dab0303d39e49991c2be047 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 5 Jun 2018 22:14:21 +0200 Subject: [PATCH] LuaTeX: Moved PK resolution hack to ucwmac.tex --- ucw-luacsplain.ini | 2 -- ucwmac.tex | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ucw-luacsplain.ini b/ucw-luacsplain.ini index c5ce013..8e72155 100644 --- a/ucw-luacsplain.ini +++ b/ucw-luacsplain.ini @@ -55,8 +55,6 @@ \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 diff --git a/ucwmac.tex b/ucwmac.tex index a0b0fe1..6f28ef0 100644 --- a/ucwmac.tex +++ b/ucwmac.tex @@ -24,6 +24,11 @@ \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 -- 2.39.2