Skip to content

latin-ext subset for google fonts #1630

@meande

Description

@meande

In Czech we use characters like "ščřž..." that are not embeded in standard "latin" subset in google fonts.

So if I use Open Sans font in my headlines and elementor only embeds "latin" subset, all of the "ščřž..." characters are replaced with system sans-serif font and it looks ugly.

There are already cyrillic, hebrew, greek and vietnamese subsets in print_google_fonts() function in includes/frontend.php. Is it possible to add one more line 'cs_CZ' => 'latin-ext', to the $subsets array, so it looks like this?

$subsets = [
'ru_RU' => 'cyrillic',
'bg_BG' => 'cyrillic',
'he_IL' => 'hebrew',
'el' => 'greek',
'vi' => 'vietnamese',
'uk' => 'cyrillic',
'cs_CZ' => 'latin-ext',
];

Metadata

Metadata

Assignees

No one assigned

    Labels

    request/enhancementIndicates an Enhancement Request for an existing feature.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions