.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:

Make a dim measurement as the size

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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -