mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #729] [MERGED] Fix CJK Google font shard loading #4750
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#4750
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/729
Author: @Xelvanis
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @Xelvanis
Base:
main← Head:fix/cjk-font-prompt-encoding📝 Commits (2)
7447536fix: preserve CJK Google font shardsb5d56a9fix: allow legacy Google font reinstalls📊 Changes
4 files changed (+418 additions, -81 deletions)
View changed files
📝
packages/client/src/App.tsx(+27 -11)📝
packages/client/src/components/panels/SettingsPanel.tsx(+23 -3)📝
packages/server/src/routes/fonts.routes.ts(+318 -67)➕
packages/server/test/fonts-routes.test.ts(+50 -0)📄 Description
Linked issue
No linked issue yet. This came from a user report that Chinese text did not receive the selected Google font even though the font family supports CJK glyphs.
Why this change
Users installing CJK Google fonts such as Noto Sans SC could see the font apply to Latin characters while Chinese characters fell back to another font. Google Fonts serves these families as unicode-range shards, but Marinara only kept a single downloaded file, so the CJK shards were missing.
What changed
@font-faceblock and preserve each shard's weight, style, and unicode range.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated/local commands run by Codex:
pnpm --filter @marinara-engine/server exec tsx --import ./test/setup-env.ts --test test/fonts-routes.test.tspnpm --filter @marinara-engine/server lintpnpm --filter @marinara-engine/client lintpnpm checkpnpm checkXel verified manual browser font install flow works as intended.
Docs and release impact
No docs or release files were changed.
Summary by CodeRabbit
New Features
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.