Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculating pixels of a string
Message
De
17/05/2010 14:59:02
 
 
À
17/05/2010 13:44:56
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01464824
Message ID:
01464927
Vues:
31
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform