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).

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
--- /home/khaled/vc/tex/context/context/tex/context/base/font-otf.lua	2011-04-20 12:06:32.000000000 +0200
+++ /media/sda8/tex/context/tex/texmf-context/tex/context/base/font-otf.lua	2011-04-24 00:25:52.000000000 +0200
@@ -817,6 +817,7 @@
     local marks             = { }
     for unicode, description in next, descriptions do
         local glyph = description.glyph
+        local italic = glyph.italic_correction
         if not italic then
             -- skip
         elseif italic == 0 then

Attachment: integrals.pdf
Description: Adobe PDF document

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to