Use a minimal font tier for Latin-1 documents
This commit is contained in:
1 parent
aaa9dee477
commit
79305d7c79
16 files changed
+58
-6
No files matched your search
@@ -128,6 +128,19 @@ fn arxiv_pdf_embeds_a_single_monospace_face() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ascii_document_uses_the_minimal_font_tier() {
|
||||
let source = "\\documentclass{article}\n\\begin{document}\nHello world.\n\\end{document}\n";
|
||||
let pdf = CompilerSession::default()
|
||||
.compile(source, "minimal-tier.tex")
|
||||
.expect("ASCII PDF");
|
||||
assert!(
|
||||
pdf.len() < 1_200_000,
|
||||
"ASCII document should use the minimal subset tier, got {} bytes",
|
||||
pdf.len()
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn arxiv_fixture_is_three_letter_pages() {
|
||||
let path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
|
||||
|
||||
Reference in new issue
Block a user