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

Support font optimization in Google Fonts and Google Icons #80

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sushichan044
Copy link

@sushichan044 sushichan044 commented Dec 18, 2024

This PR adds a glyphs option for specifying characters and icons to fetch.

Users can resolve minimized fonts by using the glyphs option in Google Fonts and Google Icons.

@sushichan044 sushichan044 marked this pull request as ready for review December 18, 2024 09:32
})

// Do not use sanitizeFontSource here, as we must test the url parameters
expect(fonts).toMatchInlineSnapshot(`
Copy link
Author

Choose a reason for hiding this comment

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

Since the URL parameters were the only way to verify that the correctly optimized fonts were resolved, I did a snapshot test.

@sushichan044 sushichan044 force-pushed the feat/issue-61-font-optimization branch from 5583eac to 59a38e8 Compare December 18, 2024 14:54
@sushichan044
Copy link
Author

sushichan044 commented Dec 18, 2024

Because of the different endpoints, using the glyphs option while fetching Material Icons with Google Icons Provider is temporarily unsupported.
I need to do more investigations and make another PR to resolve it.

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

Successfully merging this pull request may close these issues.

Support for font size optimization options
1 participant