Use the minimal font tier for ASCII route-D PDFs
This commit is contained in:
1 parent
295093ae5a
commit
6714591704
3 files changed
+88
-9
No files matched your search
@@ -1965,6 +1965,7 @@ mod tests {
|
||||
let pdf = crate::pdf::display_list_to_pdf(&list, 400 * 65_536);
|
||||
let text = String::from_utf8_lossy(&pdf);
|
||||
assert_eq!(text.matches("/Subtype /Type0").count(), 1);
|
||||
assert!(pdf.len() < 60_000, "{}", pdf.len());
|
||||
assert!(!text.contains("/BaseFont /LiberationSerif-Bold"));
|
||||
assert!(!text.contains("/BaseFont /LiberationMono"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user