]> mj.ucw.cz Git - ucwmac.git/commitdiff
LuaTeX: Moved PK resolution hack to ucwmac.tex
authorMartin Mares <mj@ucw.cz>
Tue, 5 Jun 2018 20:14:21 +0000 (22:14 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 5 Jun 2018 20:14:21 +0000 (22:14 +0200)
ucw-luacsplain.ini
ucwmac.tex

index c5ce01360b9368bed2550c682cb2a77f91f5f267..8e7215580b41cda99997c3c71bda1d1faca7a43a 100644 (file)
@@ -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
index a0b0fe128195bdeadd41efe60e092afb6c1d2aa0..6f28ef07e37b9bbb58e4f6021fe9fa8534a2bb70 100644 (file)
        \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