diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-11-22 22:57:54 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-11-22 22:57:54 +0100 |
commit | 8d75b6caf54310bf17db7e5a9d91939fe97c4036 (patch) | |
tree | 599429d5a8a58b64f708e09f8f1b625ce245e930 /tex/context/base/mkxl/font-vfc.lmt | |
parent | 4a439fa6665c12aac6219acc8c148c5c1d091116 (diff) | |
download | context-8d75b6caf54310bf17db7e5a9d91939fe97c4036.tar.gz |
2021-11-22 22:30:00
Diffstat (limited to 'tex/context/base/mkxl/font-vfc.lmt')
-rw-r--r-- | tex/context/base/mkxl/font-vfc.lmt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tex/context/base/mkxl/font-vfc.lmt b/tex/context/base/mkxl/font-vfc.lmt index c28b8b988..57344d18e 100644 --- a/tex/context/base/mkxl/font-vfc.lmt +++ b/tex/context/base/mkxl/font-vfc.lmt @@ -169,22 +169,27 @@ local scaled = { -- additional ones are never scaled (color etc) } +-- normally we don't have these, and if so, only in old school fonts +-- in which case we don't have extensions so ... + function helpers.scalecommands(list,hdelta,vdelta) local n = #list for i=1,n do - local key = list[i][1] - if scaled[list[i][1]] then + local cmd = list[i] + if scaled[cmd[1]] then local result = { } for i=1,n do local cmd = list[i] - local key = ivc[1] + local key = cmd[1] if key == "right" or key == "left" then result[i] = { key, cmd[2]*hdelta } elseif key == "down" or key == "up" then result[i] = { key, cmd[2]*vdelta } - elseif key == "offset" or key == "rule" then -- or key == "compose" + elseif key == "offset" then + result[i] = { key, cmd[2]*hdelta, cmd[3]*vdelta, cmd[4], cmd[5], cmd[6] } + elseif key == "rule" then result[i] = { key, cmd[2]*hdelta, cmd[3]*vdelta } - elseif key == "line" then -- or key == "compose" + elseif key == "line" then result[i] = { key, cmd[2]*hdelta, cmd[3]*vdelta, cmd[4]*vdelta, cmd[5] } -- elseif key == "frame" then -- result[i] = cmd -- already scaled, for now |