Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1067721

    hi guys,

    is it possible to provide me a script that i can use in functions.php, or maybe you want to implement that little change:

    in: …enfold/config-templatebuilder/avia-template-builder/php/font-manager-class.php

    you write in line(s) 508, following:

    @font-face {font-family: '{$font_name}'; font-weight: normal; font-style: normal;
    src: url('{$fstring}.eot{$append}');
    src: url('{$fstring}.eot{$qmark}#iefix') format('embedded-opentype'), 
    url('{$fstring}.woff{$append}') format('woff'), 
    url('{$fstring}.ttf{$append}') format('truetype'), 
    url('{$fstring}.svg{$append}#{$font_name}') format('svg');
    } #top .avia-font-{$font_name}, body .avia-font-{$font_name}, html body [data-av_iconfont='{$font_name}']:before{ font-family: '{$font_name}'; }
    ";

    i need to add a small addition:
    font-display: swap;
    to avoid time loss during rendering.

    greez
    rene

    • This topic was modified 5 years, 9 months ago by isee.
    #1069127

    Hey rene,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

    #1069129

    so… i change that from update to update, no problem.
    just think about this “swap option” in general, it makes site rendering and some (I NOW USELESS) statistics on google better.

    cheers
    rene

    #1069535

    Hi,

    I added a filter (line 522 – before return) – you have to build the complete output or insert in $output what you like:

    
    		/**
    		 * @since 4.5.5
    		 * @return string
    		 */
    		$output = apply_filters( 'avf_font_manager_load_font', $output );
    

    A pull request is in our dev repo

    Best regards,
    Günter

    #1069961

    many thanx günter :-)

    #1070344

    Hi,

    Glad if it helps you.

    Fell free to open a new topic if you need further assistance. Enjoy the theme and have a nice day.

    Best regards,
    Günter

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Font loading…. (entypo-fontello) / SWAP’ is closed to new replies.