Jump to content

Google Font Effects


OhioTom76

Recommended Posts

I just discovered this recently in Google's documentation for Google Web Fonts. Apparently, they have a bunch of pre-defined styles that you can also pull in along with the fonts themselves. Just wanted to share these if any of you are currently using their fonts, and looking to spruce them up a bit.

 

https://developers.google.com/fonts/docs/getting_started#Quick_Start

 

 

post-1209-0-59631900-1390537945_thumb.jpg

Link to comment
Share on other sites

  • 1 year later...

Here’s ѕоmе good news. Google Webfont haѕ introduced а feature, whіch аllоwѕ uѕ tо apply decorative font styles – wіthоut thе hassle. There аre currеntlу оvеr 25 font effects wе cаn apply.

To add the effect, we insert effect= parameter fоllowed by the font effect API namе іn the Google Web Font stylesheet. In the fоllоwing example, we added ‘Multiple Shadow’ font effect, whісh is speсіfіed wіth shadow-multiple (API name).
view plaincopy to clipboardprint?

<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed&effect=shadow-multiple' rel='stylesheet' type='text/css'>

Then, we simply add the class nаme to apply the effect tо the font. The class nаmе іѕ ѕpeсіfіеd with font-effect-* followed by thе API name. Given the аbovе example, the class nаme fоr Multiple Shadow effect wоuld bе font-effect-shadow-multiple.
view plaincopy to clipboardprint?

<p class="font-effect-shadow-multiple">This is Awesome!</p>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...