aristath/shoestrap — pull request #117 by dovy (2013-05-03 07:42:24+00:00)
Title: Complete Google Fonts Integration

Ok, so I've added Google Fonts completely to Shoestrap. In the ~/lib/config.php is a new area for a user to input their Google Webfonts API key. I did, however, also cache the file in a json that's been pre-massaged, so it will work fine strait out of the box.

I had to make a custom-control for the webfont selectboxes only to add a data-details element to the options to allow for quick ajax updating. If I could figure out how to simply add a new data-details attribute to the options and assign a json string as a value, I wouldn't need to go to such lengths.

I also added a theme-customizer.js in the ~/assets/js dir. This controls that function that when a user changes a font family, the sizes and character sets are dynamically updated.

I am having an odd issue where sometimes the event for the font fires before the transition of select boxes. It will sometimes cause an error. Not sure what to do there.

Otherwise, all is working as it should.

Food for thought:
I'd like to add 2 new typography sections or dividers to allow for specifying global, header, and branding, and perhaps nav typography. Right now it's too uniqued (one dropbox, no variations). What do you suggest?