On 24-4-2011 12:32, Khaled Hosny wrote:
On Sun, Apr 24, 2011 at 12:11:15AM +0200, Khaled Hosny wrote:
On Sat, Apr 23, 2011 at 11:57:55PM +0200, Khaled Hosny wrote:
See the attached file, it is broken for all OTF fonts; the italic correction is used the wrong way (added to width while it should be subtracted from it). It seems to be a ConTeXt issue (testing with same luatex binary but with TeXLive ConTeXt gives correct output).
Actually, it seems italic correction is just ignored, indeed looking at the cached lua file there is no italic correction at all.
The attached patch fixes it (it is good to have git repository to compare different context version, just if it was a "real" git repository not just code dumps).
This would have be hard to nail down with diffs I guess as it is part of the change to the userdata loading approach which came with lots of changes in the code (as I then also changed the cache data model). Thanks for the patch, applied. (I must admit that the italic bit is still the messy part of otf, tfm, math engine.) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------