Commit Graph
748 Commits
Author SHA1 Message Date
BFlat a2b85eedf9 Merge pull request #2011 from dotCooCoo/feat/craft-ease
Add craft-ease: easing curves, keyed tracks, motion paths and springs
2026-11-26 10:30:01 +07:00
BFlat b5c33cddef Merge pull request #2880 from dotCooCoo/feat/craft-pbr-wgsl
craft-pbr: shading functions as WGSL text for apps' shaders
2026-11-26 10:28:51 +07:00
BFlat e1c27c729f Merge pull request #2643 from dotCooCoo/fix/control-shared-line-reader
craft-control: the server reads request lines with craft-control-protocol's bounded reader
2026-11-26 10:27:26 +07:00
BFlat e62520469a Merge pull request #2850 from dotCooCoo/feat/craft-pbr-prefilter
craft-pbr: GGX environment prefilter and SH9 irradiance for TextureCraft and MaterialCraft
2026-11-26 10:13:47 +07:00
BFlat 1fadcaf943 Merge pull request #2745 from dotCooCoo/fix/zip-advisory
craft-ai: update candle to 0.11.1 so zip 7.4.0 leaves the lockfile
2026-11-26 10:11:47 +07:00
BFlat 273186cb47 Merge pull request #2709 from dotCooCoo/feat/image-codecs-display-srgb
image-codecs: convert an image's ICC or CICP colors for display
2026-11-26 10:11:11 +07:00
BFlat 78398f0948 Merge pull request #2705 from dotCooCoo/feat/media-source-decoded-frame
craft-media-source: compositor_frame turns a decoded picture into a compositor frame
2026-11-26 10:10:57 +07:00
BFlat bcca85f9ad Merge pull request #2701 from dotCooCoo/feat/i18n-build-catalogs
i18n-build: embed the craft-i18n catalogs from an app's build.rs
2026-11-26 10:10:42 +07:00
BFlat 6c80a41b62 Merge pull request #1419 from dotCooCoo/feat/craft-xtask-stats
craft-xtask: count Rust files, lines and tests per crate without following links
2026-11-26 10:09:02 +07:00
BFlat f5e7296eff Merge pull request #1373 from dotCooCoo/feat/craft-testkit-guards
craft-testkit: add source guards for muda's Quit item, WGSL float literals and std Instant
2026-11-26 10:07:49 +07:00
BFlat b2809398fd Merge pull request #1370 from dotCooCoo/chore/craft-ods-test-support-gate
craft-ods: build the testing module only for tests and the test-support feature
2026-11-26 10:07:34 +07:00
dotCooCoo ee04041849 Testkit: point the lockfile's rustix entry at 1.1.6
The merge of main took main's rustix 1.1.6 package entry but left
craft-testkit's dependency line naming rustix 1.1.5, which no longer
exists in Cargo.lock. Every job that builds with --locked then stopped
because Cargo had to rewrite the lockfile.
2026-11-25 16:39:37 -08:00
dotCooCoo dc2e7e8a54 Merge main into feat/craft-testkit-guards 2026-11-25 15:09:52 -08:00
dotCooCoo 295d2c7c4b Merge main into feat/media-source-decoded-frame 2026-11-25 14:33:55 -08:00
Elvis33LE 2b7d18f1fb deps: migrate craft-image-codecs to jpeg-encoder 0.7.1 2026-11-25 22:35:17 +01:00
aiongg 8fa4db64a9 egui: the fork's head, b9770908e (a dropdown whose text is cut off shows it in a tooltip) 2026-11-25 19:11:46 +00:00
aiongg 036526d425 Merge remote-tracking branch 'upstream/main' into next-sync-1125
# Conflicts:
#	.config/cargo-ci.toml
#	.config/cargo-dev.toml
#	.github/workflows/crw.yml
#	.github/workflows/workspace.yml
#	crates/font-catalog/README.md
#	crates/font-catalog/src/catalog.rs
#	crates/font-catalog/src/lib.rs
#	crates/font-manager/README.md
#	crates/font-manager/src/panel/app.rs
#	crates/font-manager/src/panel/browse.rs
#	crates/font-manager/src/panel/details.rs
#	crates/font-manager/src/panel/jobs.rs
#	crates/font-manager/src/panel/widgets.rs
#	crates/font-manager/src/store.rs
#	crates/font-manager/tests/flows.rs
#	crates/font-store/README.md
#	crates/font-store/src/lib.rs
#	crates/font-store/src/store.rs
#	crates/font-store/src/tests.rs
#	scripts/ci-workspace-tests.sh
#	scripts/test-workspace-tests.py
2026-11-25 13:05:50 +00:00
aiongg 9b818faae7 Merge pull request #3413 from aiongg/dock-gaps-2
Tab order, IME fence and start-up crash fixes from EffectCraft's minimal port
2026-11-24 23:12:20 -05:00
aiongg f244e6212b Pin egui to storytold/egui next (b15ffe9bf), which now carries the IME reset, arrow cover, multi-pass texture and focus candidate commits 2026-11-25 03:39:37 +00:00
aiongg d103fc5ea5 Pin egui to aiongg/egui ime-pending-reset (b15ffe9bf) 2026-11-25 02:15:03 +00:00
aiongg 3a567445fe Merge remote-tracking branch 'upstream/next' into test-speed-3 2026-11-25 01:55:58 +00:00
aiongg 07dff4f8c0 font-store: make families available to all apps on Windows
Copies go to %LOCALAPPDATA%\Microsoft\Windows\Fonts\Craft\<family>, are listed as
per-user font values under HKCU\...\CurrentVersion\Fonts, loaded with AddFontResourceW,
and announced with WM_FONTCHANGE. The ledger records each registry value, so withdrawal
unloads the font, deletes the value and then the file. Windows 10 1809 and later,
unpackaged builds only.

