diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-03 05:44:46 -0700 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-03 05:44:46 -0700 |
commit | 42b334a51fde9a8f93f4da3b10d2917c213d3b70 (patch) | |
tree | 27df2d2f1bee98c36731d219bf7e3535aef218f8 /tests/pln-aux-1.tex | |
parent | eb4fdd2afe34627abece6f75187a2cd691bcf6db (diff) | |
parent | 8c5fb4b380191aefd6ddc0fcb738b24f740f4496 (diff) | |
download | luaotfload-42b334a51fde9a8f93f4da3b10d2917c213d3b70.tar.gz |
Merge pull request #5 from lualatex/master
modifications by Élie
Diffstat (limited to 'tests/pln-aux-1.tex')
-rw-r--r-- | tests/pln-aux-1.tex | 8 |
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 }% } |