From cbd70917db8df40c98fd63f1f4c02adbd76823d5 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 2 Mar 2011 10:38:32 +0200 Subject: Don't load the cached font if the feature file was changed Just a hack but seems to work until I check with Hans. --- otfl-font-otf.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/otfl-font-otf.lua b/otfl-font-otf.lua index d1ad3d0..fe9cd51 100644 --- a/otfl-font-otf.lua +++ b/otfl-font-otf.lua @@ -225,7 +225,9 @@ function otf.load(filename,format,sub,featurefile) local attr = lfs.attributes(filename) local size, time = attr.size or 0, 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 -- cgit v1.2.3