[luatex] Subscript drop too large
Henri Menke
henrimenke at gmail.com
Thu Sep 27 13:10:39 CEST 2018
On 9/27/18 10:53 PM, Hans Hagen wrote:
> On 9/27/2018 12:37 PM, Henri Menke wrote:
>> On 9/27/18 7:50 PM, Hans Hagen wrote:
>>> On 9/27/2018 7:23 AM, Henri Menke wrote:
>>>> Dear list,
>>>>
>>>> When using a Unicode math font, the subscript drop increases by a lot.
>>>> It does not seem to be font dependent, so it's likely an engine issue.
>>>> Is there any parameter which I could tweak?
>>>
>>> all kind of math parameters .. like
>>>
>>> $ \the\Umathsubshiftdrop\textstyle\quad {gt}_{gt} $
>>> $ \Umathsubshiftdrop\textstyle.2ex {gt}_{gt} $
>>
>> This partly answers the question, but it seems that there is something
>> wrong with subscripts after boxes, see MWE below. With XeTeX it looks
>> okay and the drop is basically the same with and without a Unicode math
>> font, but with LuaTeX the drop after the box is much larger with a
>> Unicode math font whereas the drop after a regular atom is the same.
>>
>> \ifdefined\directlua
>> \input luaotfload.sty
>> \fi
>> \font\math="Latin Modern Math" at 10pt
>> $\hbox{gt}_{gt} gt_{gt}$
>> \textfont0=\math
>> $\hbox{gt}_{gt} gt_{gt}$
>
> - fwiw i only test in context (i don't know wnat luaotfload does with math)
Fair enough. Consider the following MWE:
\starttext
$\hbox{gt}_{gt} {gt}_{gt}$
\stoptext
Attached are two versions, one typeset with “texexec --xtx test.tex”,
the other with “context test.tex” (should be obvious from the file
name). In the LuaTeX version the subscript drop is considerably larger
than in the XeTeX version.
>
> - afaiks your \math font is not set up as math
>
> Hans
>
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-lua.pdf
Type: application/pdf
Size: 8395 bytes
Desc: not available
URL: <https://tug.org/pipermail/luatex/attachments/20180927/00ce8aac/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-xtx.pdf
Type: application/pdf
Size: 4257 bytes
Desc: not available
URL: <https://tug.org/pipermail/luatex/attachments/20180927/00ce8aac/attachment-0003.pdf>
More information about the luatex
mailing list