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

Proposal for Replacing the Current Static Hosting of Space Mono Font #661

Open
lovelxc opened this issue Feb 18, 2025 · 3 comments
Open

Comments

@lovelxc
Copy link

lovelxc commented Feb 18, 2025

It's recommended to replace the current static hosting of Space Mono font on https://pwn.college/ with the @fontsource/space-mono npm package, which enables CDN acceleration and simplifies version management

@ConnorNelson
Copy link
Member

Can you create a draft PR that accomplishes this? I'm not sure I understand how we would do this; we aren't currently using npm (I don't think?).

@lovelxc
Copy link
Author

lovelxc commented Feb 19, 2025

Can you create a draft PR that accomplishes this? I'm not sure I understand how we would do this; we aren't currently using npm (I don't think?).

Actually, you can just use URL to load font files. BTW in practice, WOFF or WOFF2 font formats are commonly used for web applications, rather than TTF.

See the bellow website to check:
https://www.jsdelivr.com/package/npm/@fontsource-variable/space-grotesk?tab=files
https://www.jsdelivr.com/package/npm/@fontsource/space-mono?tab=files

@lovelxc
Copy link
Author

lovelxc commented Feb 19, 2025

Generally speaking, switching to the WOFF format won't affect the display, but it's up to u. You can continue using TTF if you prefer, but I couldn't find a CDN hosting SpaceGrotesk-VariableFont_wght.ttf.

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

No branches or pull requests

2 participants