Jump to content

Recommended Posts

Posted

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

Posted

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...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...