* \fontdimen in LuaMetaTeX
@ 2020-08-03 17:57 Marcel Fabian Krüger
2020-08-04 7:34 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Marcel Fabian Krüger @ 2020-08-03 17:57 UTC (permalink / raw)
To: ConTeXt users list
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: \fontdimen in LuaMetaTeX
2020-08-03 17:57 \fontdimen in LuaMetaTeX Marcel Fabian Krüger
@ 2020-08-04 7:34 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2020-08-04 7:34 UTC (permalink / raw)
To: mailing list for ConTeXt users, Marcel Fabian Krüger
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-04 7:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03 17:57 \fontdimen in LuaMetaTeX Marcel Fabian Krüger
2020-08-04 7:34 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).