Skip to content
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

refactor: load dynamic fonts #442

Merged
merged 9 commits into from
Apr 16, 2023

Conversation

LuciNyan
Copy link
Contributor

@LuciNyan LuciNyan commented Apr 12, 2023

Description

This PR implements a new method for dynamically loading font files. When graphemes are detected through regular expressions as potentially originating from multiple languages, the specific language for which to load the font file is identified through the Google Fonts CSS unicode-range.

Closes: #367

@vercel
Copy link

vercel bot commented Apr 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
satori-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2023 3:24pm

@LuciNyan LuciNyan changed the title chore: temp [WIP] chore: temp Apr 12, 2023
@LuciNyan LuciNyan changed the title [WIP] chore: temp [WIP] refactor: load dynamic fonts Apr 13, 2023
@LuciNyan LuciNyan changed the title [WIP] refactor: load dynamic fonts refactor: load dynamic fonts Apr 14, 2023
@LuciNyan LuciNyan marked this pull request as ready for review April 15, 2023 15:26
@LuciNyan LuciNyan requested a review from shuding as a code owner April 15, 2023 15:26
@shuding shuding merged commit 61dfc3b into vercel:main Apr 16, 2023
@shuding
Copy link
Member

shuding commented Apr 16, 2023

Thanks!

@github-actions
Copy link

🎉 This PR is included in version 0.4.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

@LuciNyan LuciNyan deleted the refactor-load-dynamic-fonts branch April 17, 2023 01:50
sahithyandev pushed a commit to sahithyandev/satori that referenced this pull request Apr 26, 2024
Hi! @shuding I have encountered a minor issue. After successfully
retrieving the necessary font files on the backend server, I am simply
uncertain about the optimal method for transmitting them back to the
front end in a single response while also specifying the language for
each file. Would you be able to provide me with some guidance on this
matter? 🤔️

Closes: vercel#367

---------

Co-authored-by: Shu Ding <g@shud.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider a new way to load dynamic fonts
2 participants