Support » Plugin: Google Webfonts For Woo Framework » Some fonts not displaying (ex. Source Serif Pro)

  • Resolved rich44

    (@rich44)


    I have noticed a few fonts are not coming up in the options / dropdown in the admin. I have checked to see if there are any plugin conflicts and found none. Is this an issue with WP 4.1?

    The font I am looking to use right now is Source Serif Pro.

    There were a few others I wanted to experiment with that didn’t show up in the dropdown. I apologize. I can’t recall which ones now.

    https://wordpress.org/plugins/google-fonts-for-woo-framework/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jason Judge

    (@judgej)

    Good question, no idea, but I will check.

    First question: are you using your own Google API key, or the one built in to the plugin? Is the admin page giving you any message telling you that it cannot connect to the Google API for any reason?

    Is this something that w2as working before you upgraded to 4.1, assuming you were using this font previously)?

    Plugin Author Jason Judge

    (@judgej)

    Also, which theme and version of that theme are you using?

    I’ve tried upgrading to WP 4.1 without any issues. However, upgrading the Woo Framework to 6.1.0 has certainly broken the font injection. The plugin can see the Source Serif Pro font, but the Woo Framework can not.

    The Woo Framework has a bigger list of fonts hard-coded in it now, 657 fonts, a snapshot of some time ago (December 2013). The font you want is in the latest additions that take the current Google font list to 682 fonts.

    At least I can replicate the issue, so I have something to debug and fix.

    Thread Starter rich44

    (@rich44)

    1. I am not using my own API. Using the one built in to plugin.
    2. First admin page not giving me any messages about the API.
    3. In regards to whether this was working prior,I believe so. However, I can’t be sure because any fonts I was selecting were there. Just ran into the problem when the font I wanted wasn’t showing. I did notice most of them are newer Google fonts.

    On your second reply – Does that mean I am out of luck until Woo does something with its framework?

    I am sure there are some work-arounds, but this is a simple, light weight way to do it. I really like the plugin and would rather not use a work-around.

    Plugin Author Jason Judge

    (@judgej)

    I’m investigating why this isn’t working now on the Woo Framework V 6.1.0, and I suspect the fix will be simple as it does not look like there have been any radical changes in the way the fonts are delivered through the framework.

    Until I get a fix released, there is a workaround:

    In themes/{your-base-woo-theme}/functions/admin-functions.php around line 1559 is a hard-coded list of fonts. You can add your font adding this line to the list:

    array( 'name' => 'Source Serif Pro', 'variant' => ':200,:300,:regular' ),

    This will be overwritten next time you update the Woo Framework, but it should work for you until I get a fix out.

    Plugin Author Jason Judge

    (@judgej)

    As another workaround, if it’s useful, you can also use the font with specific blocks of text within a page:

    [typography font="Source Serif Pro" size="48pt"]Test Font[/typography]

    That seems to still work with version 6.1.0 of the framework.

    Plugin Author Jason Judge

    (@judgej)

    I’ve released a version 1.6.0 which should fix this.

    The Woo Framework from 6.0 introduced a new filter that can be used to modify the list of fonts. The plugin now uses that filter, if it is available, and falls back to directly modifying the global $google_fonts variable if the filter is not invoked (i.e. for pre-6.0 Woo Framework installations).

    I’ve also updated the list of fallback fonts fro when the Google API cannot be contacted.

    Plugin Author Jason Judge

    (@judgej)

    Don’t forget, once you have updated the plugin, to go to the settings page for the plugin, check the latest fonts are listed there, then hit “save”. That will take a snapshot of the available fonts, and that snapshot will be used throughout.

    Thread Starter rich44

    (@rich44)

    Fantastic. That worked. Thank you so much.

    Plugin Author Jason Judge

    (@judgej)

    A pleasure. Thank you for bringing this to my attention. It is difficult to keep an eye on all the dependencies at times – the Framework, the WP version, PHP versions, Google API changes, the specific themes, etc.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Some fonts not displaying (ex. Source Serif Pro)’ is closed to new replies.