Re: [PHP] Pixel Length of text message

2002-04-29 Thread heinisch
At 29.04.2002 10:17, you wrote: > >In html/css you can set a font size in pixels -- in my experience this >means a letter takes the same number of pixels, regardless of >resolution. With php, can I use string length and font pixel size to >determine the length of a given string on a screen? Does

Re: [PHP] Pixel Length of text message

2002-04-29 Thread Jan Peuker
Font-size is the height of text, the width is changing w/ every font (e.g. i and m). If you use exactly one font, you may use an array of widths(which you measured before), but that's not really exact. Perhaps, a way would be to use temporarly gd (ttfbox and/or imagefontwidth), but I don't know ho

Re: [PHP] Pixel Length of text message

2002-04-29 Thread 1LT John W. Holmes
t a little more. ---John Holmes... - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 29, 2002 12:31 PM Subject: Re: [PHP] Pixel Length of text message > On Tuesday 30 April 2002 00:17, District Webmaster wrote:

Re: [PHP] Pixel Length of text message

2002-04-29 Thread Miguel Cruz
On Mon, 29 Apr 2002, District Webmaster wrote: > In html/css you can set a font size in pixels -- in my experience this > means a letter takes the same number of pixels, regardless of > resolution. With php, can I use string length and font pixel size to > determine the length of a given string on

Re: [PHP] Pixel Length of text message

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 00:17, District Webmaster wrote: > In html/css you can set a font size in pixels -- in my experience this > means a letter takes the same number of pixels, regardless of > resolution. That may (or may not) be true, but that's referring to the height of the font. > With