Hi All,
Wondering if anyone might be familiar with the Google Font API, what I am wondering is if it's possible to pull the font list into a site_style.php to allow the client to select a font for the likes of:
Heading
Body
Blockquote
I've taken a look at this
Once we have the full list in an array, throw the "font name" into a select field as the "option name", then then the "font+name" as the value also.
Basically to get this working we'd need "Font Name" to declare in a stylesheet (via couch <cms:show font_family_name />" and the url version to build into out link to googles font api i.e.
where font name is <cms:show font_family_url_name />
Hope that makes sense?
Wondering if anyone might be familiar with the Google Font API, what I am wondering is if it's possible to pull the font list into a site_style.php to allow the client to select a font for the likes of:
Heading
Body
Blockquote
I've taken a look at this
and it returns a sweet array of all fonts I'm just not sure how I would pul this into, for example fonts.php then format it in a list that could be used in a dropdown field, i.e.http://phat-reaction.com/googlefonts.php
Once we have the full list in an array, throw the "font name" into a select field as the "option name", then then the "font+name" as the value also.
Basically to get this working we'd need "Font Name" to declare in a stylesheet (via couch <cms:show font_family_name />" and the url version to build into out link to googles font api i.e.
<link href='http://fonts.googleapis.com/css?family=FONT+NAME' rel='stylesheet' type='text/css'>
where font name is <cms:show font_family_url_name />
Hope that makes sense?