To render right-to-left text using GDI in C#, you need to set the RightToLeft property of the control to RightToLeft.Yes and then set the RightToLeftLayout property to true. Here's an example:
main.cs539 chars18 linesNote that you also need to set the FormatFlags property of the StringFormat object to StringFormatFlags.DirectionRightToLeft to ensure that the text is correctly aligned from right to left.
gistlibby LogSnag