From 778267979a304bd83228fd0077c453a953d35fd0 Mon Sep 17 00:00:00 2001
From: Elie Roux <elie.roux@telecom-bretagne.eu>
Date: Fri, 3 May 2013 14:28:03 +0200
Subject: Updating test

Very interesting feature by the way
---
 tests/pln-aux-1.tex | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'tests/pln-aux-1.tex')

diff --git a/tests/pln-aux-1.tex b/tests/pln-aux-1.tex
index a504850..a228be0 100644
--- a/tests/pln-aux-1.tex
+++ b/tests/pln-aux-1.tex
@@ -12,7 +12,13 @@
 %% wrap tests in macros (could move to style file)
 \def\doifglyphelse#1#2#3{%
   \directlua{
-    luaotfload.aux.do_if_glyph_else([[#1]], [[#2]], [[#3]])
+    local codepoint = tonumber('\string#1')
+    if not codepoint then codepoint = unicode.utf8.byte('\string#1') end
+    if luaotfload.aux.font_has_glyph(font.current(), codepoint) then
+      tex.sprint('\string#2')
+    else
+      tex.sprint('\string#3')
+    end
   }%
 }
 
-- 
cgit v1.2.3

