diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-10-21 20:18:54 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-10-21 20:18:54 +0200 |
commit | 29a395d2b545159c97df693e59187ce61218233c (patch) | |
tree | 356412f958073091fa1ddbde1acbd3864becf20e /tex/context/base/mkxl/good-mth.lmt | |
parent | 9d2ad7dea5c20379f6679c57c3b16752b1af445a (diff) | |
download | context-29a395d2b545159c97df693e59187ce61218233c.tar.gz |
2021-10-21 19:55:00
Diffstat (limited to 'tex/context/base/mkxl/good-mth.lmt')
-rw-r--r-- | tex/context/base/mkxl/good-mth.lmt | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/tex/context/base/mkxl/good-mth.lmt b/tex/context/base/mkxl/good-mth.lmt index c78fdbf71..033b2cb88 100644 --- a/tex/context/base/mkxl/good-mth.lmt +++ b/tex/context/base/mkxl/good-mth.lmt @@ -57,13 +57,21 @@ local function withscriptcode(tfmdata,unicode,data,action) if slots then if p == "*" then action(u,data) - for i=1,#slots do - action(slots[i],data) + if type(slots) == "number" then + action(slots,data) + else + for i=1,#slots do + action(slots[i],data) + end end else p = tonumber(p) if p then - action(slots[p],data) + if type(slots) == "number" then + action(slots,data) + else + action(slots[p],data) + end end end end @@ -139,12 +147,11 @@ local function finalize(tfmdata,feature,value,...) yoffset = nil end if xoffset or yoffset then - local commands = characters.commands + local commands = character.commands if commands then prependcommands(commands,yoffset,xoffset) else --- character.commands = { { "offset", xoffset, yoffset, unicode } } --- print(unicode,character.width) +-- character.commands = { { "offset", xoffset or 0, yoffset or 0, unicode } } local slot = charcommand[unicode] if xoffset and yoffset then character.commands = { xoffset, yoffset, slot } |