summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luaotfload.sty10
1 files changed, 10 insertions, 0 deletions
diff --git a/luaotfload.sty b/luaotfload.sty
index c01e966..b35d4e5 100644
--- a/luaotfload.sty
+++ b/luaotfload.sty
@@ -9,6 +9,16 @@
\RequirePackage{luatextra}
\fi
+\ifnum\pdfoutput<1
+ \expandafter\ifx\csname PackageWarning\endcsname\relax
+ \write16{}
+ \write16{Warning: luaotfload only works in PDF mode, otf fonts won't work.}
+ \write16{}
+ \else
+ \PackageWarning{luaotfload}{luaotfload only works in PDF mode, otf fonts won't work.}
+ \fi
+\fi
+
\expandafter\edef\csname otfl@AtEnd\endcsname{%
\catcode64 \the\catcode64\relax
}