diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-03-30 12:07:47 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-03-30 12:07:47 +0200 |
commit | ed2c824995ef51ddb1dfc1fa2a526933cd377cda (patch) | |
tree | d70dbfc0cfe6b33c0b87c662d259e5fc53cb9afd /tex/context/base/mkiv/font-mps.lua | |
parent | f025339d0770904176dd9b32a405b23f809772ae (diff) | |
download | context-ed2c824995ef51ddb1dfc1fa2a526933cd377cda.tar.gz |
2016-03-30 12:01:00
Diffstat (limited to 'tex/context/base/mkiv/font-mps.lua')
-rw-r--r-- | tex/context/base/mkiv/font-mps.lua | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tex/context/base/mkiv/font-mps.lua b/tex/context/base/mkiv/font-mps.lua index 7529f2c5f..7b7c859df 100644 --- a/tex/context/base/mkiv/font-mps.lua +++ b/tex/context/base/mkiv/font-mps.lua @@ -339,17 +339,16 @@ function fonts.metapost.boxtomp(n,kind) end advance = advance + kern elseif id == glue_code then - local spec = current.spec - local width = spec.width + local width = current.width if glue_sign == 1 then - if spec.stretch_order == glue_order then - width = (width + spec.stretch * glue_set) * fc + if current.stretch_order == glue_order then + width = (width + current.stretch * glue_set) * fc else width = width * fc end elseif glue_sign == 2 then - if spec.shrink_order == glue_order then - width = (width - spec.shrink * glue_set) * fc + if current.shrink_order == glue_order then + width = (width - current.shrink * glue_set) * fc else width = width * fc end @@ -404,7 +403,7 @@ function fonts.metapost.boxtomp(n,kind) distance = distance - current.kern advance = 0 elseif id == glue_code then - distance = distance - current.spec.width + distance = distance - current.width advance = 0 elseif id == rule_code then local wd = current.width |