You are here

function fontsquirrel_fontyourface_preview in @font-your-face 6.2

Same name and namespace in other branches
  1. 6 modules/fontsquirrel/fontsquirrel.module \fontsquirrel_fontyourface_preview()
  2. 7.2 modules/fontsquirrel/fontsquirrel.module \fontsquirrel_fontyourface_preview()
  3. 7 modules/fontsquirrel/fontsquirrel.module \fontsquirrel_fontyourface_preview()

Implements hook_fontyourface_preview().

File

modules/fontsquirrel/fontsquirrel.module, line 18

Code

function fontsquirrel_fontyourface_preview($font) {
  $metadata = unserialize($font->metadata);
  return '<img src="http://www.fontsquirrel.com/utils/makeFont.php?font=' . $metadata['id'] . '/' . $metadata['font_filename'] . '&width=300&size=18&text=' . urlencode($font->name) . '" />';
}