diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-06-20 19:48:48 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-06-20 19:48:48 +0200 |
commit | 739710f590371de17ae0debb4dc38b0de270b9f3 (patch) | |
tree | d276b89b59f554d065fba7b8d78dc57735d1be91 /tex/context/base/mkiv/typo-ovl.lua | |
parent | c3e821627fba8ecf4342582ed62e75c5ad36afc0 (diff) | |
download | context-739710f590371de17ae0debb4dc38b0de270b9f3.tar.gz |
2019-06-20 18:53:00
Diffstat (limited to 'tex/context/base/mkiv/typo-ovl.lua')
-rw-r--r-- | tex/context/base/mkiv/typo-ovl.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/typo-ovl.lua b/tex/context/base/mkiv/typo-ovl.lua index 09cf5e129..6f836551d 100644 --- a/tex/context/base/mkiv/typo-ovl.lua +++ b/tex/context/base/mkiv/typo-ovl.lua @@ -12,7 +12,7 @@ if not modules then modules = { } end modules ['typo-ovl'] = { -- we have hardly any private code. For convenience I hooked it into the existing -- replacement module (as it used the same code anyway). I did some cleanup. -local next = next +local next, type = next, type local context = context @@ -114,7 +114,11 @@ function attributes.applyoverloads(specification,start,stop) else oldlist = getattrlist(current) for k, v in next, overloads do - setattr(current,k,v) + if type(v) == "number" then + setattr(current,k,v) + else + -- can be: ["font"] = number + end end newlist = current -- getattrlist(current) end |