summaryrefslogtreecommitdiff
path: root/tests/pln-aux-1.tex
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-01-06 12:03:13 -0800
committerPhilipp Gesang <phg42.2a@gmail.com>2014-01-06 12:03:13 -0800
commitbb8ee997db8486468c23a985a0b207697b250b62 (patch)
treea4c38d1174021fc9c797f5cd4242ad1d369d370e /tests/pln-aux-1.tex
parent70e80bb79416b0089ea9ee5f01a11be34bef251c (diff)
parent1d16a614853476a8cc00f06a4f018e515b175b8d (diff)
downloadluaotfload-bb8ee997db8486468c23a985a0b207697b250b62.tar.gz
Merge pull request #175 from phi-gamma/texlive2014
import dev branch
Diffstat (limited to 'tests/pln-aux-1.tex')
-rw-r--r--tests/pln-aux-1.tex55
1 files changed, 0 insertions, 55 deletions
diff --git a/tests/pln-aux-1.tex b/tests/pln-aux-1.tex
deleted file mode 100644
index a228be0..0000000
--- a/tests/pln-aux-1.tex
+++ /dev/null
@@ -1,55 +0,0 @@
-\input luaotfload.sty
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% usage for glyph tests
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\baselineskip=17.28pt
-
-\font\iwonaregular=name:iwona at 14.4pt
-\font\lmromanten=file:lmroman10-regular.otf at 14.4pt
-\font\cmuregular=file:cmunrm.otf at 14.4pt
-
-%% wrap tests in macros (could move to style file)
-\def\doifglyphelse#1#2#3{%
- \directlua{
- 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
- }%
-}
-
-\def\doifglyph#1#2{\doifglyphelse{#1}{#2}{}}
-
-%% no otf font loaded yet, so both fail:
-first:
-\doifglyphelse{a}{true}{false}
-\doifglyph {a}{yep}
-
-%% load lm and try repeat:
-\lmromanten
-second:
-\doifglyphelse{a}{true}{false}
-\doifglyph {a}{yep}
-
-%% let’s test some more free fonts
-\def\checkglyphset{%
- \doifglyphelse ö{ö}{nope}
- \doifglyphelse п{п}{nope}
- \doifglyphelse α{α}{nope}
- \doifglyphelse Æ{Æ}{nope}
- \doifglyphelse ą{ą}{nope}
- \doifglyphelse ř{ř}{nope}
- \doifglyphelse ˝{˝}{nope}
- \doifglyphelse ѩ{ѩ}{nope}
- \endgraf
-}
-
-\iwonaregular \checkglyphset
-\lmromanten \checkglyphset
-\cmuregular \checkglyphset
-
-\bye