Skip to content

Commit

Permalink
Remove text all together
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Apr 1, 2024
1 parent 5b0c016 commit 4cf7970
Show file tree
Hide file tree
Showing 4 changed files with 1,817 additions and 1,816 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.
15 changes: 8 additions & 7 deletions tests/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,16 @@ fn to_chunk() {
pdf.type1_font(font_id).base_font(Name(b"Times-Roman"));

let mut content = Content::new();
content
.begin_text()
.set_font(font_name, 16.0)
.next_line(108.0, 734.0)
.show(Str(b"Look at my wonderful (distorted) vector graphic!"))
.end_text();
// We don't include the text because it causes issue in CI since it's OS-dependent
// content
// .begin_text()
// .set_font(font_name, 16.0)
// .next_line(108.0, 734.0)
// .show(Str(b"Look at my wonderful (distorted) vector graphic!"))
// .end_text();

content
.transform([300.0, 0.0, 0.0, 225.0, 147.5, 385.0])
.transform([300.0, 0.0, 0.0, 300.0, 200.0, 400.0])
.x_object(svg_name);

pdf.stream(content_id, &content.finish());
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 = true;
const REPLACE: bool = false;
const PDF: bool = false;

pub fn get_diff(
Expand Down
Loading

0 comments on commit 4cf7970

Please sign in to comment.