Tests: set the ImageBlob file_font field in the colorized image separations test

main added the file_font field to ImageBlob, and the separations test
for an image whose pixels refuse its color built one without it, so the
vectorcraft-pdf tests did not compile after the merge of main.
This commit is contained in:
dotCooCoo
2026-11-22 22:46:01 -08:00
parent a6572d450a
commit 144544aa20
+4 -1
View File
@@ -384,7 +384,10 @@ fn separations_show_an_overprinting_image_whose_pixels_refuse_its_color() {
for postscript in [true, false] {
let mut d = doc(ColorMode::Cmyk, Some(spot.clone()));
let preview = Arc::new(vectorcraft_doc::links::missing_placeholder().unwrap());
d.images.insert("pic".into(), ImageBlob { mime: "image/png".into(), bytes: preview.clone(), proxy: Some(preview) });
d.images.insert(
"pic".into(),
ImageBlob { mime: "image/png".into(), bytes: preview.clone(), proxy: Some(preview), file_font: Default::default() },
);
let id = d.layers[0].children().unwrap()[0].id;
d.node_mut(id).unwrap().extras_mut().colorize_overprint = true;
let settings: PrintSettings = serde_json::from_value(serde_json::json!({"output": {"mode": "separations"}})).unwrap();