You are here: Re: question about imagettftext (and flash) « PHP Programming Language « IT news, forums, messages
Re: question about imagettftext (and flash)

Posted by Toby A Inkster on 04/10/07 15:07

Steve Belanger wrote:

> flash works in point size, GD2 works also in point size, should it not be
> normal that by using the point size right away it should find the proper
> spot and ouput the text the way it was set in flash?

Points don't make very much sense in digital media. One point is defined
as exactly 1/72 of an inch (or just a little bit over 1/3 of a millimetre).
As different screens have different resolutions, there isn't a fixed
ratio for converting from points to pixels. Probably your problem is
caused by the Flash software and GD2 using different methods to convert
from points into pixels.

I'd recommend switching to using pixels in both Flash and GD2, or figure
out what the difference is as a percentage, and have your PHP script
adjust the numbers accordingly.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация