Site logo

Archived topic

Cirillic fonts does not work

6 replies · Started by Anatoliy on December 6, 2014

Viewing posts 1–7 of 7

Hello.
There is a problem with changing fonts. For example, the font Open Sans supports both Latin and Cyrillic (google), but does not work in Cyrillic and so with all other other fonts. Tell me how to fix and why not work?

And even.
How to add to the theme of my fonts, not google?

Hi there,

At this time, there's no filter to change and allow the subset to be changed.

I just went into my code and made this possible using a filter. If you'd like to use a Google Fonts and need this subset, email me at support@generatepress.com and I'll send you the updated files :)

Once you have the updated files (or for others reading this once 1.2.4 is released), you can change the subset with this function:

add_filter('generate_fonts_subset','generate_change_fonts_subset');
function generate_change_fonts_subset()
{
	return 'cyrillic-ext';
}

Note: This won't work until GP 1.2.4 is released.

To add your own fonts, you can use @font-face in your CSS.

More info here: http://css-tricks.com/snippets/css/using-font-face/

I need to wait for a new version of the theme (1.2.4) and everything will work fine?
add_filter (where (in what file) need to make changes?)

That's correct - unless you want to email me and I can patch your current files so they'll work right now.

Are you using GP Premium or the Typography add-on?

That filter would need to go in your child theme's functions.php file or you can add it using a plugin like this: https://wordpress.org/plugins/code-snippets/

Hi, Tom.
1. Can't understand what happened, but why it is in the child theme ceased to connect the font instead of the font that I choose, (connects the system font), how to fix it? (yesterday everything worked fine).
p.s.
In the original theme everything works

2. Another strange thing, the plug-in, which was connected Cyrillic fonts for the theme "Code Snippets", now the theme GP works without him and fonts connects not using this plugin, where is the catch?

Hi there,

Are you still running into these issues?

In the latest version of GP (1.2.4) - the function above will work to change the Google Fonts subset.

Let me know :)

This archived topic is closed to new replies.