mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #506] [MERGED] fix(client): normalize custom font family names #4646
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#4646
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/506
Author: @TheLonelyDevil9
Created: 5/7/2026
Status: ✅ Merged
Merged: 5/7/2026
Merged by: @TheLonelyDevil9
Base:
main← Head:fix/custom-font-family-quotes📝 Commits (1)
ed4d464fix(client): normalize custom font family names📊 Changes
1 file changed (+27 additions, -3 deletions)
View changed files
📝
packages/client/src/App.tsx(+27 -3)📄 Description
What?
Normalize custom font family names before registering browser
FontFaceobjects and before writing the--font-userCSS variable.Closes #501.
Why?
Custom fonts selected in Settings could be registered with embedded quote characters in the family name, such as
"Noto Sans"instead ofNoto Sans. That malformed family could interfere with matching custom theme@font-facerules for the same family and cause text to render at the wrong weight.How?
font-familyvalues.FontFaceconstructor.weight: "400"to match the regular font files Marinara serves from the font loader.Testing?
Ran locally:
Manual verification still needed before release:
document.fontswith an unquoted family name.@font-facerules for the same family still match their intended weights.--font-user.Screenshots (optional)
Not included. This is a font registration fix; visual verification should be done with the reporter's DevTools
document.fontscheck and a custom theme weight check.Anything Else?
This is intentionally scoped to the client-side font registration path. It does not change the server font file scanner or Google Fonts download route.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.