summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2013-05-03 14:28:03 +0200
committerElie Roux <elie.roux@telecom-bretagne.eu>2013-05-03 14:28:03 +0200
commit778267979a304bd83228fd0077c453a953d35fd0 (patch)
tree27df2d2f1bee98c36731d219bf7e3535aef218f8
parent95e6817d9a37722f0a0fd089ee31a6d75535fb08 (diff)
downloadluaotfload-778267979a304bd83228fd0077c453a953d35fd0.tar.gz
Updating test
Very interesting feature by the way
-rw-r--r--tests/pln-aux-1.tex8
1 files changed, 7 insertions, 1 deletions
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
}%
}