Unicode-math strange results

15 views
Skip to first unread message

Ulrik Vieth

unread,
Jun 6, 2010, 4:55:13 PM6/6/10
to uni...@googlegroups.com, xe...@tug.org, lua...@tug.org
Hi all,

I've doing some testing and found a couple of strange issues,
which might be engine-related rather than macro-related.

I have been running my tests using the following versions:

- fontspec, unicode-math, luaotfload from CTAN (today)
- luatex and xetex binaries from context-minimals

luatex --version
This is LuaTeX, Version beta-0.60.1-2010042811

xetex --version
XeTeX 3.1415926-2.2-0.9995.2 (Web2C 7.5.6)

I have found the following problems:

1. Delimiters:
With xelatex, \left and \right delimiters do not grow.
\big, \Big, \bigg, \Bigg produce only the default size.
With lualatex, delimiters are fine (no problem).

2. Radicals:
With xelatex, I only get a radical sign without a bar.
With lualatex, I get a misplaced radical sign with a very thick bar.
(The radical sign should hang below the baseline, but doesn't.)

Enclosed is a zip file with all test sources and log files.

Regards, Ulrik

P.S: Sorry, for cross-posting, but I wasn't sure,
if everyone was following the unimath group.

unimath-test.zip
lua-test-delim.pdf
lua-test-sqrt.pdf
xe-test-delim.pdf
xe-test-sqrt.pdf

Khaled Hosny

unread,
Jun 6, 2010, 5:01:03 PM6/6/10
to uni...@googlegroups.com, xe...@tug.org, lua...@tug.org
On Sun, Jun 06, 2010 at 10:55:13PM +0200, Ulrik Vieth wrote:
>
> 2. Radicals:
> With xelatex, I only get a radical sign without a bar.
> With lualatex, I get a misplaced radical sign with a very thick bar.
> (The radical sign should hang below the baseline, but doesn't.)

This usually means the value of RadicalRuleThikness is ignored and the
engine is falling back to the old TeX method (the hight of radical
glyph).


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

Khaled Hosny

unread,
Jun 6, 2010, 5:05:01 PM6/6/10
to uni...@googlegroups.com, xe...@tug.org, lua...@tug.org
On Mon, Jun 07, 2010 at 12:01:03AM +0300, Khaled Hosny wrote:
> On Sun, Jun 06, 2010 at 10:55:13PM +0200, Ulrik Vieth wrote:
> >
> > 2. Radicals:
> > With xelatex, I only get a radical sign without a bar.
> > With lualatex, I get a misplaced radical sign with a very thick bar.
> > (The radical sign should hang below the baseline, but doesn't.)
>
> This usually means the value of RadicalRuleThikness is ignored and the
> engine is falling back to the old TeX method (the hight of radical
> glyph).

I was referring to the lualatex issue.

Ulrik Vieth

unread,
Jun 6, 2010, 5:19:41 PM6/6/10
to uni...@googlegroups.com, xe...@tug.org, lua...@tug.org
On 06/06/2010 11:05 PM, Khaled Hosny wrote:
>> This usually means the value of RadicalRuleThikness is ignored and the
>> engine is falling back to the old TeX method (the hight of radical
>> glyph).

Yes, but why? It doesn't seem to be font-dependent.
It also happens if I replace Cambria Math by XITS Math.

Could this be an architecture / library-dependent? (Linux, 64 bit)

Regards, Ulrik

Khaled Hosny

unread,
Jun 7, 2010, 1:04:23 AM6/7/10
to uni...@googlegroups.com, xe...@tug.org, lua...@tug.org

I don't think so, it is likely a macro package issue, but we need to do
more bare bone testing (no luaotfload, no fontspec or unicode-math).

Regards,
Khaled

Apostolos Syropoulos

unread,
Jun 7, 2010, 4:08:34 PM6/7/10
to uni...@googlegroups.com
Try the attached file with CambriaMath or any OpenType math font but please correct the file name!
A.S.

--
Apostolos Syropoulos
Xanthi, GREECE

CAMBRIA.tex

Ulrik Vieth

unread,
Jun 7, 2010, 5:54:45 PM6/7/10
to uni...@googlegroups.com, xe...@tug.org
On 06/07/2010 10:08 PM, Apostolos Syropoulos wrote:
> Try the attached file with CambriaMath or any OpenType math font but
> please correct the file name!
> A.S.

Hi,
I tried it, and I'm still getting the same problems with plain xetex,
i.e. no big sizes of delimiters, no radical bar, nor fraction bar.

Obviously this is not a macro problem of unicode-math in Xe|LuaLaTeX,
but rather an engine system (at least on my system and possibly others).

I will try to do some more testing on other systems (e.g. windows32),
but I suspect that there is something seriously wrong with xetex or some
of its library dependencies on linux64 architecture.

It looks as if there were problems to extract the proper values of
OpenType MATH parameters from the fonts through the library layer.

Indeed, \showthe\fontdimenNN\1 on font\1=Cambria Math shows values
of 0.0pt throughout for NN between 10 and 65.

Regards, Ulrik


Apostolos Syropoulos

unread,
Jun 8, 2010, 6:31:19 AM6/8/10
to uni...@googlegroups.com


2010/6/8 Ulrik Vieth <ulrik...@arcor.de>
On 06/07/2010 10:08 PM, Apostolos Syropoulos wrote:
Try the attached file with CambriaMath or any OpenType math font but
please correct the file name!
A.S.


I will try to do some more testing on other systems (e.g. windows32), but I suspect that there is something seriously wrong with xetex or some of its library dependencies on linux64 architecture.


I have tested the OpenSolaris 64bit binaries and they exhibit the same problem. On the other
hand the 32bit binary produces correct output. I have used version 3.1415926-2.2-0.9997.1
(TeX Live 2010).

Regards,
A.S.

--
Apostolos Syropoulos
366, 28th October Str.
Xanthi, GREECE

Reply all
Reply to author
Forward
0 new messages