How to get width and height of string on the screen?

Posted by Tomek Tarczynski on Stack Overflow See other posts from Stack Overflow or by Tomek Tarczynski
Published on 2010-03-20T14:52:40Z Indexed on 2010/03/20 15:01 UTC
Read the original article Hit count: 315

Filed under:
|
|
|
|

Lets say I've a string and some font (name, size, etc...).
How to get width and height, measured in pixels, of such string displayed on the screen?

© Stack Overflow or respective owner

Related posts about font

Related posts about width