Replace font glue with explicit spaceskip and xspaceskip

This commit is contained in:
gloamxun committed 2026-10-23 02:38:12 +08:00
1 parent 4acccaee86
commit 4be0ff5787
7 files changed
+161 -25

No files matched your search

+6 -1
View File
@@ -59,7 +59,8 @@ Known gaps, in dependency order:
`\hangindent`/`\hangafter`/`\parshape` line geometry, `\parfillskip`
with or without `fil`, default `\sfcode` sentence spacing,
`\looseness`, and `\baselineskip`/`\lineskip`/`\parskip` interline
glue), custom `\sfcode` overrides, but not yet generic `fil`/`fill` glue
glue), custom `\sfcode` overrides, explicit `\spaceskip`/`\xspaceskip`, but not
yet generic `fil`/`fill` glue
orders or `\prevgraf`;
2. the default builder is still the scrolling builder with fraction
policies, now with line-level paragraph splits; `page::PageBuilder`
@@ -193,6 +194,10 @@ and left offset; the DP remembers a candidate's line number so the geometry can
vary per line, and a 120pt oracle fixture checks every line origin against
pdfLaTeX.
`\spaceskip` and `\xspaceskip` replace the interword glue; pdfTeX dumps
`\xspaceskip` verbatim above factor 2000 while `\spaceskip` keeps its width
but scales stretch/shrink, and 150pt oracle fixtures pin both.
`\parfillskip` is modelled: with the default `0pt plus 1fil` the last line is
left short, and a finite/zero `\parfillskip` makes the final line justify like
any other; a 120pt `\parfillskip=0pt` oracle fixture confirms pdfLaTeX's