You are here

function kernest_fontyourface_css in @font-your-face 6

Implements hook_fontyourface_css().

File

modules/kernest/kernest.module, line 178

Code

function kernest_fontyourface_css($used_font) {
  $css = array(
    '@font-face' => '',
    'font-family' => '',
  );
  $list = kernest_list(FALSE);
  $font = $list[$used_font->group_name]['fonts'][$used_font->name];
  if (preg_match('#font-family:([^;]+)#', $font['css'], $match)) {
    $css['font-family'] = trim($match[1]);
  }

  // if
  return $css;
}