Print: the PDF fonts note names the fonts drawn as outlines

PDF print embeds subsets only of the fonts whose licenses allow it and
draws the others as outlines. The note that None and Complete add now
says so, as do the Fonts params text, docs/mcp.md and the progress line.
This commit is contained in:
dotCooCoo
2026-11-22 12:12:38 -08:00
parent f7a5e3991d
commit e37b052028
5 changed files with 16 additions and 7 deletions
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -484,7 +484,10 @@ impl<'a> Job<'a> {
// PDF output embeds a subset of each font its license allows, as a saved PDF does;
// PostScript output follows Fonts.
if !postscript && set.graphics.fonts != FontDownload::Subset {
setting_notes.push(format!("PDF print embeds subsets of the fonts: Fonts: {} applies to PostScript output", set.graphics.fonts.label()));
setting_notes.push(format!(
"PDF print embeds subsets of the fonts whose licenses allow it and draws the others as outlines: Fonts: {} applies to PostScript output",
set.graphics.fonts.label()
));
}
Ok(Self { doc, layouts, tiles, inks, document_inks, plates, sheets, warnings, setting_notes })
}
+8 -3
View File
@@ -1378,7 +1378,8 @@ fn separations_use_the_cmyk_profile_assigned_to_the_document() {
assert_eq!(cyan(&d), 0.0, "Device CMYK puts a neutral grey on the black plate only");
}
/// PDF print embeds font subsets whatever Fonts says: None and Complete get a note in the print
/// PDF print embeds font subsets (where the font's license allows it) whatever Fonts says: None
/// and Complete get a note in the print
/// and its preview, Subset none. PostScript output, which follows Fonts, gets none.
#[test]
fn non_subset_font_choices_report_pdf_subset_output() {
@@ -1386,8 +1387,12 @@ fn non_subset_font_choices_report_pdf_subset_output() {
for (fonts, label) in [("none", Some("None")), ("subset", None), ("complete", Some("Complete"))] {
let v = json!({"graphics": {"fonts": fonts}});
let note = |notes: &[String]| notes.iter().filter(|n| n.starts_with("PDF print embeds subsets")).cloned().collect::<Vec<_>>();
let want: Vec<String> =
label.map(|l| format!("PDF print embeds subsets of the fonts: Fonts: {l} applies to PostScript output")).into_iter().collect();
let want: Vec<String> = label
.map(|l| {
format!("PDF print embeds subsets of the fonts whose licenses allow it and draws the others as outlines: Fonts: {l} applies to PostScript output")
})
.into_iter()
.collect();
assert_eq!(note(&job(&d, v.clone()).setting_notes), want, "{fonts}");
assert_eq!(note(&preview(&d, &settings(v.clone())).unwrap().setting_notes), want, "{fonts}");
let plan = plan(&d, &PrintOptions { settings: settings(v), postscript: true, ..Default::default() }).unwrap();
+2 -1
View File
@@ -10362,7 +10362,8 @@ in an encoding, and a note names every font the printer needs. The file lists th
`%%DocumentSuppliedResources`. Type that the fonts don't carry prints as outlines, as before: type in a gradient or
pattern, color glyphs, glyphs bent along a curved path, ruby, and with `none` a glyph the font gives no name. So does type in a
font whose license forbids embedding, and, with `subset`, a font that may only be embedded whole; both with a warning
naming the font. PDF output embeds font subsets with any of the three, and `none` or `complete` adds a note saying so.
naming the font. With any of the three, PDF output embeds subsets of the fonts whose licenses allow it and draws the
others as outlines, and `none` or `complete` adds a note saying so.
```json
{"name":"run_command","arguments":{"command":"file.print","params":{"path":"/tmp/job.ps","level":2,"settings":{"output":{"mode":"separations"}}}}}
+1 -1
View File
@@ -2387,7 +2387,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
- Desktop print transport uses `craft-print` for CUPS and modern Windows. Sheet composition, copies, separations and colour management remain in VectorCraft. The Print dialog's Media list also carries the Japanese papers — JIS B4 257 × 364 mm, JIS B5 182 × 257 mm and JIS B6 128 × 182 mm beside the ISO B4/B5 (250 × 353 and 176 × 250 mm, kept so settings and presets saved before them keep their paper), and はがき 100 × 148 mm, 往復はがき 148 × 200 mm, 封筒 長形3号 120 × 235 mm, 長形4号 90 × 225 mm, 角形2号 240 × 332 mm, 角形3号 216 × 277 mm and 四六判 127 × 188 mm; the JSON id or the dialog label names a paper, any case and spacing (`B5 (JIS)` or `b5jis`) (`crates/pdf/src/print/settings.rs`, `crates/pdf/src/tests/print.rs`). The print-preview and physical-device fidelity gaps remain, so print scores and hours are unchanged.
- The Print dialog's Document Ink Options list shows an icon before each spot ink's name, and a click on it prints that one ink as process inks (on the Cyan, Magenta, Yellow and Black plates, with no plate of its own) or as a spot ink again, as [the help page](https://helpx.adobe.com/illustrator/using/printing-color-separations.html) describes for single spot colors. Other spot inks keep their plates, and spot gradient stops and DCS images' spot plates follow each ink's choice (`print.setup {settings: {output: {inks: [{name, convertToProcess: true}]}}}`, kept with the document and in print presets; `print.preview` lists every ink as `documentInks`). These are VectorCraft's own rules: Convert All Spot Colors to Process converts every spot ink and dims the icons while keeping each ink's own choice, a converted ink's Print, Frequency and Angle are dimmed and kept, and process inks and Registration have no icon. Evidence: `print::one_spot_ink_converts_to_process_and_the_others_keep_their_plates`, `print::converting_every_spot_ink_overrides_and_keeps_each_inks_own_choice`, `print::a_spot_gradient_stop_prints_its_process_plates`, `cmykimages::a_dcs_image_converts_only_the_spot_ink_chosen`, `tests::print::a_spot_ink_converted_to_process_is_saved_and_listed_without_a_plate`, `dialogs::tests_print::a_spot_inks_icon_converts_it_to_process_and_back`. Print scores and hours are unchanged.
- On a PostScript plate, an overprinting gradient that puts the plate's ink down in some places and none in others leaves the ink below where it puts none: the stretches between stops of paper white and the padding past an end that is painted paper white (with the end stop's color at Level 2 and the color of the stretch next to it in a Level 3 smooth shading, which differ when two stops share the end's offset) are clipped out of a linear, radial or diamond gradient, the wedges of paper white out of a conic one, and the cells whose 8-bit samples carry none of the plate's ink out of a freeform one (masked at Level 3, clipped at Level 2). This holds for fills, strokes and characters, and on spot plates. Where the gradient puts ink down, its amount replaces the ink below as before. A stop or point with up to half a percent of another ink in a color that counts as black puts none down, as a solid fill of that color does. PDF plates are unchanged. These are VectorCraft's own rules. Evidence: `print::tests::an_overprinting_gradient_keeps_the_ink_below_where_it_puts_none_on_a_postscript_plate`, `print::tests::an_overprinting_gradient_with_a_hard_stop_at_an_end_keeps_the_ink_below_on_a_postscript_plate`, `print::tests::overprinting_gradient_strokes_type_freeforms_and_spot_inks_keep_the_ink_below_on_postscript_plates` and `print::tests::an_overprinting_freeform_gradient_leaves_out_the_cells_its_samples_write_without_ink_on_a_postscript_plate` (`vectorcraft-eps`), `tests::print::a_near_black_stop_of_an_overprinting_gradient_puts_no_cyan_on_postscript_plates`.
- The Print dialog's Graphics section's Fonts setting now reaches PostScript output, with the three choices [the help page](https://help.adobe.com/archive/en_US/illustrator/cs3/illustrator_cs3_help.pdf#page=418) describes: Subset (the default) sends each page Type 3 fonts holding only the glyphs that page shows, Complete sends every glyph of each font once before the first page (an error past 64 MB), and None sends no font and asks for the printer's own by its PostScript name, with a note naming each one. Type in a gradient or pattern, color glyphs, glyphs bent along a curved path, ruby, a glyph without a name under None, and fonts whose license forbids embedding (or allows only whole embedding, under Subset) print as outlines as before, the license cases with a warning. PDF print still embeds font subsets, and None or Complete adds a note saying so. The outlines-as-fallback and the size limit are VectorCraft's own rules. Evidence: `print::tests::subset_downloads_used_glyphs_once_per_page`, `print::tests::complete_downloads_whole_font_once_before_pages`, `print::tests::none_references_font_without_downloading_it`, `print::tests::forbidden_font_stays_art_with_a_note`, `print::tests::complete_large_font_fails_before_partial_output` (`vectorcraft-eps`), `tests::printps::the_fonts_setting_chooses_how_type_is_sent`, `tests::print::non_subset_font_choices_report_pdf_subset_output` (`vectorcraft-pdf`). Print scores and hours are unchanged.
- The Print dialog's Graphics section's Fonts setting now reaches PostScript output, with the three choices [the help page](https://help.adobe.com/archive/en_US/illustrator/cs3/illustrator_cs3_help.pdf#page=418) describes: Subset (the default) sends each page Type 3 fonts holding only the glyphs that page shows, Complete sends every glyph of each font once before the first page (an error past 64 MB), and None sends no font and asks for the printer's own by its PostScript name, with a note naming each one. Type in a gradient or pattern, color glyphs, glyphs bent along a curved path, ruby, a glyph without a name under None, and fonts whose license forbids embedding (or allows only whole embedding, under Subset) print as outlines as before, the license cases with a warning. PDF print still embeds subsets of the fonts whose licenses allow it and draws the others as outlines, and None or Complete adds a note saying so. The outlines-as-fallback and the size limit are VectorCraft's own rules. Evidence: `print::tests::subset_downloads_used_glyphs_once_per_page`, `print::tests::complete_downloads_whole_font_once_before_pages`, `print::tests::none_references_font_without_downloading_it`, `print::tests::forbidden_font_stays_art_with_a_note`, `print::tests::complete_large_font_fails_before_partial_output` (`vectorcraft-eps`), `tests::printps::the_fonts_setting_chooses_how_type_is_sent`, `tests::print::non_subset_font_choices_report_pdf_subset_output` (`vectorcraft-pdf`). Print scores and hours are unchanged.
- The Print dialog's Output section has Overprint Black under Convert All Spot Colors to Process, off by default and available with Separations ([Print color separations](https://helpx.adobe.com/illustrator/using/printing-color-separations.html) lists it among the separation options): black art then leaves the inks under it on the other plates (`print.setup {settings: {output: {overprintBlack: true}}}`, kept with the document and in print presets). Solid 100% K or 100% gray fills, strokes and characters (to within half a percent, as Edit › Edit Colors › Overprint Black counts them), and gradients whose every stop (every color point of a freeform gradient) is, overprint; rich, RGB, Lab, spot-linked and lighter blacks are not marked, paints already set to overprint keep that setting, and only the printed copy is marked. These limits are VectorCraft's own rules. Characters set to overprint now also leave the inks below them on printed PDF plates, a type object's own fill in a PDF is drawn with its blending mode, and Edit › Edit Colors › Overprint Black counts a gradient with a stop linked to a spot swatch as a spot black, as it counts a solid one, and a freeform gradient by the color points it draws from. On a plate, an overprinting paint that puts none of that plate's ink down is drawn as nothing; on PostScript plates so is up to half a percent of another ink in a color that counts as black, and any other faint ink stays on the plate. A black linked to a swatch the document lacks separates from its own values, so on PostScript plates it counts as an unlinked black (VectorCraft's own rule). Evidence: `print::overprint_black_keeps_the_inks_under_solid_black_on_separations`, `print::overprint_black_keeps_the_cyan_under_near_and_freeform_blacks_on_postscript_plates`, `print::overprint_black_keeps_the_cyan_under_a_near_black_linked_to_a_missing_swatch_on_postscript_plates`, `print::overprinting_near_blacks_linked_to_a_missing_swatch_keep_the_cyan_on_postscript_plates`, `print::overprinting_paints_keep_their_faint_ink_on_postscript_plates`, `print::overprinting_type_leaves_the_inks_below_on_separations`, `print::a_type_objects_own_black_fill_overprints_on_separations`, `tests::print::overprint_black_is_saved_with_the_setup_and_in_presets`, `overprint::tests::a_gradient_with_a_spot_linked_stop_is_black_only_with_spot`, `overprint::tests::a_freeform_gradient_is_black_when_every_point_is`. Print scores and hours are unchanged.
- The Print dialog's General section (and the print preset editor) has a link button after Scale W and H, as the Custom scale has one on [the help page](https://helpx.adobe.com/illustrator/desktop/save-and-export/export-files-to-different-formats/print-documents-in-illustrator.html), where turning it off scales the width and height apart. While it is on, typing either percentage sets the other, and turning it on sets H to W. It is on for new settings, dimmed with the fields unless Scaling is Custom or a tiling choice, toggled with a click, Space or Enter, and named with its on or off state for screen readers. W and H take 1–1000% in the fields. The link is kept with the document's print settings and in print presets (`print.setup {settings: {scale: {linked}}}`); settings saved without it read it as off, so they print as before. Its default, the tiling choices and the agent rules are VectorCraft's own. Evidence: `print::the_scale_link_is_on_for_new_settings_and_off_for_a_saved_scale_without_it`, `tests::print::the_scale_link_keeps_width_and_height_equal`, `tests::print::a_scale_saved_without_the_link_keeps_its_width_and_height`, `dialogs::tests_print::the_scale_link_keeps_scale_width_and_height_equal`, `dialogs::tests_print::a_print_preset_keeps_the_scale_link`. Print scores and hours are unchanged.
- A PDF, PDF-compatible `.ai` or `.ait` opened from its pages or its editing copy opens with the File Info that its XMP packet and its document information dictionary give: the title (`dc:title`, its `x-default` item first, else Info `Title`), the author, description, keywords, copyright status, notice and URL, and the created and modified dates, the XMP packet's value where both give one (`crates/pdf/src/tests/file_info.rs`, `crates/engine/src/tests/fileinfo.rs`). An SVG opens with the title of its root `<title>`. The title is File Info's alone (`DocMetadata::title`): the document's name stays the file's name with its extension, a file that gives no title leaves File Info with that name, and exports (PDF, SVG, PNG, EPS, `.ai`) and native saves carry it; changing the title in File Info sets the document's name as before (#3626).