Model TeX tolerance and hyphen penalty registers

This commit is contained in:
texrra committed 2026-10-23 01:05:28 +08:00
1 parent 4fbc43f5ff
commit 3725cca9d7
6 files changed
+148 -23

No files matched your search

+4
View File
@@ -335,6 +335,10 @@ fn build_document(paragraphs: &[SourceParagraph]) -> Document {
right_skip: 0,
par_indent: 0,
emergencystretch: 0,
pretolerance: 100,
tolerance: 200,
hyphen_penalty: 50,
ex_hyphen_penalty: 50,
line_height: paragraph.line_height * SCALE,
char_width: 10 * SCALE,
space_width: 4 * SCALE,