-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(share resume): arial this is system font, and cannot be loaded via google #2239
base: main
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughThe changes introduce a new function named Changes
Sequence Diagram(s)sequenceDiagram
participant Page as ArtboardPage
participant Loader as webfontloader.load
participant Event as pageLoadedEvent
participant Window as Browser Window
Page->>Loader: Initiate font load
Loader->>Event: On active callback
Event->>Window: Post message with document dimensions
alt Font string contains "Arial"
Page->>Event: Conditional call for "Arial"
Event->>Window: Post message with document dimensions
end
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Fix for this issue #2214 |
PR Description
Issue
Arial cannot be loaded via Google Fonts (google: { families: ["Arial"] }) because it's a system font, not a web font hosted by Google. Google Fonts only provides web fonts that can be dynamically loaded from their servers, and Arial is a pre-installed system font available on most operating systems (Windows, macOS, Linux).
Summary by CodeRabbit
This update refines how the application handles page load detection, ensuring a more consistent and reliable user experience without altering visible features.