Open FunkyCss opened 2 months ago
@FunkyCss Thanks for the report. I think there's definitely a way we can tighten this up and I'm sorry for the inconvenience there.
That said, I'm pleased to report that you have 2 immediate options to get around this problem:
<?php
apply_filters( 'generatepress_google_font_subsets', function () {
return array( 'latin', 'greek' ); // Customize this to whatever subsets you want
}, 15 );
The setting is currently set as an array so it shouldn't necessarily break anything or the UI, but let me know if you have any issues going that direction.
I hope this helps, let me know if you have any questions while we work on updating that control to allow choosing multiple subsets.
@iansvo Hallo, and thanks for checking this issue.
The filter that you shared is working for now and I have done a couple of test and no issues there.
Glad to report this, keep rocking!
Issue Description: When I select a specific subset, such as "Greek," the font works correctly for Greek characters but does not display English (Latin) characters as expected. It seems that when a non-Latin subset is selected, the corresponding Latin characters are not loaded, which leads to fallback fonts being used for English text.
Expected Behavior: Ideally, when selecting a subset like "Greek," the system should still load the necessary Latin characters unless explicitly excluded. This would ensure that the font displays correctly for both Greek and English text, without requiring manual intervention or additional font loading.
Steps to Reproduce:
Suggested Solution: When a user selects a subset, the system should either:
This change would improve the user experience and ensure that fonts are rendered correctly across different languages on the site.
Please let me know if you need any further details to investigate this issue.