Get width and font of a character ?
-
Hi All, I wanna get the width and height of a character with font "Arial" or any fonts, do you have any solution for this case ? Thanks
Try GetTextExtent - this will give you the width/height of a string (make sure the corrent font is selected into the DC). There is more than one way to do this - maybe others will respond...
The Rob Blog
Google Talk: robert.caldecott -
Hi All, I wanna get the width and height of a character with font "Arial" or any fonts, do you have any solution for this case ? Thanks
kendao wrote:
I wanna get the width and height of a character with font "Arial" or any fonts, do you have any solution for this case ?
Is GetCharWidth() api of any help
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV