Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1119629

    Hello,

    on a small website with Enfold (newest version) we have problems with the Font Manager Google / Fonts.

    We know how to import and load Google Fonts locally in Enfold, we did it several times.

    We want to use Merriweather and Open Sans locally, but import and selection messes up the fonts (paragraph texts falsely italic, for example).

    There is no custom CSS styling.

    You can try loading a single font only (for example Open Sans) and select it for headlines and paragraph texts, doesn’t work properly, too.

    Best regards
    pp, David

    #1119905

    Hey ansatz,

    Thank you for using Enfold.

    We are able to reproduce the issue on our end. We got it fixed by setting the font-display property from “auto” to “swap”.

    add_filter('avf_font_display', function($swap) {
    	return 'swap';
    }, 10, 1);
    

    Unfortunately, this filter does NOT work in your installation. We’ll forward this to the dev team.

    Best regards,
    Ismael

    #1131384

    Hi Ismael,

    did you receive a reply from the dev team?

    Best regards
    David

    #1131422

    Hi Ismael,

    here the same problem, filter don’t work. Is there an workaround?

    Best Regards
    Mike

    #1131830

    Hi,

    Did you try to save the theme options (also try to disable css merging – save – enable again ) and clear server and browser cache several times ?

    Best regards,
    Günter

    #1131839

    Hi Günter,
    sure, I do. I installed an font.zip local from an other older Enfold Website and this work – no italic!
    For me it seams that Google have change some things at the last three month and this
    don*t work really with Enfold. One thing more: After installed the font Open Sans local wit Enfold
    and use this font with Enfold styleoptions the name of the font in css is wrong: open-sans instead open sans.
    Maybe this is an hint?

    Best regards
    Mike

    #1132378

    Hello Support,

    “We’ll forward this to the dev team.”

    1,5 months ago?

    Best regards
    David

    #1132768

    Hi,

    Thank you for the update.

    The filter is now available on version 4.6. Make sure that you have that version. If it’s still not working, post the login details in the private field so that we can check the issue.

    Best regards,
    Ismael

    #1142640
    This reply has been marked as private.
    #1143207

    Hi,

    Thank you for the update.

    We are referring to the “avf_font_display” filter as you can see in the example above. It’s now included in the theme, so you can use that to change the font-display property — default value is “auto”.

    // https://css-tricks.com/almanac/properties/f/font-display/

    We don’t see any italic fonts when we checked the site. The font is set to Roboto. Is it working properly now?

    Best regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.