demo for setRandomWebFont



<-- setRandomWebFont( domTarget, fontFamily, callbackAfterSetOne, callbackAllLoaded )

info
setRandomWebFont( domTarget, fontFamily, callbackAfterSetOne, callbackAllLoaded )

domTarget
HTMLElement or HTMLElement in array or null
if HTMLElement, domTarget.style is set randomly from fontFamily argument. ( web fonts is loaded only for what use )
if null, load only. ( web fonts are loaded all in fontFamily argument )

web font is loaded only once.

fontFamily
string or string in array
the string, set the style.fontFamily you want to load.
version 1.0 currently, only support Google Web Fonts. if you want to search Google Web Fonts, access to the following link.
http://www.google.com/webfonts

callbackAfterSetOne
function for callback
this callback is called after setting font to domTarget.style.
if the argument domTarget is an array, it is called each time the set.
callback is executed as follows.

callback( domTarget, fontFamily, fontDescription )
domTarget is HTMLElement. is not an array.
fontFamily is string. that is what is set to domTarget.style.fontFamily.
fontDescription is string. represents the style and weight of the font.

callbackAllLoaded
function for callback
this callback is called when loaded web fonts all. before callbackAfterSetOne.
at call, there is no argument.