diff options
author | Marius <mariausol@gmail.com> | 2013-11-09 21:40:13 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2013-11-09 21:40:13 +0200 |
commit | b061ca19f9a8721105957f51448400425adaf7e8 (patch) | |
tree | 30f629679b112339410a2b17a4bbc33ddcb7d408 /scripts | |
parent | ef273426ef4cecf5804a6fc9cf0e627f2edec7fd (diff) | |
download | context-b061ca19f9a8721105957f51448400425adaf7e8.tar.gz |
beta 2013.11.09 20:21
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtx-fonts.lua | 3 |
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)) |