Using fonts only in certain articles

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
finc
Phoca Member
Phoca Member
Posts: 10
Joined: 02 Jul 2010, 10:34

Using fonts only in certain articles

Post 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.
lordbdp
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 16 Feb 2011, 12:33

Re: Using fonts only in certain articles

Post by lordbdp »

Perhaps in the final version ? :|
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Using fonts only in certain articles

Post 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
If you find Phoca extensions useful, please support the project
reytercero
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 06 May 2011, 18:28

Re: Using fonts only in certain articles

Post 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)... ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Using fonts only in certain articles

Post 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
If you find Phoca extensions useful, please support the project
Post Reply