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

+2
View File
@@ -417,6 +417,8 @@ fn build_document(paragraphs: &[SourceParagraph]) -> Document {
space_width: 4 * SCALE,
space_stretch: 6 * SCALE,
space_shrink: 2 * SCALE,
space_skip: None,
xspace_skip: None,
};
let mut unit = Unit::paragraph_with_style(index as u64, paragraph.text.clone(), style);
if let Some(VerticalItem::Paragraph(paragraph_box)) = unit.items.first_mut() {