On Sat, 8 Feb 2025 at 09:09, Hironori KITAGAWA via luatex <[email protected]>
wrote:
> Hello all,
>
> I found that TFM-based fonts do not scale in the development
> version of LuaTeX:
>
> ----
> \input luaotfload.sty
> \font\la=file:lmroman10-regular.otf scaled 2000
> \font\lb=file:lmroman10-regular.otf at 100pt
> \font\ca=cmr10 scaled 2000
> \font\cb=cmr10 at 100pt
> \la abc\lb xyz % ==> OK
> \ca abc\cb xyz % ==> typeset in 10pt
> \bye
> ----
>
> I suspect the cause is the following code of font/tfmofm.c,
> which is introduced by a recent commit.
> ----
> if ((arith_error) || (z>= 01000000000)) {
> char err[256];
> const char *errhelp[] = {
> "I will ignore the scaling factor.",
> NULL
> };
> snprintf(err, 255, "Font scaled to 2048pt or higher");
> tex_error(err, errhelp);
> }
> z = sw ;
> arith_error = saved_arith_error;
> }
> ----
>
Ok, I am checking it.
--
luigi