WordPress.org

Forums

Google Typography
Great Google web fonts manager. (2 posts)

  1. Invizogen
    Member
    Posted 2 years ago #

    Simple and nicely designed solution for custom Google web fonts. For me, it works out of the box, no errors.

    My only suggestion for the author would be to switch to wp_enqueue_style instead of @import in wp_head if that is possible.
    Reason for this is possible duplicate font loading and I dunno if HTTPS site would trow unsecured connection error if fonts are
    being pulled via css @import over HTTP. Also maybe an option to include extended characters set if one exists for chosen font.

    Something like this maybe?:

    $protocol = is_ssl() ? 'https' : 'http';
    $query_args = array(
        'family' => 'Open+Sans:400italic,700italic,300,400,600,700,800',
        'subset' => 'latin,latin-ext'
    );
    wp_enqueue_style( 'fonts', add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" ), array(), null );
  2. Alexandre
    Member
    Posted 1 year ago #

    Correct!
    And @import is blocking parallels download: http://www.stevesouders.com/blog/2009/04/09/dont-use-import/

    I add a link to this review in the support forum ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Typography
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.