Sign in to follow this  
Followers 0
irtheman

String Display Width

6 posts in this topic

Is it possible to determine the display width of a string before it is displayed?

I am thinking of something similar to TextWidth in VB6 where you can get the

graphic width of a text string as it relates to the current font. Ideas?

Thanks!

Matthew

Share this post


Link to post
Share on other sites



I guess some implmentation of GetCharWidth32() or GetCharWidthFloat() (GDI32) could do this.

You can get a general idea for a specific font by trying it out and getting some averages...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0