function fontyourface_preview in @font-your-face 7.2
Same name and namespace in other branches
- 6.2 fontyourface.module \fontyourface_preview()
- 7 fontyourface.module \fontyourface_preview()
Gets preview from provider, if available.
3 calls to fontyourface_preview()
- fonts_com_browse_form in modules/
fonts_com/ fonts_com.module - Shows browse filters and results.
- views_handler_field_fontyourface_font::render in modules/
fontyourface_ui/ views/ views_handler_field_fontyourface_font.inc - Render the field.
- views_handler_field_fontyourface_preview::render in modules/
fontyourface_ui/ views/ views_handler_field_fontyourface_preview.inc - Render the field.
File
- ./
fontyourface.module, line 526
Code
function fontyourface_preview($font, $text, $size) {
fontyourface_font_registry($font);
$function = $font->provider . '_fontyourface_preview';
if (function_exists($function)) {
return $function($font, $text, $size);
}
// if
return $text;
}