• Resolved ThemeAWESOME

    (@tsquez)


    Hi there,

    Quick question: Based on the typography docs you state that if someone wanted to display the top 30 fonts they would have to add:

    'choices' => array(
    	'fonts' => array(
    		'google' => array( 'trending', 30 ),
    	),
    ),

    My question is: is there a way to display ALL of the Google fonts in the same manner? Something like:

    'choices' => array(
    	'fonts' => array(
    		'google' => array( 'allfonts', true ),
    	),
    ),

    The reason I ask is because I want to make all 847 fonts available and I tried it to see if it was possible and the only way I got it to work was to create a huge list (I am going to add it here in case someone wants to use it as well). Heres a link to the Gist I created: https://gist.github.com/tsquez/1b58056e304a2fbe3727531367e569ab

    So is there a way? If not maybe this could be a feature request.

    Thanks.

    • This topic was modified 6 years, 1 month ago by ThemeAWESOME.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Dan

    (@aimada)

    Have you tried setting an empty array?

    'choices' => array(
    	'fonts' => array(
    		'google' => array(),
    	),
    ),
    Thread Starter ThemeAWESOME

    (@tsquez)

    Hi Dan,

    No I didn’t…but I just tried it and it loaded all the fonts, muchos gracias amigo.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load all Google Fonts’ is closed to new replies.