Google Font API

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
DurtyMat
Sr. Propeller Head
Posts: 224
Joined: Wed Aug 22, 2007 8:09 am
Location: ClrH2o, Fl

Google Font API

Post by DurtyMat »

Is anyone thinking about integrating the Google Font API into their help systems? Unfortunately, our primary users do not have access to the internet at their workstations so it won't really work for us.

The concept of being able to use any font type and know that your user will see the help system as you intended (instead of hoping your font-family triggers an installed font). Based on a quick review of the legal side of using the Open Source font, just throwing in a trademark statement about the font being a copyright of blah blah will suffice, even if the application that uses the help system / font is sold.

Legal Details of Using the Fonts: http://scripts.sil.org/cms/scripts/page ... id=OFL_web

I am probably going to mess with trying to implement the font into a help system to see how it all pans out, but, looking at the code that Google supplied it doesn't seem that difficult. Add a CSS link the head (so, throw it in the masterpage) then refer to the new font in your font-family.

Examples from Google:
1. Add a stylesheet link to request the desired web font(s):

Code: Select all

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Font+Name">

2. Style an element with the requested web font, in a stylesheet:

Code: Select all

CSS selector {
  font-family: 'Font Name', serif;
}
http://code.google.com/apis/webfonts/do ... arted.html
Flare: I bought it ... so that means I can break it, right?
Post Reply