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

Self-Host Fonts #12351

Merged
merged 11 commits into from
May 20, 2024
Merged

Self-Host Fonts #12351

merged 11 commits into from
May 20, 2024

Conversation

robdivincenzo
Copy link
Collaborator

@robdivincenzo robdivincenzo commented May 17, 2024

Description

This PR will introduce self-hosted fonts rather than relying on google's font delivery service.

Link to sample test page: https://foundation-s-tp1-671-12-isi5mm.herokuapp.com
Related PRs/issues: TP1-671 #12348

To Test

  1. View the homepage. Fonts Nunito Sans and Zilla Slab should load from static files without regression.
  2. View the DearInternet page. Caveat font should also load from static files without regression (see names of on the love letters)
  3. View the YouTubeRegrets page. Fonts Changa should also load from static files without regression (see headline for example)

┆Issue is synchronized with this Jira Story

@robdivincenzo robdivincenzo changed the title Self Host Fonts [WIP] Self Host Fonts May 17, 2024
@robdivincenzo robdivincenzo temporarily deployed to foundation-s-tp1-671-12-isi5mm May 17, 2024 20:32 Inactive
@robdivincenzo robdivincenzo changed the title [WIP] Self Host Fonts Self-Host Fonts May 17, 2024
Copy link
Collaborator

@mmmavis mmmavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thanks @robdivincenzo ! I didn't realize this many files would be affected until I saw your PR 😅

As a follow-up discussion, I wonder if we want to move fonts related bits out of the SCSS/SASS ecosystem to improve our build time. It's very unlikely that we wanna modify those font files (we probably shouldn't anyway). If we can convert the font .scss files into .css and just include them as is, it will shorten the watch/build cycle during development. SCSS does take very looooong to compile and that is that one thing I dislike about SCSS. I will file a new ticket to discuss about this.

@robdivincenzo
Copy link
Collaborator Author

robdivincenzo commented May 20, 2024

Thanks @mmmavis! I agree with you and prefer it being a non-compiling CSS file. Didn't see any directory where we're doing that currently, but I don't see why we can't start! I've split this off into TP1-685 / #12362 so that we can merge this in / unblock main now

@robdivincenzo robdivincenzo merged commit 68acfb6 into main May 20, 2024
7 checks passed
@mmmavis
Copy link
Collaborator

mmmavis commented May 21, 2024

@robdivincenzo Awesome. Thank you!

@data-sync-user
Copy link
Collaborator

➤ Simon Acosta Torres commented:

PR has already been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants