|
Posted by EvilJordan on 02/11/06 22:30
Yes, I understand arbitrary fonts can't be used on a webpage. PHP handles
this on the server, with any font you install on the server, then spits out
an image to the client's website. Look at the functions imagettftext and
imagepstext.
Here's an example: http://www.stewartspeak.com/dtr/demo/
And yes, I'm saying if you start typeing with any font in PHP using the TTF
functions, PHP GD ignores the built in Kerning. ImageMagick does not, but
doesn't have native PHP front end support, and MagickWand is a POS.
"Tim Roberts" <timr@probo.com> wrote in message
news:3c0ru1let7j7vulbitu371b6ebn471468c@4ax.com...
> "EvilJordan" <EvilJordan@aol.com> wrote:
>>
>>Has anyone else encountered the problem of TTF files when called upon to
>>generate text in PHP don't seem to have their kerning values applied? Has
>>anyone figured out how to fix it?
>
> I don't understand the connection with PHP here. Are you saying, for
> example, that this doesn't look right:
>
> <html><body>
> <span style="font: 14pt Comic Sans MS">Testing</span>
> </body></html>
>
> You understand that you can't use arbitrary font files in a web page,
> unless the browser's system also happens to have that font installed?
>
> If I've misunderstood your question, try it again with an example.
> --
> - Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc.
[Back to original message]
|