-
Notifications
You must be signed in to change notification settings - Fork 20
API
santhoshtr edited this page Aug 9, 2012
·
6 revisions
- arguments - None
- return - None
- description - Initializes the extension. This method applies a default font for the language of the element. Language of the element is
langattribute of the node orlangattribute of the html element. After that, it parses the whole element subnodes. See parse method. Theinitmethod is called fromConstructorof the webfonts extension.
- arguments - a) fontFamily, b) Optional $element
- return - None
- description - apply a font to the current element. If an optional jquery object
$elementpassed, use that. This method adds an inline stylefont-family: fontFamily, fallbacksto the the element. Default font fallbacks are'Helvetica', 'Arial', 'sans-serif'. Font fall back can be changed using the optionfontStack
- arguments - None
- return - None
- description -
- arguments - None
- return - None
- description - Reset the elements font to its original font.
- arguments - String fontfamily - font family name
- return - None
- description - Load a given font. It checks whether it is already loaded or not. If not loaded already, it gets the configuration from the repository, create the css and inject to the page.
- arguments - None
- return - None
- description - Unbind the jquery webfonts extension from an element
- arguments - Optional string langCode
- return - Array of font names
- description - Returns a list of font names supported by the current repository. If language is passed as argument, fonts for that language is returned
- arguments - None
- return - Array of language codes
- description - Returns a list of languages supported by the current font repository
- arguments -
a) fontFamily The font-family name b) variant Optional font variant - return - String -The @font-face css rule for the arguments
- description - For the given font family and optional variant, return @font-face css style