diff options
author | Marius <mariausol@gmail.com> | 2011-08-18 17:40:23 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-08-18 17:40:23 +0300 |
commit | 5463542d926a6ca73d86251154cabc00a9333fa5 (patch) | |
tree | 33c0104835277e96d6b0474466e75963fef16de4 /tex/context/base/font-ext.lua | |
parent | ee4f24d635e0db2029f026a1c098ae76d1e537d3 (diff) | |
download | context-5463542d926a6ca73d86251154cabc00a9333fa5.tar.gz |
beta 2011.08.18 16:00
Diffstat (limited to 'tex/context/base/font-ext.lua')
-rw-r--r-- | tex/context/base/font-ext.lua | 18 |
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 |