You are here

function google_fonts_api_fontyourface_preview in @font-your-face 6

Same name and namespace in other branches
  1. 6.2 modules/google_fonts_api/google_fonts_api.module \google_fonts_api_fontyourface_preview()
  2. 7.2 modules/google_fonts_api/google_fonts_api.module \google_fonts_api_fontyourface_preview()
  3. 7 modules/google_fonts_api/google_fonts_api.module \google_fonts_api_fontyourface_preview()

Implements hook_fontyourface_preview().

File

modules/google_fonts_api/google_fonts_api.module, line 23

Code

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