Skip to main content
Reference

FontManager SFO

Properties

FieldTypeComment/Sample

Methods

MethodReturnsParametersParameter TypesComments/Sample
createFont()[Font](./font-sfo.md)nonenoneCreate an empty Font object.
createGenericFont()[Font](./font-sfo.md) family size weightString 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](./fontfamily-sfo.md)familyStringcreateGoogleWebFont()
createGoogleWebFont()[Font](./font-sfo.md) 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](./fontfamily-sfo.md)  familyStringCreate a font family object with the specified name for Google Fonts.
createNativeFont()[Font](./font-sfo.md) 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](./fontfamily-sfo.md)  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](./font-sfo.md) family size weight  kitIdString String String String Creaet a complete Font object with teh specified family, size, weight, and kit id for a TypeKit font.
createTypeKitFontFamily()[FontFamily](./fontfamily-sfo.md)  family kitIdString 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()voidfont[Font](./font-sfo.md)Register a font object with the manager so that when load() is called the proper loading code will generate.

See Also

Was this page helpful?