[Resolved] "Barlow" Google Font Missing

Home Forums Support [Resolved] "Barlow" Google Font Missing

Home Forums Support "Barlow" Google Font Missing

  • This topic has 5 replies, 2 voices, and was last updated 4 years ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #844670
    Kevin

    Hi there,

    I can not find “Barlow” Google Font in the customizer.

    I have added this filter to my child theme and I have many more fonts than normal, just not “Barlow”:

    add_filter( 'generate_number_of_fonts','tu_show_all_available_google_fonts' );
    function tu_show_all_available_google_fonts() {
    	return 'all';
    }

    Kevin

    GeneratePress 2.2.2
    GP Premium 1.7.8
    #844683
    David
    Staff
    Customer Support
    #844700
    Kevin

    I can get the Barlow font to load with this code:

    add_filter( 'generate_typography_customize_list', 'tu_add_google_fonts' );
    function tu_add_google_fonts( $fonts ) {
    	$fonts[ 'barlow' ] = array(
    		'name' => 'Barlow',
    		'variants' => array( '400', '500', '600', '700', '800' ),
    		'category' => 'sans'
    	);
    
    	return $fonts;
    }

    But not when using this code:

    add_filter( 'generate_number_of_fonts','tu_show_all_available_google_fonts' );
    function tu_show_all_available_google_fonts() {
    	return 'all';
    }

    Kevin

    #844717
    David
    Staff
    Customer Support

    The ALL list is something that needs regularly updating which we haven’t done in a little while. We may find a better solution but in the meantime we recommending loading the individual fonts as you have done.

    #844911
    Kevin

    I understand. Thanks for helping! Great service as always.

    Kevin

    #844912
    David
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.