Justify route-D lines and compare ink bands with pdfTeX
This commit is contained in:
1 parent
93330a85ef
commit
4414f27438
4 files changed
+250
-7
No files matched your search
+10
-4
@@ -54,12 +54,18 @@ class execution are still ahead.
|
||||
`tftopl`, plus the fontdimen space/stretch/shrink values;
|
||||
- an item-stream Knuth-Plass-style dynamic program over character boxes, glue and penalty breakpoints that minimizes badness from
|
||||
glue stretch/shrink, allows overfull lines with an explicit overfull penalty,
|
||||
applies `par_indent` to the first line, and emits justified glue;
|
||||
applies `par_indent` to the first line, and bakes the justification into the
|
||||
glue widths of every non-final line;
|
||||
- `Paragraph { lines, height, width }` and a paragraph-backed `Unit`.
|
||||
|
||||
M1 still does not hyphenate, process
|
||||
`\discretionary`, use real TFM metrics or compare against pdfTeX. Those are the
|
||||
next paragraph milestones.
|
||||
M1 reads real CMR10 TFM metrics (advances, height/depth, italic correction,
|
||||
kern pairs, ff/fi/fl/ffi/ffl ligatures and the fontdimen glue parameters),
|
||||
hyphenates with the plain-TeX en-US patterns, and has pdfTeX fixtures for line
|
||||
breaking. The demerits/tolerance model is still simplified: the final line keeps
|
||||
its natural width and the last break can differ from TeX when a hyphenated break
|
||||
would be slightly cheaper. `route_d_multiline_bands_track_pdftex` compares the
|
||||
rasterized ink bands of a wrapped paragraph with pdfTeX, so baseline placement
|
||||
and justification are covered for the lines both engines break the same way.
|
||||
|
||||
## Target architecture
|
||||
|
||||
|
||||
Reference in new issue
Block a user