Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get an enumeration of the available font sizes
Message
De
25/02/2009 14:51:58
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
 
 
À
25/02/2009 12:29:11
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01384094
Message ID:
01384154
Vues:
41
>I have code that can get the available fonts...no big deal. What I need to know is how to find the available font sizes for a specific font.
>
>Is there an easy way to get the font sizes? These will be used in a richtext control. Thanks!!

If they're scalable fonts (e.g. TrueType) I'm not sure there's such a thing as "available sizes". For example, in Word you may be offered sizes 20, 22 and 24 point when formatting text, but there's nothing stopping you from typing in 21.5 point in the size box, and that's what you'll get. Word seems to impose some restrictions (you can't use 22.89, for example) but in principle I think you can use an arbitrary value.

My understanding is a practical lower limit for font sizes is 3 or 4 point, using fonts optimized for small sizes (e.g. phone books) such as Bell Centennial. I don't know if there is any upper limit, it seems to be over 1,000 point: http://discuss.joelonsoftware.com/default.asp?joel.3.458979.11
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform