Commit Graph
4335 Commits
Author SHA1 Message Date
aiongg 92e4b97eac font-store: name macOS copies by family, recheck before publishing, drop gone system files
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.
2026-11-25 01:43:38 +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 097ff7c22d font-manager: copy installed families to the OS fonts folder, with a Craft-apps-only setting
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.
2026-11-25 01:35:00 +00:00
aiongg 7c0723a685 font-store: split the OS-copy withdrawal test's ledger checks into a helper 2026-11-25 01:26:32 +00:00
aiongg 3ad66c236a Merge upstream/main into os-install
Main's font crates (preview service, index 1.2) replace the branch's copies of those PRs; the branch keeps only the copies in the OS user font folder.
2026-11-25 01:20:34 +00:00
aiongg fab457094a Merge pull request #3394 from aiongg/ci-profile-main
CI: test builds pass the dev-profile overrides; nightly also runs the full tests on next
2026-11-24 15:09:58 -05:00
aiongg 5ddd943b63 CI: test builds pass the dev-profile overrides; nightly also runs the full tests on next
- 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.
2026-11-24 19:59:26 +00:00
aiongg 4987698e8a Merge pull request #3387 from aiongg/ci-fast-main
CI: pull requests gate on the Linux Workspace legs; macOS and Windows run after the merge
2026-11-24 14:37:51 -05:00
aiongg b8a434fa58 CI: CRW sample files are saved once, not once per pull request
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.
2026-11-24 19:34:53 +00:00
aiongg 192a1e6faa CI: pull requests gate on the Linux Workspace legs; macOS and Windows run after the merge
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.
2026-11-24 19:30:58 +00:00
FredApps 249a41bd93 craft-develop: make the sensor clip mask public for callers that demosaic themselves (#3178)
* craft-develop: make the sensor clip mask public for callers that demosaic themselves

* craft-develop: reject clip-mask dimensions whose product overflows
2026-11-23 10:21:26 -05:00
Dylan M. Taylor a3fca17079 Share typed AAF linked audio descriptors (#3180) 2026-11-23 09:30:13 -05: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
FredApps 15cd58bbb5 Merge pull request #3162 from storytold/fix/3161-android-res-value-budgets
android-res: bound retained values and report UTF-8 recovery omissions
2026-11-23 10:14:17 +01:00
FredApps 042dccd075 android-res: bound retained values and report UTF-8 recovery omissions 2026-11-23 09:39:20 +01: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
FredApps cdee9b8ab6 Merge pull request #3152 from FredApps/fix/3151-android-res-partial-table
android-res: mark the table partial when ARSC chunks or entries are skipped
2026-11-23 11:19:06 +07:00
FredApps a1be794fec android-res: mark the table partial when library records are omitted
Library records past their chunk or beyond the 256-record cap are not
read, so the table is partial.

Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-23 11:07:32 +07:00
FredApps f6b339e020 android-res: mark the table partial when a string pool or value is unreadable
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>
2026-11-23 04:54:08 +01:00
FredApps fff4a3b020 Merge branch 'main' into fix/3151-android-res-partial-table
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-23 04:53:08 +01:00
p0rps b2d2a1e948 develop: expose Camera Raw Detail's resolved parameters (#3097) (#3101)
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.
2026-11-22 22:47:52 -05:00
FredApps f812d2f59c android-res: report skipped entries when the entry limit stops a type
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>
2026-11-23 04:43:36 +01:00
FredApps b012adb0f0 android-res: mark the table partial when ARSC chunks or entries are skipped
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>
2026-11-23 04:33:04 +01:00
FredApps 205042e406 Merge pull request #3136 from FredApps/fix/778-form-self-draw-not-truncated
hayro-interpret: a form that draws itself is not content-truncated
2026-11-23 09:52:04 +07:00
FredApps c6452d95ee ci: allow excluded vendor trees in the unreached-rs check
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.
2026-11-23 08:59:12 +07:00
FredApps d69bdaf0b3 style: drop rustfmt churn on the rest of context.rs
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.
2026-11-23 08:52:26 +07:00
FredApps 9fcd7ea22d hayro-interpret: a form that draws itself is not content-truncated
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.
2026-11-23 08:51:58 +07:00
FredApps b9c7b69703 Merge pull request #3077 from storytold/feat/778-shared-android-resources
Share APK and Android resource readers for Craft Anything desktop
2026-11-23 07:48:57 +07:00
FredApps 8f4506133c Merge branch 'main' into feat/778-shared-android-resources 2026-11-23 06:55:12 +07:00
FredApps 8f6ad14b58 Merge pull request #3073 from ruchirguitar/feat/pict-reader
craft-metafile: add QuickDraw PICT v1/v2 reader
2026-11-23 06:54:50 +07:00
FredApps 6d8d6b7359 Merge branch 'main' into feat/778-shared-android-resources 2026-11-23 06:47:13 +07:00
FredApps b54e18f21d Merge branch 'main' into feat/pict-reader 2026-11-23 06:47:08 +07:00
FredApps 2be967ec51 Merge pull request #3042 from AlexChambers/develop-wb-demosaic-clip-mask
craft-develop: demosaic white-balanced mosaics with a clip mask
2026-11-23 06:46:46 +07:00
FredApps 931d648681 Merge branch 'main' into feat/pict-reader
# Conflicts:
#	crates/metafile/src/lib.rs
2026-11-23 06:37:07 +07:00
FredApps e8c7fc2b23 Merge branch 'main' into feat/778-shared-android-resources 2026-11-23 06:36:29 +07:00
FredApps bc0b26c460 Merge branch 'main' into develop-wb-demosaic-clip-mask 2026-11-23 06:36:24 +07:00
FredApps c6edabc220 Merge pull request #2825 from so-sai/feat/metafile-embedded-emf
craft-metafile: reassemble embedded EMF from WMF META_ESCAPE_ENHANCED_METAFILE (#2519)
2026-11-23 06:35:57 +07:00
FredApps 9cf333733f Merge branch 'main' into feat/778-shared-android-resources 2026-11-23 06:25:27 +07:00
FredApps 3b87adcf34 Merge branch 'main' into feat/pict-reader 2026-11-23 06:25:22 +07:00
FredApps f89862b8a5 Merge branch 'main' into feat/metafile-embedded-emf 2026-11-23 06:25:17 +07:00
FredApps 5dee4157bf Merge branch 'main' into develop-wb-demosaic-clip-mask 2026-11-23 06:25:11 +07:00
FredApps 369eb60baa Merge pull request #3059 from dotCooCoo/feat/cdr-preview
craft-cdr: read the picture a .cdr file keeps of its drawing
2026-11-23 06:24:49 +07:00
Alex Chambers d143c8013c craft-develop: retain same-colour clipping dependencies 2026-11-23 00:21:53 +01:00
FredApps 77807fd1be craft-metafile: keep the outer file's decode budget for a nested PICT
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.
2026-11-23 05:58:16 +07:00
FredApps e82ff5b8e0 Merge branch 'main' into feat/778-shared-android-resources 2026-11-23 05:54:27 +07:00
FredApps 5153451938 Merge branch 'main' into feat/pict-reader 2026-11-23 05:54:22 +07:00
FredApps 01e08770ef Merge branch 'main' into feat/metafile-embedded-emf 2026-11-23 05:54:17 +07:00
FredApps 3dbaa278d9 Merge branch 'main' into develop-wb-demosaic-clip-mask 2026-11-23 05:54:11 +07:00
FredApps 32e944076d Merge branch 'main' into feat/cdr-preview 2026-11-23 05:54:05 +07:00
Dylan M. TaylorandDylanMTaylor 33be35625e develop: wrap negative Camera Raw hue turns (#3089)
Co-authored-by: DylanMTaylor <10594816+dylanmtaylor@users.noreply.github.com>
2026-11-22 15:45:42 -05:00