summaryrefslogtreecommitdiff
path: root/luaotfload.sty
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2009-04-08 13:39:51 +0200
committerElie Roux <elie.roux@telecom-bretagne.eu>2009-04-08 13:39:51 +0200
commit23168bd4139fad7fa3b8b9d2a47f9d54942dedb3 (patch)
tree652220f9d97ab87a8dcef246307ffa5c087cfc8c /luaotfload.sty
parentc3ccb3ee07e0a67171c24960966ae974e0dd8e98 (diff)
downloadluaotfload-23168bd4139fad7fa3b8b9d2a47f9d54942dedb3.tar.gz
adding a warning in case of non-pdf mode
Diffstat (limited to 'luaotfload.sty')
-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
}