You are here

function common_fonts_fontyourface_preview in @font-your-face 6

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

Implements hook_fontyourface_preview().

File

modules/common_fonts/common_fonts.module, line 23

Code

function common_fonts_fontyourface_preview($font) {
  return '<span style="font-family: ' . $font['family'] . '; font-size: 24px;">' . $font['sample text'] . '</span>';
}