Commits

Philipp Gesang  committed fe9d0f6

add test for combined number features

  • Participants
  • Parent commits 47f2f2e

Comments (0)

Files changed (1)

File pln-features-8-combined-num.tex

+%% Test possible race condition when multiple features of the same
+%% category are requested.
+%% https://github.com/lualatex/luaotfload/issues/204
+
+\ifdefined \directlua
+  \ifdefined \luatexsuppresslongerror
+    \input luaotfload.sty
+  \fi
+  \font \main  = "file:EBGaramond12-Regular.otf:mode=base;             at 10pt
+  \font \onum  = "file:EBGaramond12-Regular.otf:mode=base;+onum;       at 10pt
+  \font \pnum  = "file:EBGaramond12-Regular.otf:mode=base;+pnum;       at 10pt
+  \font \opnum = "file:EBGaramond12-Regular.otf:mode=base;+onum;+pnum; at 10pt
+  \font \lnum  = "file:EBGaramond12-Regular.otf:mode=base;+lnum        at 10pt
+  \font \tnum  = "file:EBGaramond12-Regular.otf:mode=base;+tnum        at 10pt
+  \font \tlnum = "file:EBGaramond12-Regular.otf:mode=base;+lnum;+tnum  at 10pt
+  \font \otnum = "file:EBGaramond12-Regular.otf:mode=base;+onum;+tnum  at 10pt
+  \font \olnum = "file:EBGaramond12-Regular.otf:mode=base;+onum;+lnum  at 10pt
+\else
+\fi
+
+{\main  foo 1234567890, \fontname \font} \par
+{\onum  foo 1234567890, \fontname \font} \par
+{\pnum  bar 1234567890, \fontname \font} \par
+{\opnum baz 1234567890, \fontname \font} \par
+{\lnum  bar 1234567890, \fontname \font} \par
+{\tnum  bar 1234567890, \fontname \font} \par
+{\tlnum bar 1234567890, \fontname \font} \par
+{\otnum bar 1234567890, \fontname \font} \par
+{\olnum bar 1234567890, \fontname \font} \par
+
+\bye
+