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 for custom Google Fonts baseUrl #40

Closed
qwerzl opened this issue Mar 7, 2024 · 5 comments
Closed

Support for custom Google Fonts baseUrl #40

qwerzl opened this issue Mar 7, 2024 · 5 comments
Labels
enhancement New feature or request provider

Comments

@qwerzl
Copy link
Collaborator

qwerzl commented Mar 7, 2024

It would be nice to offer to customize baseUrl for Google Fonts provider in the config. My use case is that there's a high latency to Google Fonts in China, so many of us use mirrors.

@danielroe danielroe added the enhancement New feature or request label Mar 7, 2024
@danielroe
Copy link
Member

Would you give me an example of such a mirror? We fetch from two locations at the moment:

@qwerzl
Copy link
Collaborator Author

qwerzl commented Mar 7, 2024

Sure, here's an example: https://mirror.sjtu.edu.cn/docs/google-fonts. They are mainly in Chinese.

However, as I've investigated more, looks like all the mirrors only provide reverse proxy to fonts.googleapis.com, but what really causes the connection issue is the request to fonts.google.com. So the only solution to the problem is to use the local provider.

@qwerzl
Copy link
Collaborator Author

qwerzl commented Mar 7, 2024

I'm going to close this issue, very sorry for the confusion made.

@qwerzl qwerzl closed this as completed Mar 7, 2024
@danielroe
Copy link
Member

For what it's worth, you could just set google: false and use bunny, which I think supports the same fonts as Google?

@qwerzl
Copy link
Collaborator Author

qwerzl commented Mar 8, 2024

That's also a good idea. I'll try it.

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

No branches or pull requests

2 participants