vb.net sinhhala unicode

14 views
Skip to first unread message

චන්දන

unread,
Feb 27, 2015, 12:20:44 AM2/27/15
to tech...@googlegroups.com
hello

have printing problem with sinhala unicode

code:

Dim printFont As Font = New Font("iskoola pota", 12, FontStyle.Regular)
Dim printString As String = "ගුණවර්ධන ස්ටෝර්ස්"
e.Graphics.DrawString(printString, printFont, Brushes.Black, e.MarginBounds.Left, e.MarginBounds.Top)



see attached picture for result

howto fix this?




result.JPG

Harshana

unread,
Feb 27, 2015, 3:56:47 AM2/27/15
to tech...@googlegroups.com
use TextRenderer.DrawText() -- https://msdn.microsoft.com/en-us/library/system.windows.forms.textrenderer.drawtext%28v=vs.110%29.aspx

E.G. TextRenderer.DrawText(e.Graphics, printString, printFont, new Point(100, 100), Color.Black);  





--
ටෙක්කතා සමූහය සඳහා ආචාර ධර්ම http://www.techkatha.com/rules-and-regulations/

ඔබට මෙම පණිවිඩය ලැබෙන්නේ ඔබ Teckකතා හි සාමාජිකයෙක් බැවිනි.
ලිවීම සඳහා tech...@googlegroups.com වෙත ලියන්න.
Teckකතා හින් ඉවත්වීම සඳහා http://googlegroups.com/group/techkatha/subscribe වෙත යන්න.

වෙබ් අඩවිය http://www.techkatha.com
---
You received this message because you are subscribed to the Google Groups "Techකතා" group.
To unsubscribe from this group and stop receiving emails from it, send an email to techkatha+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Cheers !,
Harshana
Reply all
Reply to author
Forward
0 new messages