You are here

function fontyourface_preview in @font-your-face 6.2

Same name and namespace in other branches
  1. 7.2 fontyourface.module \fontyourface_preview()
  2. 7 fontyourface.module \fontyourface_preview()

Gets preview from provider, if available.

1 call to fontyourface_preview()
views_handler_field_fontyourface_font::render in views/views_handler_field_fontyourface_font.inc

File

./fontyourface.module, line 1010

Code

function fontyourface_preview($font, $text) {
  fontyourface_font_registry($font);
  $function = $font->provider . '_fontyourface_preview';
  if (function_exists($function)) {
    return $function($font, $text);
  }

  // if
  return $text;
}