• Hello,

    thank you for the great PlugIn. I like to have it in use.

    I am currently facing a problem with the fonts, which are only allowed to be loaded locally in the EU due to the GDPR.

    I have the same font “Roboto” already installed locally on my server. And the place where I have to change the path I have also found;

    in the file frontend.php, line: 109;
    if (isset($settings[‘tooltip_font’][‘family’])) {
    $font_family = $settings[‘tooltip_font’][‘family’];
    if (!in_array($font_family, $standard_font_family)) {
    $font_array = sfm_search_key($google_font, ‘family’, $font_family);
    $variants_array = $font_array[‘0’][‘variants’];
    $variants_keys = array_keys($variants_array);
    $variants = implode(‘,’, $variants_keys);
    $fonts = $font_family . ‘:’ . str_replace(‘italic’, ‘i’, $variants);
    $fonts_url = add_query_arg(array(
    ‘family’ => urlencode($fonts),
    ‘subset’ => urlencode($subsets),
    ), ‘/googlefonts/roboto-v20-latin-regular.eot?#iefix‘); <<–
    }
    }
    If I specify the absolute URL of the file here, then I get the 404 error message in the console for the path.

    Am I even correct in this file? and what exactly do I need to do so that the font is not loaded via Google fonts, but locally.

    Thanks a lot in advance.
    emre

    Translated with https://www.DeepL.com/Translator (free version)

  • The topic ‘Load google fonts local (gdpr)’ is closed to new replies.