mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2112] [Issue]: Restore Google Fonts download safety parity #1033
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1033
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2112
Originally assigned to: @Promansis on GitHub.
Summary
Target 4 catalog media edge parityscan found a font-file parity gap on
refactor: custom fonts are listed, served, registered, and downloadable, but Google Fonts downloads lost legacy safety behavior around concurrent requests, CSS endpoint fallback, and atomic replacement.Expected behavior
The refactor branch should preserve the legacy Google Fonts safeguards from
main:Actual behavior
Current refactor core font behavior exists, but the download path directly fetches the CSS2 endpoint and writes downloaded
.woff2files plus metadata without the legacy concurrent-download guard, legacy endpoint fallback, or atomic replace/rollback flow.Steps to reproduce
main:packages/server/src/routes/fonts.routes.tswithrefactor:src-tauri/src/commands/storage/fonts.rs.downloadingFonts,loadGoogleFontFaces, andreplaceManagedGoogleFontFiles.download_google_font,fetch_google_font_faces, and directfs::write/ metadata writes.Impact area
Environment
refactor, parityscan on 2026-06-04Logs, screenshots, or video
No app logs or screenshots. Static parity evidence:
main:packages/server/src/routes/fonts.routes.tssrc-tauri/src/commands/storage/fonts.rssrc/shared/api/settings-assets-api.ts,src/app/App.tsxVerification from parityscan:
cargo test --manifest-path src-tauri/Cargo.toml fontmatched 0 tests.Regression notes
Worked better on
main: legacy haddownloadingFonts, CSS2 plus legacy CSS probing, and atomic managed-file replacement with rollback. Refactor has the core workflow but not these safety edges.Additional context
This is not a request for new font features. It is a parity gap from target 4 media/assets scanning. Restore the legacy safety behavior in the Rust/Tauri font owner without broadening feature-level raw Tauri calls.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: