[luatex] luaotfload: Random font changes with mode=base

Philipp Gesang Philipp.Gesang at alumni.uni-heidelberg.de
Wed Mar 12 20:31:30 CET 2014

Hi Ulrike!

···<Datum: Wednesday, 12. March 2014>···<Von: Ulrike Fischer>···

> If I compile this document more than once (I think I have now
> compiled it and similar documents around 200 times ;-))
> \documentclass{scrreprt}
> \usepackage{luaotfload}
> \font\sup={name:Linux Libertine O:+onum;+sups;mode=base}
> \begin{document}
> abc\sup123467
> \end{document}
> then in around 50% of the pdf the numbers are (as wanted)
> superscripts, and in the other pdf the numbers are normal old style
> numbers. 

Confirmed for version 0.78.2 (4746) and the most recent
fontloader as part of Context, version 2014.03.07 11:42.

Here’s the code for Plain and Context:


> I can accept that you can't combine onum + sups, but why is the
> result so random?

Lua makes no guarantees about the order of indexes on the hash
part of tables. The behavior you observed is consistent with the
feature strings being used as indices (which indeed they are) and
then iterated over with next().

>                   (with mode=node +sups wins always).

No idea why. Xetex appears to prefer onum …

Best regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20140312/a3af91fd/attachment.bin>

More information about the luatex mailing list