diff options
Diffstat (limited to 'tex/context/base/font-def.lua')
-rw-r--r-- | tex/context/base/font-def.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tex/context/base/font-def.lua b/tex/context/base/font-def.lua index 4fd54b5fc..d0cab7203 100644 --- a/tex/context/base/font-def.lua +++ b/tex/context/base/font-def.lua @@ -425,15 +425,15 @@ function fonts.define.specify.preset_context(name,features) local fds = fonts.define.specify local setups, numbers, synonyms = fds.context_setups, fds.context_numbers, fds.synonyms local number = (setups[name] and setups[name].number) or 0 ---~ local t = aux.settings_to_hash(features) ---~ for k,v in pairs(t) do ---~ k = synonyms[k] or k ---~ t[k] = v:is_boolean() ---~ if type(t[k]) == "nil" then ---~ t[k] = v ---~ end ---~ end -local t = fonts.otf.meanings.resolve(aux.settings_to_hash(features)) -- todo: synonyms + --~ local t = aux.settings_to_hash(features) + --~ for k,v in pairs(t) do + --~ k = synonyms[k] or k + --~ t[k] = v:is_boolean() + --~ if type(t[k]) == "nil" then + --~ t[k] = v + --~ end + --~ end + local t = fonts.otf.meanings.normalize(aux.settings_to_hash(features)) -- todo: synonyms if number == 0 then numbers[#numbers+1] = name t.number = #numbers |