khaledhosny / harf

A HarfBuzz-based font loader and shaper for HarfTeX
GNU General Public License v2.0
10 stars 1 forks source link

bad argument #4 to `shape_full` error. #29

Closed u-fischer closed 5 years ago

u-fischer commented 5 years ago

Running a simple document like

\documentclass{article}

\usepackage{luatexbase}
\directlua{require("harf-luaotfload.lua")}

\begin{document}
\font\test={file:texgyreheros-regular.otf:mode=harf;}
\test abc
\end{document}

I get the error

warning  (node filter): error: .../luaotfload/texmf/tex/luatex/luahbtex-harf/ha
rf-node.lua:339: bad argument #4 to 'shape_full' (number expected, got table)

setting shapers to 0 in harf-node.lua (instead of a table) works, but I have naturally no idea which number the function expects.

khaledhosny commented 5 years ago

I can’t reproduce this (I needed 0a1605571b7c937001672a3867c1826ccbdfa70d and 437f3e2e6477d69a97c46ddd4c45b80858b78975 to get the test working, though).

khaledhosny commented 5 years ago

You might need a recent luahbtex build as handling shapers is a later addition to luaharfbuzz.

u-fischer commented 5 years ago

Ah. With the newest luahbtex it worked (I hadn't seen that it isn't TLW64 folder but in the win64 folder).