[drupal-devel] Dynamic Text Replacement

Jeff Robbins lists at jjeff.com
Thu Mar 24 13:17:31 UTC 2005


On Mar 23, 2005, at 3:09 AM, Solon wrote:
>
>> On Wednesday 23 March 2005 07.52, Solon wrote:
>>> I plan on making themes with 'fancy' or non standard fonts. The only
>>> other practical way, opposed to CSS is to use PHP and GD, to replace
>>> the text with images.
>>
>> The best way I know of is using JS, CSS and Flash, called sIFR:
>>
>> http://www.mikeindustries.com/blog/archive/2004/08/sifr
>>
>> This works nicely and also degrades nicely.
>
> This method is dependant on flash, while the other is PHP. I feel that 
> the one that runs PHP is more practical because it can be integrated 
> easily with Drupal, and will be compatible with all users who run 
> Drupal. With flash, it throws another requirement in the mix, and I 
> feel, at a users end, it will be much better to use the PHP file.

The only problem with the PHP-only version is that the 'fancy' fonts 
would need to be installed on the web server. Most web servers don't 
have many fonts installed because their primary function is not GUI. 
You would require the Drupal admin to install fonts on the server. And 
in addition to being a pain in the butt, many shared/virtual server 
hosting companies won't allow it.

The sIFR stuff is very cool, surprisingly well supported, and you can 
use any font you want without having to install anything on the server 
system.

-Jeff




More information about the drupal-devel mailing list