Using fonts only in certain articles
Posted: 16 Feb 2011, 00:30
I dont want to change to site's font completely. I only want to use it in some articles and not for example in my menus.
Support for Phoca Extensions
https://phoca.cz./forum/
Code: Select all
// Condensed Bold Italic
if(isset($fontData->condensedbolditalic) && $fontData->condensedbolditalic !='') {
$cssCBI='@font-face {'."\n";
$cssCBI.=' font-family: "'.$fontData->title.'";'."\n";
$cssCBI.=' font-style: italic;'."\n";
$cssCBI.=' font-weight: bold;'."\n";
$cssCBI.=' font-stretch: condensed;'."\n";
$cssCBI.=' src: url("'.$linkFont.$fontData->condensedbolditalic.'") '.$format.';'."\n";
$cssCBI.=' }';
$css .= $cssCBI;
// IE - - - - -
$fontData->condensedbolditalic_eot = str_replace ('ttf', 'eot', $fontData->condensedbolditalic);
$fontData->condensedbolditalic_eot = str_replace ('otf', 'eot', $fontData->condensedbolditalic_eot);
if (JFile::exists($linkFontAbs. $fontData->condensedbolditalic_eot)) {
$cssIe .= $cssCBI;
}
// - - - - - -
}