Font expansion enabled by default with the latest upload
Hi Hans, Font expansion (hz) seems to be enabled by default with the latest upload. If I compile this document locally with ConTeXt "2022.11.18 13:22": \showframe % \definefontfeature[default][default][expansion=quality] % \usetypescript[modern-base] % \setupbodyfont[reset,modern] % \setupalign[hz] \starttext Hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello. \stoptext I get slightly different spacing than I do when I compile the same document on live.contextgarden.net. If I compile the document with the lines uncommitted on live.contextgarden.net, I get the same results as I do on my local installation with the lines commented. Personally, I think that enabling hz expansion by default is probably a good thing, but this change will affect a very large number of documents and you never mentioned it in the announcement email, so I suspect that it was accidentally added when you added the math hz. Thanks, -- Max
On 11/21/2022 10:20 AM, Max Chernoff via ntg-context wrote:
Hi Hans,
Font expansion (hz) seems to be enabled by default with the latest upload.
If I compile this document locally with ConTeXt "2022.11.18 13:22":
\showframe
% \definefontfeature[default][default][expansion=quality] % \usetypescript[modern-base] % \setupbodyfont[reset,modern] % \setupalign[hz]
\starttext Hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello. \stoptext
I get slightly different spacing than I do when I compile the same document on live.contextgarden.net. If I compile the document with the lines uncommitted on live.contextgarden.net, I get the same results as I do on my local installation with the lines commented.
Personally, I think that enabling hz expansion by default is probably a good thing, but this change will affect a very large number of documents and you never mentioned it in the announcement email, so I suspect that it was accidentally added when you added the math hz. what you observe is likely a side effect of an increase in accuracy which gives a bit less drift in the pdf; expansion is turned off (it would increase runtime if turned on)
(increased accuracy was indeed a side effect of math but more to get rid of an annoyance at extreme resolutions) 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 -----------------------------------------------------------------
Hi Hans,
what you observe is likely a side effect of an increase in accuracy which gives a bit less drift in the pdf; expansion is turned off (it would increase runtime if turned on)
It's not just in the PDF though, I can also see the change from Lua.
Using this document:
\showframe
% \definefontfeature[default][default][expansion=quality]
% \usetypescript[modern-base]
% \setupbodyfont[reset,modern]
% \setupalign[hz]
\startluacode
function userdata.test(head)
local last_line = node.tail(head)
local i = 1
for n in node.traverse(node.tail(last_line.list), true) do
print(n)
if n.id == node.id("glue") then
print(node.effectiveglue(n, last_line) / 65536)
elseif n.width then
print(n.width / 65536)
end
if i >= 6 then
break
else
i = i + 1
end
end
return head
end
nodes.tasks.appendaction("finalizers", "after", "userdata.test")
nodes.tasks.enableaction("finalizers", "userdata.test")
\stopluacode
\starttext
Hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello.%
\ctxlua{nodes.tasks.enableaction("finalizers", "userdata.test")}
\ctxlua{nodes.tasks.disableaction("finalizers", "userdata.test")}
\stoptext
(A) With the expansion lines commented/default on ConTeXt "2022.11.18
13:22" I get:
participants (2)
-
Hans Hagen
-
Max Chernoff