- Guides and the rulers' strips and corner sense CONTEXT_CLICK, so a right-click opens their menu instead of reaching the tool host (the press machine gives a secondary press only to CONTEXT_CLICK shapes since 21e77e2b58).
- TransformBox::own_context_menu: the caller hangs a context menu on the box, and every part takes the right-click. TransformOverlay sets it for the whole-box reach, where it opens the mode menu.
- NumberField: a percent field's one-decimal default yields to the caller's fixed or maximum decimals, and shows none with commit_decimals(0) ("10%").
- FontPicker: a selection of several families leaves the family field empty, on screen and in its accessible value, as the reference applications do.
Conflicts resolved (upstream's design and defaults win; the port's opt-ins stay):
- ui-contract fonts: upstream's served-faces provider, catalog job queue and byte budget;
the port's FaceBytes::chain (Word subset siblings, F-8) re-done on the provider: a served
face lists its served chain faces before the interface faces, a sibling landing after its
owner remakes egui's fonts once, drawing a face marks its chain drawn. The port's chain
trial moves onto upstream's rig, plus a late-sibling trial.
- text editor HostCx follows FacesCx's job-based document_face and document_face_bytes.
- ui-widgets Swatch: upstream's SwatchFill (split, spectrum, image, empty) with the port's
Swatch::optional / SwatchFace::optional (new SwatchFill::None, the "no colour" diagonal)
and Swatch::icon (glyph on the empty well) on top; both word sets kept.
- draw PaintBar: upstream's MixerLoad fill.
- font-manager: upstream's sample band; host rows (port) use it too.
- ui-panels / ui-patterns dock grips: upstream's drag_origin and named slack.
- platform clipboard tests: both trials kept.
Co-Authored-By: Claude <noreply@anthropic.com>
* Font samples sit on one baseline in a fixed band, shrunk only where their ink would leave it
A font sample was as high as its face's line (ascent, descent and line gap, the gap
below the baseline as egui lays it out) and centred in its rect, so faces with a taller
or bottom-heavy line sat higher in the picker's rows, and a face whose line was taller
than the banner's band was centred past its edge and clipped.
One rule, faces::sample_line, now serves FontSample and the picker's banner: the sample
fills a fixed band, sits on the baseline of the interface face's line at its size
centred in the band, and is laid out at its size unless its ink (the galley's mesh
bounds) would cross the band's top or bottom, then at the largest size whose ink fits.
FontSample takes its band as an option; the picker's rows set it to the thumbnail side,
as the banner's band is the large thumbnail side, and the panels keep LINE_EM of the
sample's size.
Trials: rows follow a host text that arrives after the list opened, in a CJK face; and
samples in faces with different lines sit on one baseline with their ink inside their
bands, rows and banner. Story font_picker_cjk_sample_text over the repository's Noto
Sans CJK SC subset.
* font-manager: declare the CJK test font its picker trials and story read
* font-manager: FontSample::band as a derived prop
* Swatch: the image well's mesh takes the shared UNTINTED vertex colour
* font-catalog: app start helper, font store watch and the list of changed families
app::start sets the app's folders, scans on a background thread and polls the
font store's folders, so a family the launcher installs shows at once.
app::on_activated rescans on window activation. Catalog::changes_since names
the families added, removed and changed since a generation, and
Catalog::store_changed checks only the store's folders.
* font-manager: a click on a font row's sample picks its family
* font-manager: a press on a row keeps the list the typed name filtered
* Font picker: a row pick of the family the field already holds adds no edit
* font-catalog: a rescan that finds no changed file keeps the generation
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.
257 conflicted files staged with their conflict markers (630 hunks). The one
modify/delete, crates/ui-patterns/src/patterns/preferences/body.rs (deleted
upstream, modified by the port), keeps the port's file for its area to carry
into upstream's preferences/page.rs. Plan: landing/fw-sync-plan.md.
Opening the font list read and parsed every visible row's font file on the UI
thread, re-read a collection for each family it holds, rebuilt egui's whole
font set for each face added, and dropped off-screen faces after 64, so
scrolling back loaded them again.
- Document faces reach egui through one served-faces provider: egui parses a
face the first time text is laid out in it, so a face arriving keeps the
parsed faces, the atlas and the galley caches. Faces over the interface
fonts use the same provider; edit_faces' add path and
MAX_INTERFACE_FACE_BYTES go.
- Catalog faces load as jobs on a per-context JobQueue (the host's jobs) and
are ready from the pass after they land; loads no frame asks for are
dropped. Faces whose bytes the app holds register in the same pass.
- The registry keeps faces up to MAX_DOCUMENT_FACE_BYTES (512 MiB of distinct
file bytes), least recently drawn out first; past the same budget of
withdrawn files egui's fonts are made again to free them.
- The picker's coverage check reads the registry's loaded bytes instead of
the file; traits come from FaceInfo, which the scan now fills with
sFamilyClass, PANOSE and the post fixed-pitch flag.
- Catalog::file_bytes shares one read per file across threads.
dropdown_target hands the opener's list keys to the named collection only when
it registered a stop in the last pass, so a dropdown that shows no list (the
font picker with no matching family) leaves Enter with the field, which
commits the typed name. The font picker names its family list on every pass.
The trial covers the no-match case with the class column shown.
A dropdown's opener (a picker's field or button) hands Up, Down, Page keys,
Enter and Tab to a collection in its dropdown. The framework took the first
type-ahead collection it found in the layer. The font picker's dropdown holds
the class column before the family list, so with filters shown Enter and the
arrows went to the class column: typing a name and pressing Enter picked
nothing.
Overlay::list (FocusPolicy::list) names the collection instead, and every
dropdown names its list: Select, ComboBox, TreePicker, completions, number
presets, PopupList (new PopupList::list) and the font picker, which names its
family list while it shows one. The type-ahead guess is gone.
The banner drew the preview text in the current family even when its face lacks the
text's characters (tofu). It takes the rows' sample text, through the same
FamilyInfos::sample_text: the text, else the family's name, else its first glyphs.
Every row's sample shows the picker's sample text: the host's preview text, else the
sample word. The Arabic second sample and its script check are gone. A face that
lacks the text's characters keeps the existing fallback: its name, else its first
glyphs.
A sample, in a row, the banner or the panel, is laid out and drawn only in its own
face once it is ready. Until then (and for good when the face is unavailable or the
family has none, SampleFace::Missing) it keeps its band, LINE_EM of its size high,
and draws nothing, instead of laying the text out in the interface face, which may
lack its characters.
The Arabic story becomes font_picker_arabic_sample_text: an Arabic preview text over
a catalog with Noto Sans Arabic.
- FontPreviewBanner measures its name and sample, not the room: reporting the room sized the popup layer to the banner, so the rows under it took no pointer input.
- TreeLeaves::Aligned keeps an empty disclosure column on top-level leaves instead of adding an indent step, which the shrink rule gave up first. The picker aligns only lists that have a family to open, so a plain list keeps its names at the start. ListRow::leaves is a derived prop.
- A collection inside a row or grid takes no layer floor: the class column took the field's width beside the font list.
- The name column is as wide as NAME_SAMPLE, the rule the field's width follows; the list shows no column header; style rows stay in the name column and reserve the check column.
- Row samples are named "{name}: {sample}", as the font manager names its samples, so the row keeps the family's name to itself.
- The Arabic sample shows as an optional trailing field.
- FontPreviewBanner has stories; the open-list story shows the recent group, a family with styles and the class column.
Texture identities come from an owner-held Serials; the font picker's family data is a derived value keyed by the catalog generation; face file sizes are read at scan; the LUT scan lives in craft-cms and its rescan reads the stepped clock.
- RibbonGroup::open returns the content height it measured (the WIP left it unreturned).
- A ribbon's font box is a short field (size.length.short, FieldStyle::shortest), not the small
field length, which at the ribbon's small controls was the width it already had.
- Trials: ribbon buttons resolve the ghost look unless they ask for a variant; a ribbon combo box
fits its options; a ribbon font box is short and keeps its width; every open group's title sits
on one line; a 2:1 captioned gallery names its tiles under wide pictures.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>