Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Font size in inches
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00337469
Message ID:
00337655
Views:
14
1 point = 1/72 Inches therefore 72 points = 1 Inch.

An simple way to get the approx. length of the text would be to use the VFP TxtWidth function and apply the maths above.

lnPixelsX = txtwidth(lcString, lcFontName, lnFontSize) * ;
fontmetric(6, lcFontName, lnFontSize)

lnInchesX = lnPixelsX / 72
Previous
Reply
Map
View

Click here to load this message in the networking platform