You are here

function common_fonts_fontyourface_css in @font-your-face 6

Implements hook_fontyourface_css().

File

modules/common_fonts/common_fonts.module, line 50

Code

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