Skip to content

Commit 38a0a19

Browse files
authored
Remove text from to_chunk test case so that it doesn't break CI (#68)
1 parent 2305ed6 commit 38a0a19

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

tests/ref/api/to_chunk.png

12 KB
Loading

tests/src/api.rs

+9-8
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,19 @@ fn to_chunk() {
5858
resources.finish();
5959
page.finish();
6060

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

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

7172
content
72-
.transform([300.0, 0.0, 0.0, 225.0, 147.5, 385.0])
73+
.transform([300.0, 0.0, 0.0, 300.0, 200.0, 400.0])
7374
.x_object(svg_name);
7475

7576
pdf.stream(content_id, &content.finish());

0 commit comments

Comments
 (0)