I found the Font display incorrect when I enter some of 2 THAI character font for example chr(202)+chr(161) , chr(203)+chr(162) , chr(202)+chr(164) etc. , It may be problem from unicode character,
We have done some tests and found this problem. Is this the problem you are reporting?
Individual characters are displayed correctly, but when concatenated we see a totally different text.
Source:
#include "fivewin.ch"
// Thai ANSI chars
function Main()
local oFont, oThai
local aChar := { ;
{ 202, 161, nil, nil, nil, nil }, ;
{ 202, 161, nil, nil, nil, nil }, ;
{ 202, 161, nil, nil, nil, nil } }
AEval( aChar, < |a,i|
a[ 3 ] := Chr( a[ 1 ] )
a[ 4 ] := Chr( a[ 2 ] )
a[ 5 ] := a[ 3 ] + "+" + a[ 4 ] + '='
a[ 6 ] := a[ 3 ] + a[ 4 ]
return nil
> )
DEFINE FONT oFont NAME "Segoe UI" SIZE 0,-32
DEFINE FONT oThai NAME "Segoe UI" SIZE 0,-64 CHARSET 0xDE
XBROWSER aChar TITLE FWVERSION SETUP ( ;
oBrw:oDataFonts := { oFont, oFont, oThai, oThai, oThai, oThai }, ;
oBrw:cHeaders := { "ASC1","ASC2","CHR1","CHR2","CHR1+CHR2=","RESULT" }, ;
oBrw:nDataStrAligns := AL_CENTER, ;
oBrw:nHeadStAlighns := AL_CENTER );
AUTOFIT
RELEASE FONT oFont, oThai
return nil
We are looking into the issue.
What FWH version you were using before upgrade? This information helps us.
I tested with FWH1905 also but the behavior is the same.