Here is a sample of the OSS Consulting services we provide:

  • Open Source Technology Strategy
  • Open Source Application Development
  • Custom Open Source Programming and Integration
  • Open Source Web Performance
  • Open Source Web site Security Analysis
  • Integration with Windows and Open Source Systems
  • Open Source Mail systems Setup/Integration
Home  |  Blog  

Blog Entries from 07/2010

Google Font API Gives Developers More Page Design Options

Thursday, July 29th, 2010

The Google font API is a simple tool that will let a production developer insert what are traditionally considered 'non web safe' fonts safely into a page's set of styles for a creative twist on what have otherwise become a bland set of options for font faces over the past 15+ years of web page design.  This presents a new method for creating unique, SEO-friendly headlines and text elements. (see this previous post for other SEO-friendly alternative font methods).

The API itself is simple:

  1. Call to the API in the <head> tag of your page with this line:
    <link rel="stylesheet" type="text/css"
    href="http://fonts.googleapis.com/css?family=Font+Name">
  2. Where "Font+Name" is in the <link> tag is where you can choose your font.
  3. Use the font you've chosen as part of the normal font-family property in your CSS. Ex.:
    font-family:'Font Name', serif

Google has even made it easy for you to browse and configure fonts via its Font Previewer that will dynamically output the code you can cut and paste into your own page. Options include standard CSS properties like letter and line spacing.  The font API is compatabile all the way down to Internet Explorer 6, though designers should keep in mind IE6 (and all other browser) CSS support -- for example, no Internet Explorer browser supports the 'text-shadow' property.

The font directory is small right now, but growing.  Be weary, however: all fonts are available under an open source license, so don't expect to see any Adobe or Microsoft fonts.