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

fix: broken fonts and more optimisations #351

Merged

Conversation

Sagar-Kap
Copy link
Collaborator

@Sagar-Kap Sagar-Kap commented Feb 17, 2024

This PR will fix the Poppins font's format in the assets directory. Fixing this format fixes the font in the viewport (#350) , the solution is based on this Stack Overflow thread.
Before:
Screenshot 2024-02-17 071228

After:
image

@Sagar-Kap Sagar-Kap added the bug Something isn't working label Feb 17, 2024
@Sagar-Kap Sagar-Kap requested a review from Jarmos-san February 17, 2024 05:52
@Sagar-Kap Sagar-Kap self-assigned this Feb 17, 2024
@Sagar-Kap Sagar-Kap linked an issue Feb 17, 2024 that may be closed by this pull request
1 task
@Jarmos-san Jarmos-san changed the title fix: font's format fixed to truetype fix: broken fonts and more optimisations Feb 18, 2024
Copy link
Owner

@Jarmos-san Jarmos-san left a comment

Choose a reason for hiding this comment

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

Thanks for providing the fix, I had totally missed it before! Btw if you can, could you also change the font files from .ttf to a more optimised and recommended .woff2 file format?

@Sagar-Kap
Copy link
Collaborator Author

Thanks for providing the fix, I had totally missed it before! Btw if you can, could you also change the font files from .ttf to a more optimised and recommended .woff2 file format?

Fontsource library is being used now for fonts so the concern about optimization will be taken care of by the npm library.

Sagar-Kap

This comment was marked as off-topic.

@Sagar-Kap Sagar-Kap requested a review from Jarmos-san February 19, 2024 09:32
@Jarmos-san Jarmos-san merged commit f282db1 into main Feb 19, 2024
@Jarmos-san Jarmos-san deleted the 350-bug-poppins-font-not-rendering-properly-on-the-view-port branch February 19, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Poppins font not rendering properly on the view port
2 participants