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

perf: Use text parameter to fonts API #136

Merged
merged 6 commits into from
Sep 14, 2022
Merged

perf: Use text parameter to fonts API #136

merged 6 commits into from
Sep 14, 2022

Conversation

DenverCoder1
Copy link
Owner

Summary

Fixes #135

Use text parameter to the Google Fonts API for more efficiently fetching fonts and reducing rendered SVG by approximately 95%.

Since the fetch efficiency is increased, the database is no longer needed as it does not make retrieving the font faster in most cases.

Type of change

  • Bug fix (added a non-breaking change which fixes an issue)
  • New feature (added a non-breaking change which adds functionality)
  • Updated documentation (updated the readme, templates, or other repo files)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

  • Ran tests with composer test
  • Added or updated test cases to test new features

@DenverCoder1 DenverCoder1 added the enhancement New feature or request label Sep 13, 2022
@DenverCoder1 DenverCoder1 merged commit ded7b7b into main Sep 14, 2022
@DenverCoder1 DenverCoder1 deleted the font-text branch September 14, 2022 18:13
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

Successfully merging this pull request may close these issues.

Use Google Fonts' "text" parameter to limit the font characters to fetch
1 participant