Antonio Linares wrote:You can not do it this way:
DEFINE FONT oFont NAME "Verdana" SIZE 8, -12
oFont:nCharSet := 238 // change to East Europe char set
instead, do it this way:
oFont = TFont():New( "Verdana", -12, 8,,,,,,,, 238 )
I changed nHeight with nWidth ( 8 and -12 ) and tested it and no change in program behaviour.
function Main()
local oWnd, oFont, cChar, oFont1, oFont2, oFont3, oFont4
Request Hb_Lang_PLWIN
Request Hb_CodePage_PLWIN
Hb_LangSelect ('PLWIN')
Hb_SetCodePage ('PLWIN')
oFont = TFont():New( "Verdana", 8, -12, .f., , , , , , , ,238 )
oFont1 = TFont():New( "Courier New", 8, -12, .f., , , , , , , ,238 )
oFont2 = TFont():New( "times", 8, -12, .f., , , , , , , ,238 )
oFont3 = TFont():New( "Times New Roman", 8, -12, .f., , , , , , , ,238 )
oFont4 = TFont():New( "Tahoma", 8, -12, .f., , , , , , , ,238 )
DEFINE WINDOW oWnd
cChar := cmonth( date() )
@ 1, 1 SAY cCHar SIZE 234, 17 FONT oFont
@ 2, 1 say "ąćęłń贸śżź " FONT oFont
@ 3, 1 say str( len ( oFont:cFaceName ) )+' ' +oFont:cFaceName
@ 4, 1 SAY cCHar SIZE 234, 17 FONT oFont1
@ 5, 1 say "ąćęłń贸śżź " FONT oFont1
@ 6, 1 say str( len ( oFont1:cFaceName ) )+' ' +oFont1:cFaceName
@ 7, 1 SAY cCHar SIZE 234, 17 FONT oFont2
@ 8, 1 say "ąćęłń贸śżź " FONT oFont2
@ 9, 1 say str( len ( oFont2:cFaceName ) )+' ' +oFont2:cFaceName
@ 10, 1 SAY cCHar SIZE 234, 17 FONT oFont3
@ 11, 1 say "ąćęłń贸śżź " FONT oFont3
@ 12, 1 say str( len ( oFont3:cFaceName ) )+' ' +oFont3:cFaceName
@ 13, 1 SAY cCHar SIZE 234, 17 FONT oFont4
@ 14, 1 say "ąćęłń贸śżź " FONT oFont4
@ 15, 1 say str( len ( oFont4:cFaceName ) )+' ' +oFont4:cFaceName
ACTIVATE WINDOW oWnd
oFont:End()
return nil