luaotfload-harf-plug.lua:408: bad argument #1 to 'char' (value out of range)

Phelype Oleinik phe.h.o1 at
Wed Oct 28 00:37:25 CET 2020

Hi Loreno,

On Tue, Oct 27, 2020 at 7:09 PM Loreno Heer <loreno.heer at> wrote:
> Here is a small example that triggers the error.
> Looks like it does not like \paragraph in front of align*

Here's a smaller one:

\setmainfont{TeX Gyre Pagella}

It seems to boil down to this recipe:
 - load polyglossia
 - load fontspec
 - \setmainfont
 - \setbox with \textsc (also depends what is in \textsc)
 - \unhbox
 - BOOM!

Simply moving polyglossia after \setmainfont seems to work (no idea how
well though).


More information about the tex-live mailing list.