Skip to content

Commit 8a707ed

Browse files
committed
Update pdf-writer
1 parent 90c074f commit 8a707ed

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cli = ["clap", "termcolor", "usvg/text", "fontdb"]
1919

2020
[dependencies]
2121
miniz_oxide = "0.4"
22-
pdf-writer = "0.4.1"
22+
pdf-writer = { git = "https://github.com/typst/pdf-writer" }
2323
usvg = { version = "0.22", default-features = false }
2424
clap = { version = "3", features = ["derive"], optional = true }
2525
fontdb = { version = "0.9", optional = true }

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ fn form_xobject<'a>(
741741
if has_color {
742742
space.srgb();
743743
} else {
744-
space.srgb_gray();
744+
space.d65_gray();
745745
}
746746

747747
group.finish();

src/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ fn prep_shading(
365365
let mut shading = Shading::start(writer.indirect(shading_ref));
366366

367367
shading.shading_type(gradient.shading_type);
368-
shading.color_space().srgb_gray();
368+
shading.color_space().d65_gray();
369369
shading.function(alpha_func);
370370
shading.coords(gradient.transformed_coords(&ctx.c, bbox).into_iter().take(
371371
if gradient.shading_type == ShadingType::Axial {

0 commit comments

Comments
 (0)