-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[5/n] @next/font/google
: Port utilities for generating stylesheet urls
#2856
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Ignored Deployments
|
Current dependencies on/for this PR: This comment was auto-generated by Graphite. |
10ae16f
to
f815dd9
Compare
685c47f
to
6e09f52
Compare
f815dd9
to
1263828
Compare
@next/font/google
: Port utilities for generating stylesheet urls@next/font/google
: Port utilities for generating stylesheet urls
7ca5381
to
513e0ea
Compare
513e0ea
to
6e30f5d
Compare
6e09f52
to
6dc35c2
Compare
6e30f5d
to
98d622e
Compare
98d622e
to
db1b739
Compare
6dc35c2
to
9f147a3
Compare
db1b739
to
ca1e9dc
Compare
9f147a3
to
35435c3
Compare
98de4f5
to
00e9df7
Compare
Graphite Merge Job Current status: A downstack pull request blocked this pull request from being merged. This comment was auto-generated by Graphite. Job Reference: GTwTicpFoR97BYmAqnX0 |
ea3de66
to
b9d916c
Compare
00e9df7
to
05b7714
Compare
b9d916c
to
32b98b7
Compare
05b7714
to
9394851
Compare
32b98b7
to
e833889
Compare
9394851
to
2f4e4e1
Compare
Co-authored-by: Hannes Bornö <hannes.borno@vercel.com>
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2f4e4e1
to
3530d78
Compare
Benchmark for d7f79e0
Click to view full benchmark
|
|
…rls (vercel/turbo#2856) * Implement get_font_axes * Implement get_stylesheet_url * Handle font axes without wght Co-authored-by: Hannes Bornö <hannes.borno@vercel.com> * Implement extract_font_urls * Update crates/next-core/src/next_font_google/util.rs Co-authored-by: Justin Ridgewell <justin@ridgewell.name> * Remove extraction of fonts Co-authored-by: Hannes Bornö <hannes.borno@vercel.com> Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
…rls (vercel/turbo#2856) * Implement get_font_axes * Implement get_stylesheet_url * Handle font axes without wght Co-authored-by: Hannes Bornö <hannes.borno@vercel.com> * Implement extract_font_urls * Update crates/next-core/src/next_font_google/util.rs Co-authored-by: Justin Ridgewell <justin@ridgewell.name> * Remove extraction of fonts Co-authored-by: Hannes Bornö <hannes.borno@vercel.com> Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
In order to generate urls to stylesheets, this ports over logic from the upstream JavaScript implementation, namely
getFontAxes
0, which generates a font axes structure from the user's request and font data, andgetUrl
1, which generates a url to a Google fonts stylesheet from the user's request and the font axes structure.Test Plan: