Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Field

Type

Comment/Sample

Methods

 

Method

Returns

Parameters

Parameter Types

Comments/Sample
getLocation
createFont()
GeolocationResponse
FontnonenoneCreate an empty Font object.
createGenericFont()Font family
size
weight
String
String
String 
Create a complete Font object with the specified name for a generic font family, size and weight. The variable generic font families are: sans-serif, serif, cursive, fantasy, and monospace.
createGenericFontFamily()FontFamilyfamilyStringcreateGoogleWebFont()
createGoogleWebFont()Font family
size
weight 
String
String
String 
Create a complete Font object with the specified family, size and weight for a Google web font.
createGoogleWebFontFamily()FontFamily  familyStringCreate a font family object with the specified name for Google Fonts.
createNativeFont()Font family
size
weight 
String
String
String 
Create a complete Font object with the specified family, size, and weight for natively supported fonts. Only use fonts that all browsers support natively like: Arial, Arial Black, Courier New, Times New Roman, Helvetica, and Verdana.
createNativeFontFamily()FontFamily  familyStringCreate a font family object with the specified name. Only use fonts that all browsers support natively like: Arial, Arial Black, Courier New, Times New Roman, Helvetica, and Verdana.
createTypeKitFont()Font family
size
weight 
kitId

String
String
String
String 

Creaet a complete Font object with teh specified family, size, weight, and kit id for a TypeKit font.
createTypeKitFontFamily()FontFamily  

family
kitId

String
String 
Create a font family object with the specified TypeKit family and kit id.
load()StringnonenoneReturns the HTML code that must be included in the page to load the external Google or TypeKit fonts.

register()

void

font

Font

Register a font object with the manager so that when load() is called the proper loading code will generate.

See Also