function _cufon_get_font_families in Cufón 6
Same name and namespace in other branches
- 7.2 cufon.module \_cufon_get_font_families()
Extracts "font-family" parameter from file contents
Returns: array of found font families.
1 call to _cufon_get_font_families()
File
- ./
cufon.module, line 102 - Adds simple Cufón support to Drupal.
Code
function _cufon_get_font_families($file) {
$file_content = file_get_contents($file);
if (preg_match_all('/[\'"]font-family[\'"]\\s*:\\s*([\'"]([^"\\r\\n]+)[\'"])/', $file_content, $matches)) {
return $matches[2];
}
return array();
}