Hello,
I'm having some very confusing problems with the StringFormat class. I'm hoping someone will know what's going on.
I want to draw text right-to-left. It's multiple lines so I figured using the StringFormat class was an easy way to handle that, I declare it as:
StringFormat f = new StringFormat(StringFormatFlags.DirectionRightToLeft);
Then i pass it along to the DrawString function in Graphics.
The problem is that when the string being drawn ends with a non-alphanumeric character (!, ?, >, ., etc.) it gets draw on the wrong side of the string
For example, "hello!" is being drawn as "!hello"
I tried messing around with the properties of StringFormat but it's not helping, anyone have any ideas?