The Win32 calls live in the new crate craft-font-os-windows, the one crate in crates/
allowed unsafe (named in AGENTS.md): it copies the workspace lints with
unsafe_code = "deny" and allows unsafe only on the functions that call Win32.
2026-11-25 01:40:04 +00:00
aiongg d402a1d71b Gate-sized cases for slow non-UI tests; full sizes and every case nightly
Boundary tests set by a production constant check a small limit through a
private seam that takes it (b64 decode, drawingml table normalize, openpgp
verify), with the real constant nightly; captions and jbig2 check their
full-size boundaries nightly. Sweeps run every divisor-th case at the gate
(develop balanced highlights and thin line, jpeg low-memory tokens, png
streamed rows, mxf extreme fields, pdf crypt proptests), the fax bomb guard
page is wider and shorter, the resample bound pulls a shorter block, the nef
measured frames are read through probe_info, and local tone compares 64 and
256 pixels.
2026-11-25 01:32:48 +00:00
aiongg 62816d0e3d Merge storytold next into dock-gaps-2
next carries dock-gaps (#3383), whose IME commit a0b1c35a8f is the same change as
this branch's 8c2cd95de3, and Skylar's focus and text-field work.

Conflicts:
- runtime/ime.rs, runtime/egui/ime.rs, testing/host_key_trials.rs: next's only
  change to these files is a0b1c35a8f, which this branch already holds and has
  replaced with the fence built on egui's pending_ime_reset (a3a58be575). This
  branch's side is kept. a0b1c35a8f's trial stays in its adapted form
  (an_app_editor_s_own_reset_at_the_press_reaches_it_and_it_composes_again, run
  with the reset in the output and through egui alone).
- runtime/egui/fixture.rs: ResettingEditor and host_resetting_ime_editor keep
  this branch's form (in_output, ask, a press inside the editor's rect). next's
  root focus fact in run_frame (ea6febd719) merged cleanly.
