summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-06-12 18:33:15 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-06-12 18:33:15 +0200
commit04f559ba1bc2caa232eded21d500d070142bfa1f (patch)
tree5504967464c0eaecb508e131bdb93015f97a389e /src
parentf167b470d1831575735694406eca44963f76cb3f (diff)
downloadluaotfload-04f559ba1bc2caa232eded21d500d070142bfa1f.tar.gz
[db] fix crash with missing name data
Diffstat (limited to 'src')
-rw-r--r--src/luaotfload-database.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 5645b63..b017340 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -1396,7 +1396,6 @@ local get_raw_info = function (metadata, basename)
local fontname = metadata.fontname
local fullname = metadata.fullname
- local validation_state = metadata.validation_state
if not fontname or not fullname then
--- Broken names table, e.g. avkv.ttf with UTF-16 strings;
--- we put some dummies in place like the fontloader
@@ -1404,7 +1403,8 @@ local get_raw_info = function (metadata, basename)
logreport ("both", 3, "db",
"Invalid names table of font %s, using dummies. \z
Reported: fontname=%q, fullname=%q.",
- basename, fontname, fullname)
+ tostring (basename), tostring (fontname),
+ tostring (fullname))
fontname = "bad-fontname-" .. basename
fullname = "bad-fullname-" .. basename
end