From a6994b024b0e60c9d69ddbedc399f0d7a823c70d Mon Sep 17 00:00:00 2001 From: Marius Date: Tue, 23 Oct 2012 01:20:13 +0300 Subject: beta 2012.10.22 23:51 --- tex/context/base/math-vfu.lua | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'tex/context/base/math-vfu.lua') 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, -- cgit v1.2.3