function fontsquirrel_fontyourface_css in @font-your-face 6
Implements hook_fontyourface_css().
File
- modules/
fontsquirrel/ fontsquirrel.module, line 183
Code
function fontsquirrel_fontyourface_css($used_font) {
$css = array(
'@font-face' => '',
'font-family' => '',
);
$list = fontsquirrel_list(FALSE);
$font = $list[$used_font->group_name]['fonts'][$used_font->name];
if ($font['family'] == '') {
fontsquirrel_update_font_family($font);
}
// if
$css['font-family'] = "'" . $font['family'] . "'";
return $css;
}