Link to home
Start Free TrialLog in
Avatar of lesa
lesa

asked on

Finding the size of the font

Is there any way that I can find the size of font in twips or pixels. Like if I have a font courrier new and size 11 then how can I find how many twips or pixels will it take for the system on which it is running. I am using VB 5.0
ASKER CERTIFIED SOLUTION
Avatar of mark2150
mark2150

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mcix
mcix

You might try out the TextWidth Method:

Something like this:

MsgBox Me.TextWidth("THIS IS A TEST")

I believe it returns in Twips by default.