function fontsquirrel_fontyourface_view in @font-your-face 6.2
Same name and namespace in other branches
- 6 modules/fontsquirrel/fontsquirrel.module \fontsquirrel_fontyourface_view()
- 7 modules/fontsquirrel/fontsquirrel.module \fontsquirrel_fontyourface_view()
Implements hook_fontyourface_view().
File
- modules/
fontsquirrel/ fontsquirrel.module, line 29
Code
function fontsquirrel_fontyourface_view($font, $text) {
$metadata = unserialize($font->metadata);
$output = '<div><img src="http://www.fontsquirrel.com/utils/makeFont.php?font=' . $metadata['id'] . '/' . $metadata['font_filename'] . '&width=800&size=14&text=' . urlencode($text) . '" /></div>';
$output .= '<div><img src="http://www.fontsquirrel.com/utils/makeSolotypeSample.php?font=' . $metadata['id'] . '/' . $metadata['font_filename'] . '&case=all" /></div>';
return $output;
}