summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-10-30 00:15:55 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2015-10-30 00:15:55 +0100
commit72a9a971cb229656e021ab56894ac73baa62c0c0 (patch)
tree136e77d07b2e84c319fc2ffbd9b0c13023fa4a95
parent6c0c403a3b6fa01604935960a46eb1e10a4586af (diff)
downloadluaotfload-72a9a971cb229656e021ab56894ac73baa62c0c0.tar.gz
[tool] fix --file lookup
-rwxr-xr-xsrc/luaotfload-tool.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/luaotfload-tool.lua b/src/luaotfload-tool.lua
index e92f5fb..5508ffc 100755
--- a/src/luaotfload-tool.lua
+++ b/src/luaotfload-tool.lua
@@ -1226,13 +1226,12 @@ actions.query = function (job)
if tmpspec.lookup == "name"
or tmpspec.lookup == "anon" --- not *exactly* as resolvers.anon
then
- foundname, subfont = fonts.definers.resolvers.name (tmpspec)
+ foundname, _, success = fonts.names.lookup_font_name (tmpspec)
if foundname then
- foundname, _, success = fonts.names.font_file_lookup (foundname)
+ foundname, _, success = fonts.names.lookup_font_file (foundname)
end
elseif tmpspec.lookup == "file" then
- foundname, _, success =
- fonts.names.font_file_lookup (tmpspec.name)
+ foundname, _, success = fonts.names.lookup_font_file (tmpspec.name)
end
if success then