FontManager SFO
Properties
Field | Type | Comment/Sample |
---|
Methods
Â
Method | Returns | Parameters | Parameter Types | Comments/Sample |
---|---|---|---|---|
createFont() | Font | none | none | Create 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() | FontFamily | family | String | createGoogleWebFont() |
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  | family | String | Create 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  | family | String | Create 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 |
| Creaet a complete Font object with teh specified family, size, weight, and kit id for a TypeKit font. |
createTypeKitFontFamily() | FontFamily  |
| String String | Create a font family object with the specified TypeKit family and kit id. |
load() | String | none | none | Returns the HTML code that must be included in the page to load the external Google or TypeKit fonts. |
|
|
| Register a font object with the manager so that when load() is called the proper loading code will generate. |