From 84dd65f487ff287075c634e2f63d868a0c7cec98 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 22 Nov 2026 22:58:08 -0500 Subject: [PATCH] fw-sync fw-menu-misc: resolve menu, behavior, automation, font picker, theme, color-ui, docs, vendor, Cargo.lock menu: upstream's memoised bar and English names in the model, with the port's icons/compact options and disabled submenus. behavior: press keeps both the pointer-left and pass-drag states; KeyRole gains PartialEq/Eq. automation: agents deps via craft-control, screenshot params with region, document points with a page. font picker: upstream's column list, kinds, actions and missing note, with the port's host groups, current host row and mixed label. theme: wordcraft and pdfcraft app palettes. Cargo.lock: port side; vendor jbig2: upstream. --- Cargo.lock | 16 -- crates/automation/Cargo.toml | 23 +- crates/automation/src/control.rs | 26 +-- crates/automation/src/lib.rs | 5 - crates/automation/src/screenshot.rs | 4 - crates/automation/src/synthetic.rs | 7 +- crates/automation/tests/it/control.rs | 5 +- crates/automation/tests/it/main.rs | 15 +- crates/behavior/src/hit.rs | 6 +- crates/behavior/src/keys.rs | 6 +- crates/behavior/src/overlay.rs | 6 +- crates/behavior/src/press.rs | 25 +-- crates/color-ui/src/ui/paint_chip.rs | 5 - crates/font-manager/src/picker.rs | 78 +++---- crates/font-manager/src/picker/rank.rs | 29 --- crates/font-manager/src/picker/rows.rs | 243 +++++++--------------- crates/font-manager/src/picker/stories.rs | 37 +--- crates/font-manager/tests/it/picker.rs | 14 +- crates/menu/src/bar.rs | 25 +-- crates/menu/src/context.rs | 11 +- crates/menu/src/layout.rs | 31 +-- crates/menu/src/model.rs | 36 +--- crates/menu/tests/it/bar.rs | 5 +- crates/menu/tests/it/main.rs | 8 +- crates/menu/tests/it/shortcuts/mod.rs | 19 +- crates/theme/src/tokens/color.rs | 15 +- crates/theme/themes/artcraft.json | 73 ++++--- docs/porting.md | 6 +- vendor/hayro-jbig2/src/segment.rs | 6 - 29 files changed, 220 insertions(+), 565 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 343c9738c..79ca46d22 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2059,13 +2059,9 @@ version = "0.1.0" name = "craft-automation" version = "0.1.0" dependencies = [ -<<<<<<< HEAD "base64 0.23.1", "craft-ai-agents", "craft-atomic", -======= - "base64 0.22.1", ->>>>>>> origin/next "craft-behavior", "craft-control", "craft-host", @@ -3731,11 +3727,7 @@ name = "craft-print" version = "0.1.0" dependencies = [ "craft-behavior", -<<<<<<< HEAD "craft-theme", -======= - "craft-host", ->>>>>>> origin/next "craft-ui", "craft-winprint-gdi", "egui", @@ -3938,10 +3930,6 @@ dependencies = [ "tempfile", "toml", "toml_edit", -<<<<<<< HEAD -======= - "wasm-bindgen-test", ->>>>>>> origin/next "web-sys", "web-time", ] @@ -4364,11 +4352,7 @@ dependencies = [ "smallvec", "syn 2.0.119", "toml", -<<<<<<< HEAD "wasm-bindgen-futures", -======= - "typeid", ->>>>>>> origin/next "web-time", ] diff --git a/crates/automation/Cargo.toml b/crates/automation/Cargo.toml index 4d90d1c11..eaa5dc2df 100644 --- a/crates/automation/Cargo.toml +++ b/crates/automation/Cargo.toml @@ -34,13 +34,11 @@ agents = ["craft-control/agents", "dep:craft-host"] # The screenshot reply's PNG and its inline base64 (the control channel builds on every target with `ui`). base64 = "0.23" craft-behavior = { workspace = true, optional = true } -<<<<<<< HEAD -craft-host = { workspace = true, optional = true } -======= # The agents code without a UI toolkit (settings, the launcher's switch, the connection file, the # CLI's live client), re-exported by `agents` so every app shares one copy. craft-control = { workspace = true } ->>>>>>> origin/next +# The recorded actions' file picks (`ui`) go through the host on every target. +craft-host = { workspace = true, optional = true } craft-keymap = { workspace = true, optional = true } craft-theme = { workspace = true } craft-ui = { workspace = true, optional = true } @@ -48,27 +46,12 @@ egui = { workspace = true, optional = true } png = "0.17" serde = { workspace = true } serde_json = { workspace = true } -<<<<<<< HEAD # `std::time::Instant` panics on wasm; this is the same type on native. web-time = "1.1" -# The server and client, the token files, the profiler and the trace. +# The server, client, token files, profiler and trace. [target.'cfg(not(target_arch = "wasm32"))'.dependencies] craft-platform = { workspace = true } -craft-ai-agents = { workspace = true, optional = true } -craft-atomic = { workspace = true, optional = true } -craft-flags = { workspace = true, optional = true } -======= -web-time = "1.1" -# The screenshot queue encodes and inlines PNGs on every target the control channel builds for. -base64 = "0.22" -png = "0.17" - -# The server, client, profiler and trace. -[target.'cfg(not(target_arch = "wasm32"))'.dependencies] -craft-platform = { workspace = true } -craft-host = { workspace = true, optional = true } ->>>>>>> origin/next getrandom = "0.3" hmac = "0.12" log = "0.4" diff --git a/crates/automation/src/control.rs b/crates/automation/src/control.rs index a7c6211ed..2fedab3cd 100644 --- a/crates/automation/src/control.rs +++ b/crates/automation/src/control.rs @@ -14,10 +14,6 @@ //! two happened, once, between the UI thread and the transport. use std::sync::mpsc::{Receiver, Sender}; -<<<<<<< HEAD -======= -use web_time::Instant; ->>>>>>> origin/next use craft_ui::runtime::motion; use craft_ui::runtime::windows::WindowHost; @@ -140,22 +136,15 @@ pub enum Reply { } impl Reply { -<<<<<<< HEAD - /// A `ui.screenshot` reply for `token` of `viewport` with what [`ScreenshotParams::from_params`] read: the PNG - /// goes to `params.path` or is inlined when `None`, and shows `params.region` or the whole window. - pub fn screenshot(token: u64, params: ScreenshotParams, viewport: egui::ViewportId) -> Self { - Self::Screenshot { token, path: params.path, region: params.region, viewport } -======= /// A `ui.accessTree` reply: held until the window's settled access tree is available. pub fn access_tree() -> Reply { Reply::AccessTree } - /// A `ui.screenshot` reply for `token` of `viewport`, writing the PNG to `path` or inlining it - /// when `None`. - pub fn screenshot(token: u64, path: Option, viewport: egui::ViewportId) -> Self { - Self::Screenshot { token, path, viewport } ->>>>>>> origin/next + /// A `ui.screenshot` reply for `token` of `viewport` with what [`ScreenshotParams::from_params`] read: the PNG + /// goes to `params.path` or is inlined when `None`, and shows `params.region` or the whole window. + pub fn screenshot(token: u64, params: ScreenshotParams, viewport: egui::ViewportId) -> Self { + Self::Screenshot { token, path: params.path, region: params.region, viewport } } /// `Done` with the [`result_reply`] of a method's result. @@ -220,15 +209,10 @@ impl ControlChannel { } Reply::AfterInput => self.input_waiters.push(reply), Reply::AfterJob(job) => self.job_waiters.push((job, reply)), -<<<<<<< HEAD + Reply::AccessTree => self.tree_waiters.push(reply), Reply::Screenshot { token, path, region, viewport } => { let request = ScreenshotRequest { token, path, region, viewport, reply, document, settle_ms }; if let Err((reply, e)) = self.captures.admit(request, motion::now()) { -======= - Reply::AccessTree => self.tree_waiters.push(reply), - Reply::Screenshot { token, path, viewport } => { - if let Err((reply, e)) = self.captures.admit(ScreenshotRequest { token, path, viewport, reply, document, settle_ms }, motion::now()) { ->>>>>>> origin/next let _ = reply.send(json!({"ok": false, "error": e})); } } diff --git a/crates/automation/src/lib.rs b/crates/automation/src/lib.rs index 5ad81bc2a..2c004e6dc 100644 --- a/crates/automation/src/lib.rs +++ b/crates/automation/src/lib.rs @@ -38,11 +38,6 @@ pub mod dock; pub mod files; #[cfg(not(target_arch = "wasm32"))] pub mod profiler; -<<<<<<< HEAD -// The native client reads `REPLY_DEADLINE` without `ui`; the control channel reads the validators on every target. -#[cfg(any(feature = "ui", not(target_arch = "wasm32")))] -======= ->>>>>>> origin/next pub mod protocol; #[cfg(feature = "ui")] pub mod screenshot; diff --git a/crates/automation/src/screenshot.rs b/crates/automation/src/screenshot.rs index b8a967949..754b23a16 100644 --- a/crates/automation/src/screenshot.rs +++ b/crates/automation/src/screenshot.rs @@ -19,11 +19,7 @@ use std::collections::HashMap; use std::sync::Arc; use std::sync::mpsc::Sender; -<<<<<<< HEAD use std::time::Duration; -======= -use web_time::{Duration, Instant}; ->>>>>>> origin/next use base64::Engine as _; use craft_ui::runtime::windows::{ScreenshotFacts, ScreenshotSlot, WindowHost}; diff --git a/crates/automation/src/synthetic.rs b/crates/automation/src/synthetic.rs index 31ca14414..ae06ee275 100644 --- a/crates/automation/src/synthetic.rs +++ b/crates/automation/src/synthetic.rs @@ -92,13 +92,8 @@ impl At { fn in_space(p: &Params<'_>, pos: Pos2) -> Result { Ok(match p.choice("coordinates", "coordinates", &["screen", "document"])?.unwrap_or("screen") { -<<<<<<< HEAD - "document" => Self::Document(pos), + "document" => Self::Document(pos, p.uint_field("page")?.map_or(0, |page| usize::try_from(page).unwrap_or(usize::MAX))), _ => Self::Screen(pos), -======= - "document" => Self::Document(pos2(x, y), p.uint_field("page")?.map_or(0, |page| usize::try_from(page).unwrap_or(usize::MAX))), - _ => Self::Screen(pos2(x, y)), ->>>>>>> origin/next }) } diff --git a/crates/automation/tests/it/control.rs b/crates/automation/tests/it/control.rs index cc63b4050..739e155c9 100644 --- a/crates/automation/tests/it/control.rs +++ b/crates/automation/tests/it/control.rs @@ -123,7 +123,6 @@ fn an_unauthenticated_connection_is_closed_at_the_deadline_whatever_it_sends() { assert!(rx.try_recv().is_err(), "nothing was dispatched"); } -<<<<<<< HEAD /// Whether the server closed the connection: the next read is the end of the stream, not a timeout or an error. fn is_closed(reader: &mut impl BufRead) -> bool { let mut line = String::new(); @@ -186,7 +185,8 @@ fn a_refused_first_frame_closes_the_connection() { assert!(is_closed(&mut reader), "{first}: the connection is closed, the second guess unanswered"); } assert!(rx.try_recv().is_err(), "nothing was dispatched"); -======= +} + /// A web page can reach loopback: a browser `POST` whose body is a valid `auth` line is refused at its request line /// and the connection closed, so neither the body's `auth` nor a request after it reaches the app. #[trial] @@ -212,7 +212,6 @@ fn a_browser_post_never_reaches_the_app() { }; assert!(closed, "the connection closes after the refusal, answering nothing more: {rest:?}"); assert!(rx.recv_timeout(Duration::from_millis(300)).is_err(), "nothing reached the app"); ->>>>>>> origin/next } /// A request line over `MAX_REQUEST_BYTES` without a newline gets an error reply and the connection is closed. diff --git a/crates/automation/tests/it/main.rs b/crates/automation/tests/it/main.rs index 1f41748d2..1637690af 100644 --- a/crates/automation/tests/it/main.rs +++ b/crates/automation/tests/it/main.rs @@ -2,21 +2,12 @@ // Unwrapping, expecting and panicking on failure is fine in tests, unlike in shipped code. #![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] -<<<<<<< HEAD -mod access; -mod actions; -mod agents; -mod control; -mod dialogs; -mod dock; -mod files; -mod screenshot; -mod synthetic; -======= +pub(crate) mod access; pub(crate) mod actions; pub(crate) mod agents; pub(crate) mod control; pub(crate) mod dialogs; +pub(crate) mod dock; +pub(crate) mod files; pub(crate) mod screenshot; pub(crate) mod synthetic; ->>>>>>> origin/next diff --git a/crates/behavior/src/hit.rs b/crates/behavior/src/hit.rs index 1b9d5a0f2..033d02fdf 100644 --- a/crates/behavior/src/hit.rs +++ b/crates/behavior/src/hit.rs @@ -419,7 +419,6 @@ mod tests { } #[test] -<<<<<<< HEAD fn stacked_parts_of_one_priority_rank_by_their_order_before_the_nearest_centre() { let at = pos2(50.0, 50.0); let owner = |shapes: &[Shape]| resolve(shapes, at, ResolveFor::Press).map(|w| w.owner); @@ -428,7 +427,9 @@ mod tests { assert_eq!(owner(&[far(), near()]), Some(1), "unstacked, the nearer centre wins"); assert_eq!(owner(&[far().stacking(1), near()]), Some(2), "the higher stacking order wins though the press is nearer the other's centre"); assert_eq!(owner(&[near().stacking(1), far().stacking(1)]), Some(1), "one order: the nearest centre decides"); -======= + } + + #[test] fn a_polyline_hits_within_its_own_reach_and_a_bad_reach_is_a_lines() { let points = vec![pos2(0.0, 0.0), pos2(100.0, 0.0)]; let line = HitShape::polyline(points.clone(), false); @@ -440,6 +441,5 @@ mod tests { for bad in [f32::NAN, f32::INFINITY, -1.0] { assert_eq!(HitShape::polyline_within(points.clone(), false, bad), line); } ->>>>>>> origin/next } } diff --git a/crates/behavior/src/keys.rs b/crates/behavior/src/keys.rs index fadb1dba6..c7fbcc40f 100644 --- a/crates/behavior/src/keys.rs +++ b/crates/behavior/src/keys.rs @@ -19,11 +19,7 @@ pub enum ReorderKeys { } /// What the focused stop is, as far as the table's rows differ. -<<<<<<< HEAD -#[derive(Clone, Copy, Debug)] -======= -#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] ->>>>>>> origin/next +#[derive(Clone, Copy, Debug, PartialEq, Eq)] #[non_exhaustive] pub struct KeyRole { /// A value control with a reset value and no text part: Delete resets it. diff --git a/crates/behavior/src/overlay.rs b/crates/behavior/src/overlay.rs index db7e86707..0765e3d97 100644 --- a/crates/behavior/src/overlay.rs +++ b/crates/behavior/src/overlay.rs @@ -291,7 +291,6 @@ mod tests { } #[test] -<<<<<<< HEAD fn an_overlay_with_no_room_on_its_side_opens_on_the_other() { let size = Vec2::new(200.0, 80.0); let low = rect(300.0, 540.0, 100.0, 30.0); @@ -303,7 +302,9 @@ mod tests { let placed = place(&PlaceRequest::new(high, size, BOUNDS).side(Side::Below).gap(4.0)); assert_eq!(placed.side, Side::Below, "room below: {placed:?}"); assert!(placed.rect.top() >= high.bottom(), "below the anchor: {placed:?}"); -======= + } + + #[test] fn a_menu_that_covers_its_anchor_and_fits_neither_side_keeps_its_height_and_slides_over_the_anchor() { let point = rect(300.0, 400.0, 0.0, 0.0); let request = PlaceRequest::new(point, Vec2::new(200.0, 450.0), BOUNDS).covers_anchor(true); @@ -315,7 +316,6 @@ mod tests { assert!(above.side == Side::Above && above.rect.bottom() == point.top(), "fits above: opens above the point: {above:?}"); let without = place(&request.covers_anchor(false)); assert!(without.side == Side::Above && without.rect.height() < 450.0, "without it: capped to the larger side: {without:?}"); ->>>>>>> origin/next } #[test] diff --git a/crates/behavior/src/press.rs b/crates/behavior/src/press.rs index f153efc7b..cf4f8fb23 100644 --- a/crates/behavior/src/press.rs +++ b/crates/behavior/src/press.rs @@ -525,7 +525,6 @@ struct Open { dragging: bool, /// Moved past slop on a target that senses no drag: the click is gone and nothing starts. abandoned: bool, -<<<<<<< HEAD /// Moved past slop in this pass on a target that clicks and passes its drag (`Sense::PASSES_DRAG`), with the /// pointer at the pass's end: no click and no drag until [`PressMachine::hand_over`] gives the press its new /// target. The next pass abandons a press no shape took. @@ -533,13 +532,11 @@ struct Open { /// A press passed to this target ([`PressPick::passed`]) whose drag has not started: it reports nothing, and a /// release or cancel ends it unreported. Its move past slop starts the drag with `DragStart`, as a hand-over does. silent: bool, -======= /// The pointer left the window ([`PointerEvent::Gone`]): the click is gone, but a target that senses a drag still /// starts it from the moves that follow. The button is still down and the window keeps getting the pointer's moves /// and release while it is outside, so a press near a window edge (a window's resize grip) that leaves the window /// before it passes slop still drags. left: bool, ->>>>>>> origin/next /// A pass reported the press: later passes within slop report `Held`, not `Down`. reported: bool, /// A pass reported the drag's start: later passes report `Drag`. @@ -558,11 +555,7 @@ impl Open { /// A release now is a click. fn clicks(&self) -> bool { -<<<<<<< HEAD - !self.dragging && !self.abandoned && self.passing.is_none() && self.sense.contains(Sense::CLICK) -======= - !self.dragging && !self.abandoned && !self.left && self.sense.contains(Sense::CLICK) ->>>>>>> origin/next + !self.dragging && !self.abandoned && !self.left && self.passing.is_none() && self.sense.contains(Sense::CLICK) } } @@ -700,7 +693,6 @@ impl PressMachine { let sense = if capture_only && !clicks { pick.sense - Sense::CLICK } else { pick.sense }; (pick, sense, clicks) }) -<<<<<<< HEAD .filter(|(_, sense, clicks)| match button { PointerButton::Primary => true, PointerButton::Middle => *clicks || sense.contains(Sense::DRAG), @@ -715,26 +707,13 @@ impl PressMachine { start: PressStart::new(at, button, time, clicks), dragging: false, abandoned: false, + left: false, passing: None, silent, reported: silent, drag_reported: false, released_at: None, } -======= - .filter(|(_, sense, clicks)| !capture_only || *clicks || sense.contains(Sense::DRAG)) - .map(|(target, sense, _)| (target, sense)) - .map(|(target, sense)| Open { - target, - sense, - start: PressStart::new(at, button, time, clicks), - dragging: false, - abandoned: false, - left: false, - reported: false, - drag_reported: false, - released_at: None, ->>>>>>> origin/next }); } PointerEvent::Released { button, pos: at } => { diff --git a/crates/color-ui/src/ui/paint_chip.rs b/crates/color-ui/src/ui/paint_chip.rs index 936839a73..a26c70b45 100644 --- a/crates/color-ui/src/ui/paint_chip.rs +++ b/crates/color-ui/src/ui/paint_chip.rs @@ -469,12 +469,7 @@ impl Component for PaintChip<'_> { let solid = cx.memory::().0.unwrap_or(self.fallback); let current = FillKind::of(&paint); let sampled = self.sampled; -<<<<<<< HEAD - let swatch_words = cx.words::(); let recent = self.recent; -======= - let recent_cells: Vec<(Label, Srgba)> = self.recent.iter().map(|color| (Label::from(color.to_hex()), *color)).collect(); ->>>>>>> origin/next let full_picker = self.full_picker; let cmyk = self.cmyk.unwrap_or_else(|| CmykConverter::coated()); let solid_now = if let Paint::Solid(color) = &paint { Some(*color) } else { None }; diff --git a/crates/font-manager/src/picker.rs b/crates/font-manager/src/picker.rs index 8a7141da0..0a362275c 100644 --- a/crates/font-manager/src/picker.rs +++ b/crates/font-manager/src/picker.rs @@ -18,19 +18,12 @@ use craft_host::Section; use craft_theme::variant::Tone; use craft_ui::buttons::{ControlPlace, IconButton}; use craft_ui::contract::{ -<<<<<<< HEAD Access, Bind, Common, Component, Cx, Edit as _, EditResponse, Focus as _, Input, MeasureCx, Outcome, OverlayUi, Overlays as _, PaintUi, PartsCx, - Pointer as _, Props as _, Remember as _, Role, WordSetCx as _, -}; -use craft_ui::fonts::FontRef; -use craft_ui::list::{ThumbSize, TrailingPart}; -======= - Bind, Common, Component, Cx, Edit as _, EditResponse, Focus as _, Input, MeasureCx, Outcome, OverlayUi, Overlays as _, PaintUi, PartsCx, Pointer as _, Props as _, Remember as _, Role, Styled as _, WordSetCx as _, }; use craft_ui::controls::disclosure::DisclosureGlyph; +use craft_ui::fonts::FontRef; use craft_ui::list::{ListRow, ThumbSize}; ->>>>>>> origin/next use craft_ui::primitives::{IconSpec, TextKey, TextOptions, TextRun}; use craft_ui::runtime::env::{EnvView, Label}; use craft_ui::runtime::memory::StageAccess; @@ -416,13 +409,10 @@ pub struct FontPickerOutput { /// of the open list (Photoshop previews on hover). It ends when the pointer leaves the rows, the list closes /// (Escape, a press outside) or a row is picked. The field's value and text stay. pub preview: Preview, -<<<<<<< HEAD - /// The key of the host face or action row run in this pass; a host pick does not write the `family` binding. - pub host_picked: Option, -======= /// The index of the action row picked, in the `actions` the host gave. pub action: Option, ->>>>>>> origin/next + /// The key of the host face or action row run in this pass; a host pick does not write the `family` binding. + pub host_picked: Option, } impl Outcome for FontPickerOutput { @@ -461,13 +451,10 @@ fn text_key() -> TextKey { struct FamilyCodec { infos: Arc, language: String, -<<<<<<< HEAD - /// The name of the host row shown as the field's value, which stands in for the family's name. - host: Option, -======= /// A typed name that is no installed family is a value too (Word's font box applies it as typed). free: bool, ->>>>>>> origin/next + /// The name of the host row shown as the field's value, which stands in for the family's name. + host: Option, } impl FamilyCodec { @@ -611,15 +598,6 @@ pub struct FontPicker<'a> { /// Families the host can fetch but that are not installed, listed with the served mark. #[prop] served: &'a [String], -<<<<<<< HEAD - /// Host groups listed above the catalogue families, in order, with a separator between groups. - #[prop] - host: &'a [HostFontGroup<'a>], - /// The key of the host row shown as the field's value. - #[prop] - current_host: Option, - host_picked: Option, -======= /// How the list is laid out: the library picker, or Word's plain font box. #[prop] kind: FontPickerKind, @@ -633,7 +611,13 @@ pub struct FontPicker<'a> { #[prop] advice: MissingAdvice, action: Option, ->>>>>>> origin/next + /// Host groups listed above the catalogue families, in order, with a separator between groups. + #[prop] + host: &'a [HostFontGroup<'a>], + /// The key of the host row shown as the field's value. + #[prop] + current_host: Option, + host_picked: Option, } impl<'a> FontPicker<'a> { @@ -651,17 +635,14 @@ impl<'a> FontPicker<'a> { preview: Preview::Unchanged, preview_text: None, served: &[], -<<<<<<< HEAD - host: &[], - current_host: None, - host_picked: None, -======= kind: FontPickerKind::default(), actions: &[], shown_as: None, advice: MissingAdvice::default(), action: None, ->>>>>>> origin/next + host: &[], + current_host: None, + host_picked: None, } .label(label) .enabled(catalog.is_ready()) @@ -678,14 +659,11 @@ impl<'a> FontPicker<'a> { all } -<<<<<<< HEAD - fn codec(&self, env: &EnvView<'_>) -> FamilyCodec { - FamilyCodec { infos: infos(self.catalog), language: ui_language(env), host: self.host_name() } -======= /// The note for `family` when it is shown in another face because the catalog lacks it, by the rule the Missing - /// Fonts dialog uses: the missing-font sentence, then the advice the host chose. + /// Fonts dialog uses: the missing-font sentence, then the advice the host chose. A host row shown as the value + /// has none. fn missing_note(&self, family: &str, words: &MissingFontsWords) -> Option