[luatex] Unicode math issue with LuaLaTeX

Khaled Hosny khaledhosny at eglug.org
Sun Jun 13 20:42:24 CEST 2010


On Sun, Jun 13, 2010 at 06:03:16PM +0200, Ulrik Vieth wrote:
> On 06/13/2010 05:50 PM, Khaled Hosny wrote:
> >
> >I think it is a bit clear what we are missing now, a MathConstants
> >table. Just to be sure, is there any thing else we should consider?
> 
> I think that is exactly what Taco was saying earlier today.
> 
> Somehow the MathConstants table is missing or incomplete or invalid
> when an OT math font like XITS or Cambria is loaded via luaotfload.
> 
> Unfortunately, I don't enough how this is supposed to work.

Adding the following after line 131 in luaotfload.lua should fill
MathContants table:

if otfdata.metadata.math then
    for k,v in next, otfdata.metadata.math do
        fontdata.MathConstants[k] = v / units * size
    end
end

If this works for you, I can added this hack for now, until we figure out
why luaotfload isn't doing this.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


More information about the luatex mailing list