diff options
-rw-r--r-- | src/luaotfload-fontloader.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/luaotfload-fontloader.lua b/src/luaotfload-fontloader.lua index 2b87b3f..d1b12bb 100644 --- a/src/luaotfload-fontloader.lua +++ b/src/luaotfload-fontloader.lua @@ -11482,9 +11482,10 @@ end) local autofeatures=fonts.analyzers.features local function initialize(sequence,script,language,enabled) local features=sequence.features - if features then - for i=1,#features do - local kind=features[i] + local order=features.order + if order then + for i=1,#order do + local kind=order[i] local valid=enabled[kind] if valid then local scripts=features[kind] |