···<date: 2013-08-04, Sunday>···<from: Herbert Voss>···
> If a font isn't found it shouldn't end with an lua error: > > voss@shania:~> luaotfload-tool --find "MyriadPro-Regular" > luaotfload | resolve : Font "MyriadPro-Regular" found! > luaotfload | resolve : Resolved file name "MyriadPro-Regular.otf" > > > voss@shania:~> luaotfload-tool --find "MyriadPro" > ...texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua:890: > attempt to perform arithmetic on field '?' (a nil value) Do you have Myriad with and without optical sizes? Hard to reproduce but I’ll attach a patch, let me know if it works. Best, Philipp
diff --git a/luaotfload-database.lua.orig b/luaotfload-database.lua
index 1b75458..1199218 100644
--- a/luaotfload-database.lua.orig
+++ b/luaotfload-database.lua
@@ -887,7 +887,7 @@ resolve = function (_, _, specification) -- the 1st two parameters are used by C
local closest
local least = math.huge -- initial value is infinity
for i,face in next, found do
- local dsnsize = face.size[1]/10
+ local dsnsize = (face.size[1] or 0) / 10
local difference = mathabs(dsnsize - askedsize)
if difference < least then
closest = face
pgpNV4_acd4Vl.pgp
Description: PGP signature
