2012-09-28
 
Kategorie
 

Adding nonstandard fonts—Google Web Fonts

 

To add a nonstandard font that is not included on the web safe list you can use the Google Web Fonts service.

For a complete list of available fonts, see here.
To make sure the font supports Polish characters, select “latin extended” in the “Script” filter.

Inserting our font in an AF form is very easy.
In the HEAD section of your HTML file, before layout CSS calls ($SCRIPTS$), insert the following line:

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

The whole HEAD section will look as follows:

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

The newly added font is already available in your CSS files and can be used with:

font-family: Font+Name;

You can also load multiple fonts at once by modifying the inserted line, e.g.:

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

ActiveForms

 
 
recent posts
3rd Apr 2014
Faster than ever!
5th Dec 2013
Live validation!
2nd Dec 2013
Features distilled
12th Mar 2012
Flicking Channels
26th Jan 2012
Your Own Error Page
9th May 2011
Box Properties
15th Apr 2011
Grouping Fields
13th Apr 2011
Form Versioning
24th Feb 2011
Form Access Modes
22nd Feb 2011
Required Fields
4th Feb 2011
Stats!