summaryrefslogtreecommitdiff
path: root/tex/context/base/font-ext.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/font-ext.lua')
-rw-r--r--tex/context/base/font-ext.lua18
1 files changed, 11 insertions, 7 deletions
diff --git a/tex/context/base/font-ext.lua b/tex/context/base/font-ext.lua
index bbe10e95d..598cfb2cb 100644
--- a/tex/context/base/font-ext.lua
+++ b/tex/context/base/font-ext.lua
@@ -495,14 +495,18 @@ local function initializeitlc(tfmdata,value) -- hm, always value
local parameters = tfmdata.parameters
local italicangle = parameters.italicangle
if italicangle and italicangle ~= 0 then
- local uwidth = (parameters.uwidth or 40)/2
- for unicode, d in next, tfmdata.descriptions do -- descriptions !
- local it = d.boundingbox[3] - d.width + uwidth
- if it ~= 0 then
- d.italic = it
- end
- end
+ local factor = tonumber(value) or 1
tfmdata.properties.italic_correction = true
+ tfmdata.properties.auto_italic_correction = factor * (parameters.uwidth or 40)/2
+ -- local descriptions = tfmdata.descriptions
+ -- local uwidth = (parameters.uwidth or 40)/2
+ -- for unicode, d in next, tfmdata.characters do -- we cannot loop over descriptions
+ -- local d = descriptions[unicode]
+ -- local it = d.boundingbox[3] - d.width + uwidth
+ -- if it ~= 0 then
+ -- d.italic = it
+ -- end
+ -- end
end
end
end