Page 1 of 1

Using fonts only in certain articles

Posted: 16 Feb 2011, 00:30
by finc
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.

Re: Using fonts only in certain articles

Posted: 16 Feb 2011, 21:04
by lordbdp
Perhaps in the final version ? :|

Re: Using fonts only in certain articles

Posted: 24 Feb 2011, 02:10
by Jan
Hi, not sure which component you mean, if phoca pdf or phoca font. If phoca font, you can set the class for the area which you want to use the font only.

Jan

Re: Using fonts only in certain articles

Posted: 06 May 2011, 18:37
by reytercero
ok... but how use diferent font type?? IN PHOCA FONTS
ONLY CAN USE THE NORMAL TYPE

div.moduletablebillboard_mensaje a{
font: 36px dejavusans;
}

BUT HOW TO USE OTHER TYPE...? LIKE light or bold??? without the clasic tags, just usig the font variant types included in the font pakage (in xml & .ttf files)... ?

Re: Using fonts only in certain articles

Posted: 09 May 2011, 23:23
by Jan
Hi, some of the fonts have different varians, so if you set bold, etc in css, this should be taken:

This is code of the plugin:

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;
				   }
				   // - - - - - -
				}
if the font included italic and bold, specific css for this will be displayed.

Jan