Font width

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I measure the width of a character based on a special font on a Label
control? (windows application)
 
Hi Amir!
hehe.. (private joke)

Graphics.MeasureXXXX
where XXX is either CharacterRanges or String
 
hehe..! (what do u mean?)

and also the MeasureString dose not measure correctly. Should I set any
specific argument?
 
actually measure Character range is better.
Anyway a while back I played with this function and had the same problem,
yep the mesure is incorrect...
I know not any work around.

Anyway maybe you could try PInvoking with GetTextMetrics / GetCharWidth32 /
GetCharWidthFloat / etc... / ???

hehe.. you looks very much like someone else...
 
Back
Top