Skip to content

Commit

Permalink
Check if Times Roman works
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Apr 1, 2024
1 parent 9a490dc commit 5b0c016
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified tests/ref/api/to_chunk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn to_chunk() {
resources.finish();
page.finish();

pdf.type1_font(font_id).base_font(Name(b"Helvetica"));
pdf.type1_font(font_id).base_font(Name(b"Times-Roman"));

let mut content = Content::new();
content
Expand Down
2 changes: 1 addition & 1 deletion tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fn is_pix_diff(pixel1: &Rgba<u8>, pixel2: &Rgba<u8>) -> bool {
|| pixel1.0[3] != pixel2.0[3]
}

const REPLACE: bool = false;
const REPLACE: bool = true;
const PDF: bool = false;

pub fn get_diff(
Expand Down

0 comments on commit 5b0c016

Please sign in to comment.