Skip to main content

Add Latin-Extended capabilities for a Google font

If you have a Google font that includes Latin Extended characters, you can add that capability to your Lime Editor layouts.

Add the following filter to the functions.php file of your child theme and replace the font name in Line 2 with the name of your Google font family.

function my_font_subset($subset, $name) {
if ($name == "Acme") {
$subset = "&subset=latin,latin-ext";
}
return $subset;
}
add_filter("fl_font_subset", "my_font_subset", 10, 2);
info

Not all Google fonts have Latin-extended characters, so make sure the Google font you choose has them.