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
Who is Participating?
mark2150Connect With a Mentor Commented:
w = TextWidth( YourString$ )
h = TextHeight( YourString$ )

This will give you size in twips of contents of YourString$


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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.