You are here

function google_fonts_api_fontyourface_css in @font-your-face 6

Implements hook_fontyourface_css().

File

modules/google_fonts_api/google_fonts_api.module, line 84

Code

function google_fonts_api_fontyourface_css($used_font) {
  $css = array(
    '@font-face' => '',
    'font-family' => '',
  );
  $list = google_fonts_api_list();
  $font = $list[$used_font->group_name]['fonts'][$used_font->name];
  $css['font-family'] = "'" . $font['family'] . "'";
  return $css;
}