\fontdimen in LuaMetaTeX
Hi, recent LuaMetaTeX versions no longer automatically resize the fontdimen arrays on assignments. Is there a way to manually resize them or is it necessary to reload a patched font you want more fontdimens? Also, there is an issue with the error message (I guess) for font.setfontdimen: \starttext \directlua{font.setfontdimen(0, 8, 0)} \stoptext gives token call, execute: invalid option '%i' to 'lua_pushfstring' stack traceback: [C]: in function 'font.setfontdimen' [ctxlua]:1: in main chunk 1 \starttext 2 >> \directlua{font.setfontdimen(0, 8, 0)} 3 \stoptext 4 Best regards, Marcel
On 8/3/2020 7:57 PM, Marcel Fabian Krüger wrote:
Hi,
recent LuaMetaTeX versions no longer automatically resize the fontdimen arrays on assignments.
indeed, using font dimens for other purposes than fonts is pre-etex hackery that (c|sh)ould have been abandoned decades ago
Is there a way to manually resize them or is it necessary to reload a patched font you want more fontdimens?
no (tex uses the first 7 in text mode and some more in traditional math fonts but even those get remapped) ... if a font needs more then it's probably at the lua end and one then can deal with additional properties differently
Also, there is an issue with the error message (I guess) for font.setfontdimen:
\starttext \directlua{font.setfontdimen(0, 8, 0)} \stoptext
gives
token call, execute: invalid option '%i' to 'lua_pushfstring' stack traceback: [C]: in function 'font.setfontdimen' [ctxlua]:1: in main chunk
1 \starttext 2 >> \directlua{font.setfontdimen(0, 8, 0)} 3 \stoptext 4 ok, lua only handles %d, so i'll fix that, but all that code is in flux anyway, definitely undocumented
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Marcel Fabian Krüger