.net - Graphics.MeasureString allowing too much whitespace -
I am using a function to call for part of a text to be sung in an area. The basic function of the function is:
With this problem, the measurement string is Drawing lots of white spaces around the drawing string, and the last font is seldom rendered.
I'm sure that I remember some logic that might be ready to remove all the padding with someone MeasureString method, but my searches do not turn anything in the present.
Do anyone know how to use the measurement string to measure the exact size of the string without any limit?
CodeProject is an article that bypasses it:
Comments
Post a Comment