Flat-layout copies are named Craft-<family folder>-<file>, so two families with the
same file name don't collide. A Present entry whose system file is gone is dropped by
settle and shows as pending. copy_in publishes through a hard link (no replace) and
rechecks the destination first; a file another app put there is a conflict. Ledger
copies count as the store's in the conflict check only while unchanged. A no-op
install reshares, and withdraw finds families the ledger alone still lists.
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.
Each install through the font manager also makes the family available to
all apps, unless the new "Keep fonts in Craft apps only" setting (in the
font store's settings.json, off by default) is on. Toggling the setting
runs as a worker job that withdraws every OS copy or copies every
installed family. The family details show one status line: available to
all apps, kept in Craft apps only, refused because of a conflict (naming
the file), or not supported here.
The macOS and Windows legs cache dependencies only, but their entries were named by the hash of
every profile override, workspace crates' included. next's cargo-ci.toml and cargo-dev.toml set
other workspace-crate levels than main's, so next's pushes never found main's entries and built
every dependency from source (Windows 40-52 minutes, macOS 29-36, against 10-15 with an entry).
`deps-profile` hashes `[profile.dev]` and `[profile.dev.package."*"]` of both files; every other
override names a workspace crate (test_profile_overrides_name_only_workspace_members). It is the
same on main, next and #3405 today. The Linux leg, which keeps workspace crates, keeps the full hash.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- scripts/ci-workspace-tests.sh holds every Workspace test step (the same script as on next;
main's legs use its `run` step).
- Every test build passes .config/cargo-dev.toml (dependencies at opt-level 2, craft-proof at 1,
lto off) and .config/cargo-ci.toml (the numeric crates at opt-level 1). The Workspace legs'
cache entries are named after a hash of both files. Cargo.toml's profiles are unchanged.
- nightly.yml builds through the same script and also starts the full tests on next, where the
gate runs the same sweep fractions.
crw.yml saved the same 78 MB of sample files once per pull request (17 copies today, 1.3 GB of the
10 GB cache budget); pull requests now restore the branch entry and never save.
The macOS and Windows Workspace legs take 1.5-2 hours against the Linux leg's 15-40 minutes, and
every pull request waited for them. They now run on every push to main and on main's scheduled
runs; nightly.yml also starts a daily Workspace run on next. A pull request that needs them before
it merges gets the full-ci label.
* craft-develop: make the sensor clip mask public for callers that demosaic themselves
* craft-develop: reject clip-mask dimensions whose product overflows
* 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
* 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
A package or global string pool that is outside its payload or fails to
parse, and a simple entry whose value runs past its chunk, now set
Table::truncated as well, so names and values that were not read are
not taken for absent ones.
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
Detail's radii, regularisation and weights were resolved inside the
private detail(), and per_pixel() returned None whenever Detail was on,
so another implementation (PhotoCraft's GPU preview) could not run it
without copying that resolution.
- spatial::Detail::new(p, inputs) with LuminanceNoise, ColorNoise and
Sharpen; detail() now runs from a Detail. develop() is unchanged.
- PerPixel.detail; per_pixel() no longer refuses Detail (it still
refuses Calibration).
- spatial_tone(p): the spatial stages before Whites and Blacks. Detail
comes after them, so white_black_points() still measures when Detail
is the only spatial stage.
Stop the entry loop with break instead of return, so entries skipped
before the limit still get their warning.
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
Every path that drops a package, a type chunk or entries now sets
Table::truncated, and entries running past their chunk get a warning
instead of being skipped silently. Consumers use truncated to tell a
resource that is absent from one that was not read.
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
hayro-interpret is excluded from the workspace, so editing
vendor/hayro-interpret/src/context.rs failed the Linux lint leg's
diff-mode unreached-rs check. Those backends compile in
scripts/test-pdf-backends.sh, not as workspace members.
The first commit had run rustfmt with the workspace max_width on the
whole vendored file. This keeps only the patch 89 behaviour change and
the regression tests.
Patch 89 still skips a form already on the drawing stack (ISO 32000-2
§8.10.1). Reporting that skip as InterpreterWarning::ContentTruncated
made VectorCraft reject legitimate knockout-mask PDFs after the #2472
pin, because a soft mask may paint a form already being drawn. The skip
stays; the truncation flag does not.
Refs storytold/craft-libs#778.
A PICT inside another metafile now draws on that file's decode budget
instead of resetting it. The public PICT entry point still starts a
fresh budget.