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-hosted fonts in the assets repo should use webfonts #2143

Open
1 task done
Yrlish opened this issue Dec 22, 2024 · 2 comments
Open
1 task done

Self-hosted fonts in the assets repo should use webfonts #2143

Yrlish opened this issue Dec 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Yrlish
Copy link

Yrlish commented Dec 22, 2024

Checklist

Is your feature request related to a problem? Please describe

Right now there exists ttf files in the assets repo for fonts, it should use webfonts instead.

Describe the solution you'd like

Add these npm packages:

https://fontsource.org/fonts/source-sans-pro
https://fontsource.org/fonts/lato

instead of this folder:

https://github.com/cotes2020/chirpy-static-assets/tree/main/fonts

Describe alternatives you've considered

No response

Additional context

No response

@Yrlish Yrlish added the enhancement New feature or request label Dec 22, 2024
@cotes2020
Copy link
Owner

Don't understand what you're trying to express.

@Yrlish
Copy link
Author

Yrlish commented Jan 12, 2025

I'm sorry, I was very tired when I made the ticket. Here is why I think the TTF-files should be replaced by web fonts, which should have been in the ticket from the start.

The current fonts in the assets repository are in the TrueType Font (TTF) format, which is an older standard primarily used for operating systems and desktop applications. To enhance the web experience for people visisting, these should be replaced with web fonts in the WOFF2 format.

WOFF2 files are specifically optimized for the web, offering advantages such as compression that results in smaller file sizes. This optimization not only improves loading times but also contributes to a better user experience and enhanced SEO performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants