RE: [PHP] Font problem
| From: | HallMarc Websites | Date: | Tue, 28 Jul 2009 17:51:53 +0000 |
| Subject: | RE: [PHP] Font problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295961@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Jim Lucas [mailto:lists@cmsws.com]
> Sent: Tuesday, July 28, 2009 11:52 AM
> To: Dušan Novaković
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Font problem
>
> Dušan Novaković wrote:
> > Hi,
> >
> > Is there a possibility that if there is no font installed on client
> > side somehow browser finds it and redirect that font form server to
> > client machine. For example: I have site that use Microsoft font and
> > that font is not available on Linux distributions. So when u open
> page
> > in FF on some Linux u get some default font (because browser doesn't
> > recognize that font). I hope that I've managed to explane a problem
> > :-) Does anyone has any solution for this problem??? Please it's very
> > urgent....
> >
> > Thanks,
> > Dusan
> >
>
> It is possible, but you have to use the proper type of font file.
>
> It is usually referred to as "Font Embedding" or "Embedding Fonts"
> using CSS
>
> here are a few pages that show examples of how to do this with CSS
>
> http://www.alistapart.com/articles/cssatten
>
> http://www.webdeveloper.com/forum/archive/index.php/t-37552.html
>
> http://home.tiscali.nl/developerscorner/fdc-varia/font-embedding.htm
> http://www.cameraontheroad.com/index.php?p=524
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> __________ Information from ESET Smart Security, version of virus
> signature database 4285 (20090728) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
Jim has listed some nice alternatives, however, they are limited in their scope. I will point you to
a solution called Cufon. This by far the best I have found to date (IMHO). This is a JavaScript
solution. It will render ANY ttf or rtf font. The common issue you run into is the legal issue. Most
of the fonts we want to use need to be purchased by the end user. The developers of Cufon are in
talks with the Font Foundries to find a solution that will protect the font from being stolen. As of
this writing the Foundries fear that the JavaScript file that is produced from the original fonts
could be reverse engineered and give the font away for free. I have tried to put this file outside
of the root folder of the site and found that I cannot call it. I haven't spent too much time
on this yet. I'm sure there is a way, I just haven't found it yet.
Here is the link to Cufon
http://wiki.github.com/sorccu/cufon/about
the javascript generator can be found here
http://cufon.shoqolate.com/generate/
One more thing and I can't stress this enough - USE AT YOUR OWN RISK!!! In the US Intellectual
Property Theft is one of those laws whereby you are guilty until proven innocent ad each incident
can cost you $100k!
[HallMarc Websites]
__________ Information from ESET Smart Security, version of virus signature database 4286 (20090728)
__________
The message was checked by ESET Smart Security.
http://www.eset.com