function fontyourface_preview in @font-your-face 7
Same name and namespace in other branches
- 6.2 fontyourface.module \fontyourface_preview()
- 7.2 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 - Render the field.
File
- ./
fontyourface.module, line 1039
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;
}