Reply to Re: Calculate length of string in pixels?

Your name:

Reply:


Posted by JDS on 07/31/05 01:17

On Sat, 30 Jul 2005 13:15:56 +0200, Bas Varkevisser wrote:

> I need to calculate the length of a string in pixels to see if a text
> exactly fits in a fixed-width table.

Impossible.

The work-around I suggest is putting your text into a GIF or other image
using a combination of TTF fonts and the GD functions in PHP.

http://www.newtnotes.com/index.php?itemid=105&catid=4

--
JDS | jeffrey@go.away.com
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

[Back to original 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

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