Commits

Philipp Gesang  committed 3fd3b87

add test for triggering database reloads

  • Participants
  • Parent commits 9904bb8

Comments (0)

Files changed (4)

File cnt-type1-2-afm.tex

+%\definefontfeature [kernliga] [tlig=yes,kern=yes,mode=base,tkrn=yes]
+\definefontfeature [kernliga] [tlig=yes,kern=yes,mode=base,tkrn=yes]
+
+\definefont[a][file:c059013l.pfb*kernliga]
+
+\def \test #1{{#1[\fontname\font\hskip1em ff fi ffi fl Va Vv Wa VA WA]\par}}
+
+\starttext
+
+  \test\a
+
+\stoptext

File pln-trigger-reload.tex

+%% trigger a database reload by requesting a non-indexed font
+%% note that this assumes --formats=afm or similar!
+
+\directlua {
+  %config = { luaotfload = { loglevel = 6 } }
+}
+
+\input luaotfload.sty
+
+\font \x = "name:Iwona" \x
+
+φοο βαρ βαζ
+
+\bye

File pln-type1-1.tex

 \ifdefined \directlua
   \input luaotfload.sty
-  \font\a="file:ybvbi8a.pfb"
+  \font\a="file:ybvbi8a.pfb:+tkrn"
   \font\b="file:ylyr8a.pfb"
   \font\c="file:cmss17.pfb"
   \font\d="file:anttcli.pfb"

File pln-type1-2-afm.tex

+\unless \ifdefined \directlua \end \endinput \fi
+
+\input luaotfload.sty
+%% century has fi, ffi, and fl ligatures
+%\font\a="name:Century Schoolbook L:+tlig;+liga;+tkrn;+kern;mode=base;+extrakerns"
+%\font\b="name:Century Schoolbook L/i:+tlig;+liga;+tkrn;+kern;mode=base;+extrakerns"
+%\font\c="name:Century Schoolbook L/b:+tlig;+liga;+tkrn;+kern;mode=base;+extrakerns"
+%\font\d="name:Century Schoolbook L/bi:+tlig;+liga;+tkrn;+kern;mode=base;+extrakerns"
+\font\a="file:c059013l.afm:+liga;+tkrn;+kern;mode=base;+extrakerns"
+
+\def \test #1{{#1[\fontname\font\hskip1em ff fi ffi fl Va Vv Wa VA WA]\par}}
+
+\test\a
+%\test\b
+%\test\c
+%\test\d
+
+
+\bye