Posted 16 November 2017, 5:50 pm ESTWe are trying to rep[lace our use of Arial Unicode MS with Google Noto fonts.
In particular when trying to use a Chinese font I get the following error in the windows event viewer when trying to generate the PDF
The VB Application identified by the event source logged this Application SessionManager: Thread ID: 7444 ,Logged: GTIReports Error: Visual Basic Error Number: -2147467259 Description: ActiveReports PDF export DLL error
Error 212:Couldn't export PDF using font 'Noto Sans CJK SC Thin' because characters referencing this font could not be represented with the character encoding 'WinAnsiEncoding.'
Here is a subseet of the code
Public Const REPORT_FONT = "Not Sans CJK SC Thin" '"Arial Unicode MS"
If ReportFormatType = enmPDF Then
Set objPDFExport = New ActiveReportsPDFExport.ARExportPDF
objPDFExport.AcrobatVersion = DDACR40
objPDFExport.SemiDelimitedNeverEmbedFonts = ""
objPDFExport.ExportStream objReport.Pages, objOutputStream
Interestingly if I set objPDFExport.SemiDelimitedNeverEmbedFonts = REPORT_FONT then it works but the Chinese characters appear as boxes.
Is it possible to use other fonts other than Arial Unicode MS? Why does Arial Unicode MS not have the same issue?