summaryrefslogtreecommitdiff
path: root/otfl-font-otf.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-03-02 20:46:35 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-03-02 20:46:35 +0200
commit63b91e48730d3396e8291dd6151f8164b0e96aac (patch)
treeb219d3ac7d81f5f313be6435eeb242eb11d0f28a /otfl-font-otf.lua
parent9883a4f6bb58473e3620ec6614315b546a2c6a9b (diff)
parent8151f93bac4474b23b51e941ab69b9a817daf82c (diff)
downloadluaotfload-63b91e48730d3396e8291dd6151f8164b0e96aac.tar.gz
Merge remote branch 'origin/master' into unstable
Conflicts: luaotfload.dtx
Diffstat (limited to 'otfl-font-otf.lua')
-rw-r--r--otfl-font-otf.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/otfl-font-otf.lua b/otfl-font-otf.lua
index 25bccfa..7656f13 100644
--- a/otfl-font-otf.lua
+++ b/otfl-font-otf.lua
@@ -332,7 +332,9 @@ function otf.load(filename,format,sub,featurefile)
local attr = lfs.attributes(filename)
local size, time = attr and attr.size or 0, attr and attr.modification or 0
if featurefile then
- name = name .. "@" .. file.removesuffix(file.basename(featurefile))
+ local fattr = lfs.attributes(featurefile)
+ local fsize, ftime = fattr and fattr.size or 0, fattr and fattr.modification or 0
+ name = name .. "@" .. file.removesuffix(file.basename(featurefile)) .. ftime .. fsize
end
if sub == "" then sub = false end
local hash = name