• Hello!

    Anders Norén, thank you for supporting your favorite theme and releasing new versions. If it doesn’t bother you, then help find a solution to the problem that is associated with update 2.2.

    In the Changelog, in the “readme.txt” file, I see the line:
    Switched from the Google Fonts CDN to font files included in the theme folder.
    I’ve read the latest community advice, and thank you for making such a quick, important, and difficult (for us users) fix to the theme code, but now I’m concerned about the display of fonts on the site:
    https://blog.andrewbondar.ru/
    https://i.ibb.co/BqrFpML/2022-08-20-08-34-49.png
    See? Instead of the beautiful fonts characteristic of Baskerville, some angular ones … In the header, in the headings in the body of the article – it’s the same everywhere.
    I went to your site:
    https://i.ibb.co/qWsddqV/2022-08-20-08-35-56.png
    Everything is beautiful, as it was before (in version 2.1.4).

    Can this be solved somehow?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @kronos1705,

    Strange. I’ve taken a look at your page, and the stylesheet for the fonts as well as the font files themselves are loaded. The woff2 files for the fonts doesn’t seem to be parsed correctly though, for some reason.

    You could start by reinstalling the font, in case that does the trick. If not, you might want to get in touch with your host in case there’s something in the server configuration that’s preventing the files from being read correctly.

    — Anders

    Thread Starter Andrew Bondar

    (@kronos1705)

    Hi, @anlino

    Maybe because it’s Cyrillic?
    How is reinstalling the font?

    I will contact the hoster, but first I would like to clarify these nuances for myself.

    Thread Starter Andrew Bondar

    (@kronos1705)

    In anticipation of an answer, I turned to my hoster. His response: “There is nothing in the server configuration that prevents the fonts from displaying correctly.”

    I also read how to reinstall the theme font. Did I understand correctly that you just need to take the woff2 files from the theme archive and move them (with replacement) to the folder:
    /wp-content/themes/baskerville/assets/fonts/
    ?
    If so, that didn’t help either. (This reinstallation of fonts did not help.)

    I would be glad if you tell me how to proceed.

    Theme Author Anders Norén

    (@anlino)

    Hi @kronos1705,

    Can you try disabling all plugins and see if that resolves the issue? In case there’s a performance plugin or something similar preventing the loading of locally hosted font files.

    — Anders

    Thread Starter Andrew Bondar

    (@kronos1705)

    Alas, I can’t disable all plugins on the working site, you understand.

    Of the plugins that might be confusing:
    iThemes Security (security)
    WP Super Cache (caching)
    The rest are only about SEO and galleries.

    Such conflicts can somehow be traced in the logs?

    Thread Starter Andrew Bondar

    (@kronos1705)

    It’s good that I ruled out the option to disable plugins. I have a test version of the site on the local (home computer). After updating the theme, there’s a similar problem:
    https://i.ibb.co/p4hnynG/2022-08-31-11-19-57.png
    Removed (rather than disabled) all plugins, both the ones mentioned above and any others related to SEO and performance optimization – and nothing: the problem is actual.

    I again draw your attention to the font files: they mention “latin” in the names, and hence the questions again: are you sure that they correctly reproduce Cyrillic fonts?
    Well, either there is some nuance associated with the transition to local fonts that needs to be done: write something there in the configuration file, or … Tell me? Or is there no such thing? I am a simple user, so I ask for advice, help.

    Theme Author Anders Norén

    (@anlino)

    Hi @kronos1705,

    Sorry, I should have picked up on that sooner. The Cyrillic character set is no longer included in Baskerville as of version 2.2, when it switched to locally hosted font files. To get the Cyrillic character set, you’ll need to add it separately.

    The easiest way to do this is probably to install a Google Fonts plugin, select the Baskerville fonts with the Cyrillic character set in the plugin, and then use a plugin like Local Google Fonts to load those Google Fonts locally from your server.

    — Anders

    Thread Starter Andrew Bondar

    (@kronos1705)

    +2 unnecessary plugins to solve the “problem”.
    Sorry, but this option is illogical. (It’s easier to go back to version 2.1.4. and not know the troubles.)

    A logical question: what dictated the decision – to exclude Cyrillic from the list of supported ones? Politics?

    Theme Author Anders Norén

    (@anlino)

    @kronos1705 If you’re willing to use Google Fonts, going back to 2.1.4 would be the easiest solution, yes.

    All character sets other than latin (including Hebrew, Greek, Vietnamese, and Cyrillic) were excluded when the theme switched to locally hosted fonts due to the footprint the theme would have if they were all included.

    Thread Starter Andrew Bondar

    (@kronos1705)

    About 150 kB more a lot?)
    Sorry, but pushing your users to install 2 plugins is a lot worse than making a theme 150 kB heavier.
    I would understand if there were no users of this language zone among your users, but they are, and I’m not the only one.

    Will you change your mind?

    Theme Author Anders Norén

    (@anlino)

    @kronos1705 Increasing the the file size of the theme almost threefold for all users (and for everyone visiting a site running Baskerville) is a lot, yes.

    Thread Starter Andrew Bondar

    (@kronos1705)

    Okay, I’ll try to find a solution to the problem.
    Thanks for answers.

    Can you explain why in the directory:
    /wp-content/languages/themes/
    There are language files in two sets:
    baskerville-ru_RU.mo (dated 08/20/2022, – on this day I updated the theme)
    baskerville-ru_RU.po (dated 08/20/2022, – on this day I updated the theme)
    and
    wp-themes-baskerville-ru.mo (from 01/30/2019)
    wp-themes-baskerville-ru.po (from 01/30/2019)
    ?

    Theme Author Anders Norén

    (@anlino)

    @kronos1705 Localization is all handled by WordPress Core, and I’m not sure why there would be multiple sets of mo/po files. It’s possible the file name structure was changed at some point. You can probably find an answer somewhere in the Theme Developer handbook or in the localization documentation.

    Thread Starter Andrew Bondar

    (@kronos1705)

    Thanks for the tip, I’ll try to find a solution to this problem.

    If you don’t mind, I’ll return to the main topic of the conversation and ask the last question: now I have a theme without Cyrillic support – when a user opens the site, how are fonts processed? Which system (CMS/browser) decides which font will be used for a particular visitor?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Displaying fonts after updating to 2.2.x’ is closed to new replies.