summaryrefslogtreecommitdiff
path: root/tex/context/base/math-vfu.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-10-23 01:20:13 +0300
committerMarius <mariausol@gmail.com>2012-10-23 01:20:13 +0300
commita6994b024b0e60c9d69ddbedc399f0d7a823c70d (patch)
tree4a89ec6f8dca994ec6bc518ab69dc35c9d59a6e4 /tex/context/base/math-vfu.lua
parent0cc0c31e0b76c86fecd7314cbcdc853df964046a (diff)
downloadcontext-a6994b024b0e60c9d69ddbedc399f0d7a823c70d.tar.gz
beta 2012.10.22 23:51
Diffstat (limited to 'tex/context/base/math-vfu.lua')
-rw-r--r--tex/context/base/math-vfu.lua17
1 files changed, 11 insertions, 6 deletions
diff --git a/tex/context/base/math-vfu.lua b/tex/context/base/math-vfu.lua
index b46e06a01..9b86ddbca 100644
--- a/tex/context/base/math-vfu.lua
+++ b/tex/context/base/math-vfu.lua
@@ -17,6 +17,7 @@ if not modules then modules = { } end modules ['math-vfu'] = {
local type, next = type, next
local max = math.max
local format = string.format
+local utfchar = utf.char
local fonts, nodes, mathematics = fonts, nodes, mathematics
@@ -620,9 +621,9 @@ function vfmath.define(specification,set,goodies)
local ru = rv[unicode]
if not ru then
if trace_virtual then
- report_virtual( "unicode point U+%05X has no index %04X in vector %s for font %s",unicode,index,vectorname,fontname)
+ report_virtual("unicode point U+%05X has no index %04X in vector %s for font %s",unicode,index,vectorname,fontname)
elseif not already_reported then
- report_virtual( "the mapping is incomplete for '%s' at %s",name,number.topoints(size))
+ report_virtual("the mapping is incomplete for '%s' at %s",name,number.topoints(size))
already_reported = true
end
rv[unicode] = true
@@ -636,9 +637,12 @@ function vfmath.define(specification,set,goodies)
local kerns = fci.kerns
local width = fci.width
local italic = fci.italic
- if italic and isextension then
- -- int_a^b
- width = width + italic
+ if italic and italic > 0 then
+-- report_virtual("unicode char %s (U+%05X) in font %s has italic correction %s",utfchar(unicode),unicode,fs.properties.name or "unknown",italic)
+ -- int_a^b
+ if isextension then
+-- width = width + italic
+ end
end
if kerns then
local krn = { }
@@ -691,7 +695,8 @@ function vfmath.define(specification,set,goodies)
end
local italic = fci.italic
local t = {
- width = fci.width + italic, -- watch this !
+-- width = fci.width + italic, -- watch this !
+ width = fci.width,
height = fci.height,
depth = fci.depth,
italic = italic,