You are here

function fontsquirrel_fontyourface_view in @font-your-face 6

Same name and namespace in other branches
  1. 6.2 modules/fontsquirrel/fontsquirrel.module \fontsquirrel_fontyourface_view()
  2. 7 modules/fontsquirrel/fontsquirrel.module \fontsquirrel_fontyourface_view()

Implements hook_fontyourface_view().

File

modules/fontsquirrel/fontsquirrel.module, line 138

Code

function fontsquirrel_fontyourface_view($font, $text) {
  $output = '<div><img src="http://www.fontsquirrel.com/utils/makeFont.php?font=' . $font['id'] . '/' . $font['filename'] . '&width=800&size=14&text=' . urlencode($text) . '" /></div>';
  $output .= '<div><img src="http://www.fontsquirrel.com/utils/makeSolotypeSample.php?font=' . $font['id'] . '/' . $font['filename'] . '&case=all" /></div>';
  return $output;
}