Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating pixels of a string
Message
From
17/05/2010 14:59:02
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01464824
Message ID:
01464927
Views:
32
>A font is a font. But there's no guarantee that the font you specify exists on the browser. It will use the best match it has.

We use a standard font. And, having a font similar to the one we need would do.

>And a pixel is a pixel - but counting the pixels for a specific font size on the server doesn't take into account the resolution on the browser.

This is styled into the page. So, the obtained value should be pretty close to what we need.

>I think the best chance of getting it right is to do the calculation on the browser. That said, I might be wrong about this - it's a pretty confusing subject (at least for me :-} )

At first, I would like to try it from Windows. Do you know of any class I could use at the .NET level to benefit of such a need?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform