summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-11-09 20:21:00 +0100
committerHans Hagen <pragma@wxs.nl>2013-11-09 20:21:00 +0100
commit148a3541e75ffe0d68c7c18175460328b22fd618 (patch)
treebf5f7e361e9f96500a55f4be04e4052c6dbcf737 /scripts
parent952996cd380902fbb5a4266df7b7257d24d73652 (diff)
downloadcontext-148a3541e75ffe0d68c7c18175460328b22fd618.tar.gz
beta 2013.11.09 20:21
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-fonts.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/context/lua/mtx-fonts.lua b/scripts/context/lua/mtx-fonts.lua
index 7d8b5f610..4340cb357 100644
--- a/scripts/context/lua/mtx-fonts.lua
+++ b/scripts/context/lua/mtx-fonts.lua
@@ -385,6 +385,7 @@ function scripts.fonts.justload()
local result = fontloader.open(fullname)
if type(result) == "table" then
report("loading %s: %s","succeeded",fullname)
+ fontloader.close(result)
end
end
report("loading %s: %s","failed",fullname)
@@ -426,7 +427,7 @@ function scripts.fonts.save()
local fontinfo = fontloader.info(filename)
if fontinfo then
report("font: %s located as %s",name,filename)
- if fontinfo[1] then
+ if #fontinfo > 0 then
for k=1,#fontinfo do
local v = fontinfo[k]
save(v.fontname,fontloader.open(filename,v.fullname))