Using fonts only in certain articles
-
- Phoca Member
- Posts: 10
- Joined: 02 Jul 2010, 10:34
Using fonts only in certain articles
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.
-
- Phoca Newbie
- Posts: 5
- Joined: 16 Feb 2011, 12:33
Re: Using fonts only in certain articles
Perhaps in the final version ?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Using fonts only in certain articles
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 1
- Joined: 06 May 2011, 18:28
Re: Using fonts only in certain articles
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)... ?
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)... ?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Using fonts only in certain articles
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:
if the font included italic and bold, specific css for this will be displayed.
Jan
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;
}
// - - - - - -
}
Jan
If you find Phoca extensions useful, please support the project