-
AuthorPosts
-
December 9, 2009 at 3:57 pm #146726
… it does not work! :((
I read this thread > http://www.joomlart.com/forums/topic/using-cufon-font-options/THEN :
templateDetails.xml
before
</params>
</install>
I put :
<param name="@title" type="japaramhelper" label="CUFON" description="Cufon text replacement" />
<param name="ja_cufon" type="list" default="1" label="Enable Cufon" description="Chose Yes if you want replace text in headers on your site. It does not support Unicode">
<option value="0">No</option>
<option value="1">Yes</option>
</param>AND :
at head.php in templates/ja_purity_ii/layouts/blocks I put:
<?php if ($this->getParam('ja_cufon')) : ?>
<script language="javascript" type="text/javascript" src="<?php echo $this->templateurl(); ?>/libs/cufon/js/cufon-yui.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->templateurl(); ?>/libs/cufon/fonts/MyFont1_400.font.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->templateurl(); ?>/libs/cufon/fonts/MyFont2_400.font.js"></script>
<script type="text/javascript">
Cufon.replace(
'.componentheading, .contentheading, .ja-zintitle a, div.moduletable h3, div.moduletable_menu h3, div.moduletable_text h3, div.moduletable_highlight h3',
{ fontFamily: 'MyFont1' }
);
Cufon.replace (
'.div.h1.componentheading',
{ fontFamily: 'MyFont2' }
);
</script>
I have checked thr paths
… I don’t understand … where is the error?
Plese help me. Thanks!P:S: Joomla v.1.5.15 – cufon 1.0.9 – template ja_purity_ii – I tried various fonts with http://cufon.shoqolate.com/generate/
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
December 9, 2009 at 5:14 pm #326203I know why it does not work, it is a bug I reported to cufon developers. It seems there are some problems with the font generator and CMSs.
You have to create your fonts without these options (uncheck them on font generation)
If allowed, optimized paths may differ from the original by at most units
Allow path optimization
Include kerning tables (improves readability but slightly increases file size)
Also, try to make sure your server serves gzipped JavaScript. 70-80% drops in file size are not unheard of.
I hope it helps,
DannyDecember 9, 2009 at 5:38 pm #326207Thanks Korb!
I found the options and I’ve unchecked ….
but it does’nt work ! I don’t now …🙂 Thanks
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
July 4, 2010 at 1:27 pm #348898hey there. i have read all the posts and the topic he mentioned.
I can’t even use the fonts in the cufon/fonts folder. Whenever i change the names in head.php can’t make cufon work. Also tried to enable it in params.ini or in template options. All i can use is Bebas font.
i will really apreciate any comment. since i need to use turkish characters.
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by shuttlemunky 14 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum