Page 1 of 1

[solved] pcdtr - font replacement

Posted: Mon Oct 25, 2010 3:27 pm
by manuel
Dear All,

I'm trying to use pcdtr (font replacement) in cmsms 1.8.2 "Toliara".
http://code.google.com/p/pcdtr/

When I upload the test script and use it outside of cmsms everything is working fine but I can't seem to get it working with cmsms...  :-[

I've followed instructions and added the following code to the template:

Above in template: {literal}{/literal}
Below in template: {literal}{/literal}
In the : {literal}{/literal}
I replaced the "Docset" and "Chartype" to match the ones used in the demo

The styles from pcdtr/styles.css are being applied but the font-replacement itself doesn't seem to work.

In the readme file the following is stated:
If you are using this script in a CMS that doesn't allow you to use output buffering functions, simply comment the line with `ob_start('PCDTR_init');` in the class.php file and, in your code, execute PCDTR_init($buffer); with your generated content string.
If you have any advice on how to accomplish this, I would love to hear it! :)

Greetings,
Manuel

Re: pcdtr - font replacement

Posted: Mon Oct 25, 2010 5:23 pm
by Dr.CSS
I don't know about any of that but I do know you have to change a setting in the config.php to allow php usage and since none of that has any {   }  in it there is no need to use {literal}...

I find http://www.fontsquirrel.com/fontface way easier to use than any others, no need for php etc...

Re: pcdtr - font replacement

Posted: Tue Oct 26, 2010 12:28 am
by manuel
Thx for the site tip!!

I'll try using @font-face a.s.a.p.! Now that i've read a little about it, it seems strange i didn't use it sooner... Sometimes the solution is indeed to use what is already available  ;D
Great browser support too it seems! Just too bad IE has to be the ........ (fill it out for yourself) and not support .ttf or we would actually have something that works for all browsers!

Greetings,
Manuel

Re: [solved] pcdtr - font replacement

Posted: Tue Oct 26, 2010 9:09 am
by Dr.CSS
I use it and it works in IE6,7,8...

Header text, menu, slider, h1,2 etc...

http://www.newrivergorgecvb.com/