"arunapai0603" <arunapai0603.20ad1y (AT) no-mx (DOT) forums.yourdomain.com.au> wrote in
message news:arunapai0603.20ad1y (AT) no-mx (DOT) forums.yourdomain.com.au...
Quote:
can anybody plz help me...
i wanna know how can i get width of a character.in a column i can enter
maximum of 255 characters.
in verdana style...,only the letter "m" is creating a problem.
due to letter m, the alignment of the column is distorted.
plz reply as soon as possible....
--
arunapai0603 |
AFAIK, you can't with pure script. But since you have posted to the dotnet
scripting, you *should* come close if all end-users are have Verdana (which
should be installed) on their local machine and haven't changed any other
font settings on the browser(s) they are using. You can *guess* the font
size by creating a .Net DLL and use the Graphics.MeasureString method. Of
course, this would have to be done client-side (due to different
settings/hardware on server than on client).
If you tested writing a server-side solution using MeasureString, and ran it
on your client (while your server/client while developing are the same
solution), you would get a false-positive because your server-settings are
the same as your client-settings because they are the same computer.
Anywho, just a way to do it...I don't recommend it...but it's a way :P
HTH,
Mythran