diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2014-01-02 21:28:37 +0100 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2014-01-02 21:28:37 +0100 |
commit | 23b4da05696ec0c3a4c48083209ae37facd09acc (patch) | |
tree | 5fe46b0161e7844047a6861a55be39d06ffe757e /tests/pln-aux-1.tex | |
parent | 9e2424f29eb2e54968026f4c847bf57c64f59ed6 (diff) | |
download | luaotfload-23b4da05696ec0c3a4c48083209ae37facd09acc.tar.gz |
[*] remove tests directory
Testing has been done using the test repo exclusively for quite some
time now: https://bitbucket.org/phg/lua-la-tex-tests. Also, the
``mktests`` script partially automates testing of the font management.
This changeset is just codifying the facts.
If any of the tests deserves preservation please file an issue for
inclusion into the test repo.
Thanks!
Diffstat (limited to 'tests/pln-aux-1.tex')
-rw-r--r-- | tests/pln-aux-1.tex | 55 |
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 |