summaryrefslogtreecommitdiff
path: root/tests/lookups.tex
blob: 8b03d8e6960390786ff03eadac5f58aadce26929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
\input luaotfload.sty
%% lookup font by name (involving database)
\font\first=name:iwonaregular at 42pt
%% lookup font by file name (kpse)
\font\second=file:antpoltltsemiexpd-bolditalic.otf at 42pt
%% lookup font by name, with style in slash notation
\font\third={name:Antykwa torunska/I} at 42pt
%% unspecified lookup; in definers.read:
%%  - first it falls back to “file”
%%  - empty “method” field triggers fallback to “name”
%%  - names.resolve -> kpse.lookup -> hit!
\font\fourth=iwona at 42pt

{\first   foo \endgraf}
{\second  bar \endgraf}
{\third   baz \endgraf}
{\fourth  xyzzy \endgraf}

\bye