Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FONTMETRIC() does not give proper value
Message
 
À
04/12/2002 05:39:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00729344
Message ID:
00729350
Vues:
14
Hi,

> In my application I need to generate the user defined generic Data entry screen. User has got option to select the required FONT and SIZE. I am trying to make use of FONTMETRIC() to calculate the width of each Text Box. FONTMETRIC() gives proper value for ARIEL font. But it is not proper with COMIC SANS MS and VERDANA (example) Fonts. Is there any better way to calculate the WIDTH of TEXTBOX?

I noticed in some tests I made a long time ago, that either FONTMETRIC() or TXTWIDTH() sometimes are sensitive to the font used in the current form, even if supplying the arguments for the font name and size. You could temporarily set the current form's font properties according to the font you want to check and try these funtions again.

Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform