String width API call

  • Thread starter Thread starter Bob Berry
  • Start date Start date
B

Bob Berry

Is there an API function that will return the width (in pixels) of a text
string, given a font and font size?
 
Did you see GetTextExtentPoint32()?

In .NET there is Graphics.MeasureString()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top