Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
[fontloader] sync with Context as of 2014-03-25
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Gesang committed Mar 25, 2014
1 parent 2d555b4 commit e2966b1
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/luaotfload-fontloader.lua
@@ -1,6 +1,6 @@
-- merged file : luatex-fonts-merged.lua
-- parent file : luatex-fonts.lua
-- merge date : 03/22/14 15:31:38
-- merge date : 03/25/14 02:17:04

do -- begin closure to overcome local limits and interference

Expand Down Expand Up @@ -11499,17 +11499,20 @@ local autofeatures=fonts.analyzers.features
local function initialize(sequence,script,language,enabled)
local features=sequence.features
if features then
local order=features.order
for i=1,#order do
local kind=order[i]
local valid=enabled[kind]
if valid then
local scripts=features[kind]
local languages=scripts[script] or scripts[wildcard]
if languages and (languages[language] or languages[wildcard]) then
return { valid,autofeatures[kind] or false,sequence.chain or 0,kind,sequence }
local order=sequence.order
if order then
for i=1,#order do
local kind=order[i]
local valid=enabled[kind]
if valid then
local scripts=features[kind]
local languages=scripts[script] or scripts[wildcard]
if languages and (languages[language] or languages[wildcard]) then
return { valid,autofeatures[kind] or false,sequence.chain or 0,kind,sequence }
end
end
end
else
end
end
return false
Expand Down

0 comments on commit e2966b1

Please sign in to comment.