• Hi there,

    Another issue I am having is the API for Google Fonts is not allowing variants i.e. Medium, Bold, Black etc, even though they exist on Google Fonts website.

    It looks like the loader on the plugin hangs and not sure why: https://www.awesomescreenshot.com/video/38739594?key=5c9bfea9a863ae036a6ba2ee5bb95d64

    Noticed this issue as well when loading stock images by their API. You have to move to another tab and back again for them to load when fist visiting.

    Would love to see bugs fixed on this plugin. loving it so far just needs a few things resolving.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter poppydev

    (@poppydev)

    Just to rule this out.

    If I Try a variant for ‘Bold’ for Roboto it works.

    If I try for Montserrat it doesn’t. Montserrat has many variants: https://fonts.google.com/specimen/Montserrat?preview.text=Montserrat

    Fonts with many variants like Montserrat with 18+ variants possibly break the plugin and cause it to hang.

    Regards

    Thread Starter poppydev

    (@poppydev)

    Ok I spoke to soon. This doesn’t work for all fonts taken from Google fonts. I cannot get any kind of variant to show.

    I have checked to see if the API is pulling in all variations by using function:

    if (!empty($data) && isset($data[‘items’])){
    $items = $data[‘items’];
    }
    if (defined(‘WP_DEBUG’) && WP_DEBUG) {
    file_put_contents(DIR . ‘/debug-montserrat.txt’, json_encode($items, JSON_PRETTY_PRINT));
    }

    /wp-content/plugins/pixmagix/includes/rest-api/debug-montserrat.txt

    I am currently debugging editor.build.js as there is a bug or something in the code that is preventing the variants from loading on the UI.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Google fonts not allowing variants’ is closed to new replies.