summaryrefslogtreecommitdiff
path: root/src/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-18 07:57:40 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-18 07:57:42 +0200
commitb6d2ddab605f18544a757f54de5b9ced15c6add1 (patch)
treef895f38d6a22525d42c68802e34086c53e716b17 /src/luaotfload-database.lua
parented7ae06e1279c969091646c2de7da9ea87151075 (diff)
downloadluaotfload-b6d2ddab605f18544a757f54de5b9ced15c6add1.tar.gz
[db] fix misleading error message
No such warnings with the new loader. Instead we need to test for the ``fontname`` / ``fullname`` fields. Thanks to @dohyunkim for reporting.
Diffstat (limited to 'src/luaotfload-database.lua')
-rw-r--r--src/luaotfload-database.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index f1be490..4944de1 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -1437,14 +1437,12 @@ local get_raw_info = function (metadata, basename)
local fullname = metadata.fullname
local validation_state = metadata.validation_state
- if (validation_state and tablecontains (validation_state, "bad_ps_fontname"))
- or not fontname
- then
+ 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
--- (font-otf.lua) does.
logreport ("both", 3, "db",
- "%s has invalid postscript font names, using dummies.",
+ "invalid names table of font %s, using dummies.",
basename)
fontname = "bad-fontname-" .. basename
fullname = "bad-fullname-" .. basename