Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FONTMETRIC() does not give proper value
Message
 
To
04/12/2002 05:39:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00729344
Message ID:
00729350
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform