#1 Re: mORMot 1 » Cannot compile newer versions with Delphi 2009 » 2016-11-16 14:35:06

The solution for this problem can be found here:
  http://stackoverflow.com/questions/7630 … -nativeint

NativeUInt is broken in D2009.

#2 Re: mORMot 1 » Unicode Strings in PreviewForm » 2016-11-14 16:58:59

Problem was solved by setting the font from the default to this:

Font.Name := 'Arial Unicode MS';

After that, the preview showed the characters as expected.

#3 mORMot 1 » Unicode Strings in PreviewForm » 2016-11-12 03:23:32

dbetts
Replies: 1

When I add this code:

DrawTextAt('普罗朗生物电导扫描仪检测报告单', 80);
...
EndDoc;
ShowPreviewForm;

The Preview Form only shows [] or ?? instead of the Chinese characters. However when printing the PDF from the Preview Form, the Chinese characters show up as expected.

What might I need to do in Delphi 2009 (with Unicode) to see the Chinese characters within the Preview Form?
Chinese characters are showing up everywhere else throughout our application, just not in the Preview form.

I have tried the following:
* File Format of the source file is UTF-8
* Tried applying all of the available character conversion functions to the Chinese characters

EDIT: I have added a link to an image to better show the problem we are trying to solve:
InvalidChars.png

Board footer

Powered by FluxBB