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';
}