Output file don't contains text which use Arial font.

KB-20231209-01

Version

XFRX 22.4

Symptoms

Output file don't contains text which use Arial font.

Cause

  • Text field has sets Arial font.
  • Text field uses <UTF8> or <UC> or report uses code page one of from list: CP_HEBREW, CP_ARABIC, CP_KANJI, CP_GB2312, CP_CHINESEBIG5, CP_UTF16LE, CP_UTF16BE

XFRX 22.4 automaticaly substitute font Arial to Arial Unicode MS, if codepage is utf8 or utf16, and don't test if destination font exists.

Workaround

 Disable UCS2 characters coding.

LOCAL m.loSession
m.loSession=EVALUATE([xfrx("XFRX#INIT")])
m.lnRetVal = m.loSession.SetParams("some.pdf", ,.T., , .T., ,"PDF")
IF m.lnRetVal=0
   m.loSession.SetOtherParams("UCS2ALLOWED",.F.)
   *...
ENDIF