- runtime/focus.rs: State keeps candidates_seen and takes next's
  surrender_after_scopes and surrender_deferred; tab_to_egui stays removed. The
  end hook takes the app's egui widgets first, then runs next's deferred and
  after-scopes surrenders; next's block that surrendered a component widget
  egui's Tab focused goes with the removed egui-Tab path.

No code in next calls host_stop or the removed egui-Tab path.
2026-11-25 01:06:16 +00:00
aiongg 1f14633b74 Pin egui to aiongg/egui ime-pending-reset (f678ecb71): Memory lists the pass's focus candidates and reports the focused widget's event filter 2026-11-25 00:36:38 +00:00
aiongg 9ea549874c Pin egui to aiongg/egui ime-pending-reset (c7a2f6af5): texture deltas of a multi-pass run and of every viewport reach the shared renderer in order 2026-11-25 00:12:07 +00:00
aiongg b0a11ffc74 Cargo.lock: craft-testkit dev-dependency of craft-material-graph 2026-11-24 22:41:18 +00:00
aiongg ddbb7e6a4d Pin egui to aiongg/egui ime-pending-reset (bbfd6471e): pending_ime_reset and covered-widget arrow focus 2026-11-24 22:33:51 +00:00
aiongg 7a41f79026 tests: heif damage sweep runs the divisor's fraction 2026-11-24 22:31:46 +00:00
aiongg d1b4304952 tests: xcf, mime and crw sweeps run the divisor's fraction 2026-11-24 22:31:29 +00:00
aiongg 73ea1f1e34 tests: ps number sample walks the divisor's fraction 2026-11-24 22:30:45 +00:00
aiongg e976deb569 Merge remote-tracking branch 'upstream/next' into test-speed-1124 2026-11-24 20:21:09 +00:00
aiongg 9ed45cb202 Cargo.lock: craft-testkit dev-dependencies 2026-11-24 20:11:28 +00:00
aiongg 56e0824f2c Merge remote-tracking branch 'upstream/next' into test-speed-1124 2026-11-24 20:00:50 +00:00
aiongg d56ee32e1e ui-contract suite: sample repeated parts and node sets under the gate fraction
Under CRAFT_HOSTILE_DIVISOR above 1 the cases that build a fixture per repeated
part or per declared node action check the first, middle and last member of each
set; the nightly run checks every member. each_part_activates_once reads the
paths a part has from the settled base fixture, the hit-area case skips parts the
base shows no pressable piece of, and access_focus_focuses skips stories with no
enabled Focus node, all before building a fixture.
2026-11-24 19:55:30 +00:00
aiongg 6c7bb625a2 Merge storytold next into egui-pin-accesskit 2026-11-24 19:48:29 +00:00
aiongg 30770cf864 Merge pull request #3300 from aiongg/next-sync-1124
Merge storytold main into next (24 Nov sync)
2026-11-24 14:48:09 -05:00
aiongg 42598245fc egui: storytold/egui next a87d00caa (an open ComboBox menu grows back after its list shrinks, egui#5225) 2026-11-24 18:25:08 +00:00
aiongg 32dcf265b4 Move egui to storytold/egui next 7520646e5c: AccessKit for every viewport window (storytold/egui#58) 2026-11-24 15:13:09 +00:00
aiongg 5bf2d9cb4e font-store: the preview service's client moves here from font-manager as preview (no view code: subset keys, the disk cache, the fetch pool); the pool reads the store through PreviewStore, which font-manager's Installer builds on; Instance, Subset, PreviewError and Preview are non-exhaustive 2026-11-24 14:59:40 +00:00
David MannandClaude Opus 5.5 9b897a57a5 Full-window dialogs keep their title clear of the window buttons; Liquify labels its View Options choices (photocraft#16658, photocraft#16659)
- `WindowHost::lights_room`: the room the macOS traffic lights take over the content (inset frame, not in full screen).
- `FullWindowDialog`'s title row starts after that room where the header lies under it, as the shell's title bar does.
- Liquify's `Rows::choose` shows each select in a `Field`, so Mesh Size, Use and Mode are drawn beside their selects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:29:27 +01:00
aiongg 2476d07bdd Merge remote-tracking branch 'upstream/main' into next-sync-1124
# Conflicts:
#	.github/workflows/workspace.yml
#	Cargo.lock
#	crates/font-manager/Cargo.toml
#	crates/font-manager/README.md
#	crates/font-manager/src/lib.rs
#	crates/font-manager/src/panel/app.rs
#	crates/font-manager/src/panel/browse.rs
#	crates/font-manager/src/panel/details.rs
#	crates/font-manager/src/panel/faces.rs
#	crates/font-manager/src/panel/mod.rs
#	crates/font-manager/src/store.rs
#	crates/font-manager/tests/flows.rs
#	crates/font-store/src/language_packs.rs
#	crates/font-store/src/lib.rs
#	crates/font-store/src/store.rs
#	crates/font-store/src/tests.rs
2026-11-24 05:26:41 +00:00
Dylan M. Taylor b138b533fe Merge remote-tracking branch 'upstream/next' into pr-2809-merge
# Conflicts:
#	crates/automation/Cargo.toml
#	crates/automation/src/access.rs
#	crates/automation/src/synthetic.rs
#	crates/automation/tests/it/access.rs
#	crates/automation/tests/it/synthetic.rs
#	crates/behavior/src/codec.rs
#	crates/behavior/src/edit_history.rs
#	crates/behavior/src/lib.rs
#	crates/behavior/src/wheel.rs
#	crates/color-ui/src/ui/paint_chip.rs
#	crates/color-ui/src/ui/pair.rs
#	crates/color-ui/src/ui/palette.rs
#	crates/color-ui/src/ui/palette/stories.rs
#	crates/dialogs/src/service.rs
#	crates/draw/src/ui/transform/transform_box.rs
#	crates/draw/src/ui/transform/transform_box/stories.rs
#	crates/draw/tests/it/transform_box.rs
#	crates/font-manager/src/glyphs.rs
#	crates/font-manager/src/picker.rs
#	crates/font-manager/src/picker/rank.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/font-manager/src/picker/stories.rs
#	crates/font-manager/tests/it/picker.rs
#	crates/host/src/lib.rs
#	crates/menu/src/context.rs
#	crates/menu/src/mac.rs
#	crates/menu/src/model.rs
#	crates/pages/src/ui/view.rs
#	crates/platform/README.md
#	crates/platform/src/browser_files.rs
#	crates/print/src/ui/dialog.rs
#	crates/print/src/ui/mod.rs
#	crates/print/src/ui/panel.rs
#	crates/print/src/ui/stories.rs
#	crates/print/tests/it/dialog.rs
#	crates/text/src/ui/character.rs
#	crates/text/src/ui/character/rows.rs
#	crates/text/src/ui/editor.rs
#	crates/text/tests/it/editor.rs
#	crates/text/tests/it/main.rs
#	crates/ui-canvas/src/canvas/mod.rs
#	crates/ui-canvas/src/canvas/split/stories.rs
#	crates/ui-canvas/src/canvas/tool_host.rs
#	crates/ui-canvas/src/canvas_controls/outline/mod.rs
#	crates/ui-canvas/src/canvas_controls/task_bar.rs
#	crates/ui-canvas/src/canvas_controls/task_bar/stories.rs
#	crates/ui-canvas/tests/it/canvas/navigate.rs
#	crates/ui-canvas/tests/it/canvas/tool_keys.rs
#	crates/ui-canvas/tests/it/canvas_controls/task_bar.rs
#	crates/ui-contract/src/contract/collection/props.rs
#	crates/ui-contract/src/contract/cx/pointer.rs
#	crates/ui-contract/src/contract/items/access.rs
#	crates/ui-contract/src/contract/items/drag.rs
#	crates/ui-contract/src/contract/items/lead.rs
#	crates/ui-contract/src/contract/label.rs
#	crates/ui-contract/src/contract/mod.rs
#	crates/ui-contract/src/contract/run.rs
#	crates/ui-contract/src/contract/steps/report.rs
#	crates/ui-contract/src/contract/steps/update.rs
#	crates/ui-contract/src/primitives/mod.rs
#	crates/ui-contract/src/primitives/sensing.rs
#	crates/ui-contract/src/primitives/text_adapter.rs
#	crates/ui-contract/src/primitives/text_input.rs
#	crates/ui-contract/src/runtime/access/emit.rs
#	crates/ui-contract/src/runtime/access/text.rs
#	crates/ui-contract/src/runtime/commands/board.rs
#	crates/ui-contract/src/runtime/commands/mod.rs
#	crates/ui-contract/src/runtime/drag.rs
#	crates/ui-contract/src/runtime/egui/access.rs
#	crates/ui-contract/src/runtime/egui/access/tree.rs
#	crates/ui-contract/src/runtime/egui/input.rs
#	crates/ui-contract/src/runtime/env.rs
#	crates/ui-contract/src/runtime/focus/nav.rs
#	crates/ui-contract/src/runtime/frame.rs
#	crates/ui-contract/src/runtime/keys.rs
#	crates/ui-contract/src/runtime/keys/claims.rs
#	crates/ui-contract/src/runtime/keys/input.rs
#	crates/ui-contract/src/runtime/keys/route.rs
#	crates/ui-contract/src/runtime/pointer.rs
#	crates/ui-contract/src/runtime/windows.rs
#	crates/ui-contract/src/testing/fixture.rs
#	crates/ui-contract/src/testing/host_key_trials.rs
#	crates/ui-contract/tests/it/collection/rows.rs
#	crates/ui-contract/tests/it/drag/mod.rs
#	crates/ui-contract/tests/it/runtime/wheel.rs
#	crates/ui-macros/src/props.rs
#	crates/ui-panels/src/dialog/mod.rs
#	crates/ui-panels/src/dialog/prompts.rs
#	crates/ui-panels/src/dialog/recovery.rs
#	crates/ui-panels/src/dialog/trials.rs
#	crates/ui-panels/src/dialog/words.rs
#	crates/ui-panels/src/rails/drawer.rs
#	crates/ui-panels/src/rails/drawer/stories.rs
#	crates/ui-panels/src/rails/tool/trials.rs
#	crates/ui-panels/src/sections/footer.rs
#	crates/ui-panels/tests/it/rails/drawer.rs
#	crates/ui-patterns/src/patterns/dock/area.rs
#	crates/ui-patterns/src/patterns/form_dialogs/about.rs
#	crates/ui-patterns/src/patterns/form_dialogs/dialog.rs
#	crates/ui-patterns/src/patterns/form_dialogs/dialog/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/host_requests.rs
#	crates/ui-patterns/src/patterns/form_dialogs/mod.rs
#	crates/ui-patterns/src/patterns/form_dialogs/param.rs
#	crates/ui-patterns/src/patterns/form_dialogs/properties.rs
#	crates/ui-patterns/src/patterns/form_dialogs/properties/stories.rs
#	crates/ui-patterns/src/patterns/form_dialogs/rows.rs
#	crates/ui-patterns/src/patterns/form_dialogs/rows/stories.rs
#	crates/ui-patterns/src/patterns/panels/history.rs
#	crates/ui-patterns/src/patterns/preferences/document/model.rs
#	crates/ui-patterns/src/patterns/preferences/model.rs
#	crates/ui-patterns/src/patterns/preferences/page.rs
#	crates/ui-patterns/src/patterns/preferences/rows.rs
#	crates/ui-patterns/src/patterns/preferences/window.rs
#	crates/ui-patterns/src/patterns/preferences/window/stories.rs
#	crates/ui-patterns/src/patterns/presets/browser.rs
#	crates/ui-patterns/tests/it/docking/group_view.rs
#	crates/ui-patterns/tests/it/form_dialogs/dialog.rs
#	crates/ui-patterns/tests/it/form_dialogs/params.rs
#	crates/ui-patterns/tests/it/preferences/model.rs
#	crates/ui-shell/src/shell/start.rs
#	crates/ui-shell/src/shell/start/stories.rs
#	crates/ui-widgets/src/buttons/icon_button.rs
#	crates/ui-widgets/src/buttons/mod.rs
#	crates/ui-widgets/src/buttons/stories.rs
#	crates/ui-widgets/src/choice/swatch.rs
#	crates/ui-widgets/src/choice/swatch_table.rs
#	crates/ui-widgets/src/display/text.rs
#	crates/ui-widgets/src/form/slider_field.rs
#	crates/ui-widgets/src/layout_components/mod.rs
#	crates/ui-widgets/src/list/mod.rs
#	crates/ui-widgets/src/list/row/paint.rs
#	crates/ui-widgets/src/list/row/show.rs
#	crates/ui-widgets/src/list/stories.rs
#	crates/ui-widgets/src/list/view.rs
#	crates/ui-widgets/src/list/view_stories.rs
#	crates/ui-widgets/src/menu/mod.rs
#	crates/ui-widgets/src/menu/stories.rs
#	crates/ui-widgets/src/pickers/select.rs
#	crates/ui-widgets/src/tabs/document.rs
#	crates/ui-widgets/src/text/number.rs
#	crates/ui-widgets/src/text/zoom_field.rs
#	crates/ui-widgets/src/tile_grid/grid.rs
#	crates/ui-widgets/src/tile_grid/grid/stories.rs
#	crates/ui-widgets/src/tile_grid/mod.rs
#	crates/ui-widgets/tests/it/label/tooltip.rs
#	crates/ui-widgets/tests/it/popover/popup.rs
#	crates/ui-widgets/tests/it/tabs.rs
#	crates/ui-widgets/tests/it/text/mod.rs
#	crates/ui-widgets/tests/it/text/number.rs
#	crates/ui-widgets/tests/it/tile_grid/grid.rs
#	crates/window/Cargo.toml
#	docs/components-index.md
#	docs/porting.md
2026-11-23 19:01:32 -05:00
Dylan M. TaylorandClaude 7c0ae3e639 fw sync: merge craft-libs next e3ca63165 (149 commits) into pdf-port/sync
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>
2026-11-23 12:54:08 -05:00
bflatastic 6fdb4265ab Merge remote-tracking branch 'origin/next' into sync/delta11 2026-11-23 21:28:41 +07:00
Valentin Klein c3155aad96 Share the material graph runtime and WGSL pixel compiler (#3109)
* Extract the material graph runtime from TextureCraft

Preserve its evaluator, compiler, existing verification, and format reference from TextureCraft #777 at 22a37c29.

Original TextureCraft importer author: xilefenko (TextureCraft #521).

* Adapt graph helpers to the shared workspace lints

Preserve node evaluation and version tracking while splitting long dispatch branches. Update the EXR doctest and rule table references for the shared crate.

* Read the format reference with LF endings in its test

* Test that the format reference example reads the same with CRLF line endings

* Make the kind versions follow module attributes, arm order, raw strings, includes and the epoch

* Fix graph cache keys, publish, import and subgraph extraction; harden the graph tests

* Keep the cubic sampler from panicking on NaN texels; say what RGBE drops; check NaN halves by their bits

* Lower vector inputs of f_to_bool and f_vec to valid WGSL; tighten the FX-map error and pattern coverage tests; document clamping and the splatter data cutoff

* Say which composite glyph placements the font reader lacks; fail the y-up text test on a blank render

* Leave publish as it was; unit-test the WGSL vector lowering; document EPOCH and keep_outputs results

* Satisfy clippy in the version scanner and the WGSL lowering; compare cache hits by relation
2026-11-23 08:55:49 -05:00
aiongg 52d8e207df feature-root: ask epaint_default_fonts for the monochrome emoji faces
craft-ui-contract's tests ask for them as a dev-dependency (their font oracle),
which gave cl test ui-contract its own epaint_default_fonts and so its own
egui and framework build. The feature only adds two byte constants; egui's emoji
fallback is epaint's own feature and stays off.
2026-11-23 10:54:18 +00:00
bflatastic 0a4d309686 Merge remote-tracking branch 'origin/next' into sync/next
# Conflicts:
#	Cargo.toml
#	crates/font-manager/src/picker/rank.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/ui-panels/src/docking/group.rs
#	crates/ui-panels/src/docking/iconic/trials.rs
#	crates/ui-patterns/src/patterns/dock/area.rs
#	crates/ui-widgets/src/choice/mod.rs
#	crates/ui-widgets/src/choice/swatch.rs
#	crates/ui-widgets/src/choice/swatch/stories.rs
#	docs/contract-api.md
2026-11-23 13:53:35 +07:00
aiongg eeb5b26198 font-manager: previews from the font preview service; font-store downloads through it (#2782)
* font-store: index format 1.2 and the preview service as a download mirror

Reads index format 1.2 and pins craft-font-index 995ef20. An optional font
preview service (CRAFT_FONT_PREVIEW_URL, else the preview_service setting)
serves installs and licence texts by sha256 before the index's URLs; a
service that fails on the network is skipped for a minute, per origin, by
every clone of the client. Settings gain the previews switch.

* font-manager: previews from the font preview service

A preview client (remote.rs) fetches WOFF2 subsets of each face from the
service on its own worker threads, highest priority first, with a shared
disk cache. The Browse list shows each family in its own face; the detail
view shows variable faces with their axes and named instances, and the
family's licence and NOTICE texts. Without a service, or with previews
switched off, the panel works as before.

* font-store: a host default for the preview service

FontStore::with_default_preview_service (and SuiteStore's) names the
service used while neither CRAFT_FONT_PREVIEW_URL nor the user's setting
names one. It is never written to settings.json, so clearing the setting
brings it back and other apps sharing the store don't see it.
PreviewServiceSource gains Default.

* font-manager: box the installed face in a card's Face, so the enum stays small on Windows

* font-store: a host default for the network setting

FontStore::with_default_network (and SuiteStore's) gives the setting the
host uses while the user hasn't chosen. settings.json saves network only
once the user chooses, and never the host's default; an agent's store
ignores it. Files from before could hold "off" without a choice, and that
"off" still counts as the user's.

* font-store: per-source samples in merges, mirror only for curated families, an unreadable settings file fails closed

Index::merge keeps each source's own sample map, so a source left out as a
duplicate brings no samples, also from inside an index merged before.

Installs and legal_text ask the preview service only for curated families:
it holds only the built-in sources' files, and asking for a user source's
file would send it the file's hash.

A missing settings.json is no choice, so the host's defaults apply. One that
exists but can't be read, is too large or doesn't parse reads as network off
and no preview service, not even the host's default; a write over it starts
from those values.

* font-manager: review fixes for the preview service

- Preview is offered for a family whose subsets failed, in its card and its
  details sheet.
- Licence and NOTICE texts are kept by the file's sha256 too, so a refreshed
  index never shows the old text.
- Axis sliders keep only the user's edits; an untouched axis follows the
  subset's default. The readout shows up to two decimals.
- The detail view asks for the sample subset also when the typed text has
  too many characters for a request of its own.
- The typing pause is measured after the toolbar has handled input.
- A failed subset schedules a repaint for its retry.
- DiskCache::contains asks the folder, so a file another app cached later is
  found.
- Installer docs name the host's default preview service.
- The fake service in the flow tests drops a request cancelled while held.

* Fonts panel: notice when the preview server can't be reached; opt-in sans-serif and system-language default filters
2026-11-23 01:32:41 -05:00
Dylan M. Taylor 308478fe00 fw sync: restore platform's appearance and browser features; resolve Cargo.lock 2026-11-22 23:14:53 -05:00