You are not logged in.
Pages: 1
How to set the font encode using unicode (UTF8) instead of Ansi?
Offline
Which class are you using?TPDFCanvas, or the VCL TCanvas class?
You have Unicode methods in TPDFCanvas.For the VCL TCanvas, you can use directly the Windows Unicode APIs, just like with any VCL drawing.
I use the following :
pdfDoc.Canvas.SetFont('Arial', 10,[]);pdfDoc.Canvas.TextOutW(10, 10, 'abc');
Thanks!
TextOutW() will use Unicode, and encode them as expected.