function common_fonts_fontyourface_view in @font-your-face 6
Same name and namespace in other branches
- 6.2 modules/common_fonts/common_fonts.module \common_fonts_fontyourface_view()
- 7 modules/common_fonts/common_fonts.module \common_fonts_fontyourface_view()
Implements hook_fontyourface_view().
File
- modules/
common_fonts/ common_fonts.module, line 32
Code
function common_fonts_fontyourface_view($font, $text) {
$output = '';
$sizes = array(
32,
24,
18,
14,
12,
10,
);
foreach ($sizes as $size) {
$output .= '<div style="font-family: ' . $font['family'] . '; font-size: ' . $size . 'px; line-height: ' . $size . 'px;">' . $text . '</div>';
}
// foreach
return $output;
}