Viewing 28 posts - 1 through 28 (of 28 total)
  • Author
    Posts
  • #1460030

    Hi,
    i would like to use this google font with enfold theme:
    “Zen Kaku Gothic New”
    how can I import the font into Enfold so that I do not violate the GDPR regulations and the font is loaded directly from Enfold instead of from the Google server?
    kind regards
    Jak

    #1460039

    loading the font from Google is not GDPR compliant – hosting the font on your own servers is.
    but this is from performance point of view a heavy font: even the woff files will have for each font-weight over 1.1MB
    Try it yourself via Enfold – Import/Export – Custom Font Manager – and upload that zip file : https://webers-testseite.de/ZenKakuGothicNew.zip
    only light, regualar and bold are inside ( there is on google black and medium inside – but see comment above)
    You can find those uploaded fonts then under General Styling – Fonts (Tab) at the end of the list inside :

    if you want to hamper google font loading via Enfold from google pages – paste this to your child-theme functions.php:

    function my_output_google_webfonts_script( $activate ){
      return false;
    }
    add_filter( 'avf_output_google_webfonts_script', 'my_output_google_webfonts_script', 10, 1 );

    PS: if you got a CDN Server – then it might be better to load it from their servers.

    But how to write with that font-face i do not know – how do you choose your letters:
    伟伯网页设计

    #1460048
    This reply has been marked as private.
    #1460050

    sorry – no private Content for me – you had to wait til mods are here.

    #1460054

    Ups…
    Thank you very much Guenni!!!
    kind regards Jak

    #1460238

    Hi,
    Thanks for helping Guenni007.
    Jak73, if you follow Guenni007 instructions it should work for you, I assume that you have this sort out, if not let us know.

    Best regards,
    Mike

    #1460614

    Hi Mike und Guenni,
    i’ll try that. Thanks for your reply!
    Kind regards Jak

    #1460617
    This reply has been marked as private.
    #1460635

    Hi,
    Seems to work when I try:
    Enfold Support 6235
    see the link below. But see Guenni007 post about using Transfonter here where he points out that the Font Kit Generator from FontSquirrel does not support the font family option.

    Best regards,
    Mike

    #1460654

    And have a look at Hanken Font – you can use the variable font then only 136kb are used for all font-weights
    https://kriesi.at/support/topic/how-can-i-add-a-row-with-text-above-an-image/#post-1460650

    #1460660

    I just saw, that my collected font is not used in my widget text in the footer.
    How can i change the font-family globaly?
    I allready chosed the font in advanced styling, but it seems not every area of the website is using it?
    kind regards
    Jak

    p.s. same for my footer and my menu. It’s still not using the selected font from advanced styling?

    • This reply was modified 4 months, 3 weeks ago by Jak73.
    #1460665

    The first address to change is on General Styling – Fonts (Tab)
    ____

    #1460667

    Yes, right. I ment general styling, but it seems, it’s not effecting my site globally?

    #1460668

    These are the settings that apply to the entire website – if you achieve different results, there must be inline settings or special CSS rules that override these global rules.
    F.e. on “Advanced Styling”

    you should not use lighter or bolder on css setting. try light or bold or even better 300, 700 etc.

    or look at your css:

    body#top{font-weight:lighter;font-family: 'work sans', Helvetica, Arial, sans-serif;}
    
    #1460680

    Hi Guenni,
    i found it. Did not see before, that there are also settings in the advanced settings.
    Many thanks for your help.
    Tomorrow i’l check the font you suggested. Will proberbly take it.
    kind regards
    Jak

    #1460690

    Half-Time in Cologne ;)

    we could talk about using the HankenGrotesk Variable font – to have a good fallback solution it might be good to have those static font in the background.
    Enfold even supports those varible fonts
    see here on firefox developer tools how they can be used:
    https://player.vimeo.com/video/748702665

    here are both zip files for download:

    HankenGrotesk and HankenGrotesk-Variable

    The trick will be to have for modern browsers the variable font and for those not supporting variable fonts the static one.

    The crux is to activate on general settings the static font – and then have this in your child-theme quick css to force for all browser the variable font:

    @supports (font-variation-settings: normal) {
      :root {
        --enfold-font-family-heading:'hankengrotesk-variable',Helvetica,Arial,sans-serif;
        --enfold-font-family-body: 'hankengrotesk-variable',Helvetica,Arial,sans-serif;
      }
      body.roboto {
        font-family:'hankengrotesk-variable'  !important;
      }
      h1,h2,h3,h4,h5,h6,
      #top .title_container .main-title,
      tr.pricing-row td,
      #top .portfolio-title,
      .callout .content-area,
      .avia-big-box .avia-innerbox,
      .av-special-font,
      .av-current-sort-title,
      .html_elegant-blog #top .minor-meta,
      #av-burger-menu-ul li {
        font-family: 'hankengrotesk-variable' !important;
     }
    }
    #1460697

    Hi Guenni, the video seems to be private?

    #1460698

    try again – the link was wrong

    #1460699

    Looks interesting. I have to speak to a friend about changing the font. He has to give me his ok for that. I’ll ask him, if he knows, that the font contains chinese letters. Yes, this Hanken font looks very similar. I’ll take a deep look in it tomorrow.
    Thank you Guenni!
    kind regards Jak

    #1460700

    the variable regular font of hankengrotesk got 60kb !
    loog to those other fonts with over 1MB ! This comes from all the non latin fonts in there.
    Think of your performance of the website.

    #1460701

    Yes, you are absolutely right.
    I allready sad this to my friend. I’ll talk to him tomorrow and will proberbly change this then tomorrow.
    He will proberbly agree…

    #1460702

    and by the way – do not upload the font-weights one by one – just create a font-family and zip that to upload – like here on my downloads: https://kriesi.at/support/topic/add-google-font-to-enfold-and-still-being-dsgvo-compatibel/#post-1460690

    see here in action on all headings.
    https://webers-testseite.de/

    #1460723

    click to enlarge:

    #1460725

    But The font does not seem to load completely when only the Latin fonts are used. At least it does not seem to load as slowly as the file size of the upload would suggest.

    #1460836

    Hi Guenni,
    the speed of loading this font is interesting. I send the font you suggested to my friend and he is going to decide tomorrow.
    kind regards
    Jak

    #1461435

    Got it.
    kind regards Jak

    • This reply was modified 4 months, 2 weeks ago by Jak73.
    • This reply was modified 4 months, 2 weeks ago by Jak73.
    #1461481

    Hi,
    Glad Guenni007 could help, thank you Guenni007, shall we close this thread then?

    Best regards,
    Mike

    #1461483

    Hi Mike,
    yes, thank you.
    kind regards
    Jak

Viewing 28 posts - 1 through 28 (of 28 total)
  • The topic ‘Add google font to enfold and still being DSGVO compatibel’ is closed to new replies.