summaryrefslogtreecommitdiff
path: root/tests/pln-aux-1.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pln-aux-1.tex')
-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
}%
}