From 23168bd4139fad7fa3b8b9d2a47f9d54942dedb3 Mon Sep 17 00:00:00 2001
From: Elie Roux <elie.roux@telecom-bretagne.eu>
Date: Wed, 8 Apr 2009 13:39:51 +0200
Subject: adding a warning in case of non-pdf mode

---
 luaotfload.sty | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'luaotfload.sty')

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
 }
-- 
cgit v1.2.3

