G
Guest
Hello all,
I have a WYSIWYG editor which uses Graphics.DrawString to render it's
text. The Font size is scaled based on the sized of the form and everything
looks the same, no matter how you resize the form (i.e consitent word
wrapping).
I tried switching to TextRenderer.DrawText and cannot get consistent results
: when resizing the form, word wrapping is inconsistent : sometimes a word is
at the end of a line and sometimes the word wrap to the next line.
I used the TextFormatFlagsUtil (see MSDN Mag, March 2006) to match the flags
I'm using with DrawString --> DrawText.
Any idea / reason why I can't have consistent results ??
thank you
I have a WYSIWYG editor which uses Graphics.DrawString to render it's
text. The Font size is scaled based on the sized of the form and everything
looks the same, no matter how you resize the form (i.e consitent word
wrapping).
I tried switching to TextRenderer.DrawText and cannot get consistent results
: when resizing the form, word wrapping is inconsistent : sometimes a word is
at the end of a line and sometimes the word wrap to the next line.
I used the TextFormatFlagsUtil (see MSDN Mag, March 2006) to match the flags
I'm using with DrawString --> DrawText.
Any idea / reason why I can't have consistent results ??
thank you