Use Base-14 fonts when possible and center natural-width tables

This commit is contained in:
gloamxun committed 2026-10-19 17:40:04 +08:00
1 parent 1da9e0dde9
commit ca5cb0b8af
8 files changed
+295 -35

No files matched your search

+1 -1
View File
@@ -258,7 +258,7 @@ fn serves_project_api_preview_and_pdf() {
assert!((value["pageWidthMm"].as_f64().unwrap() - 210.0).abs() < 0.1);
let pdf = server.request("POST", "/api/projects/hello/pdf", &[], "application/pdf");
assert_eq!(pdf.status, 200);
assert_eq!(pdf.status, 200, "{}", String::from_utf8_lossy(&pdf.body));
assert!(pdf.body.starts_with(b"%PDF-"), "missing PDF header");
}