You are not logged in.
Pages: 1
Hello!
I'm having problems with some 3 and 4 byte characters in PDFs, they come out as [] boxes. I've got the example code here, as I understand the font should have the glyph (fallback font is the same Arial Unicode MS as well) but it won't print many 3-4 byte characters. Is this just something not supported yet or am I missing something?
Doc:=TPdfDocumentGDI.Create;
Doc.AddPage;
Rect := TRect.Create(10, 10, 200, 200);
Doc.VCLCanvas.Font.Name := 'Arial Unicode MS';
Doc.VCLCanvas.TextRect(Rect, 20, 20, '?'); // Text is either directly pasted character from http://www.i18nguy.com/unicode/supplementary-test.html#utf8 or read from .txt file
Doc.SaveToFile('test.pdf');
Offline
XE8 currently.
Offline
Tried turning UniScribe on and off with various settings, no luck. Interestingly with UniScribe on 4 byte characters render as single boxes, with UniScribe off those characters are rendered as two overlapping boxes.
Offline
Pages: 1