Publish module in Linux system using Chinese fonts, Chinese display normal, English display messy code

    A3DPDFTextDataEx sTextData;
    A3D_INITIALIZE_DATA(A3DPDFTextDataEx, sTextData);
    sTextData.m_pcFontName = PUBLISH_FONT_NAME;
    sTextData.m_iFontSize = fontSize;
    sTextData.m_sColor.m_dRed = textColor.red;
    sTextData.m_sColor.m_dGreen = textColor.green;
    sTextData.m_sColor.m_dBlue = textColor.blue;
    sTextData.m_bEmbedFontInPDF = true;
    sTextData.m_pcTextString = (A3DUTF8Char*)text.c_str();
    sTextData.m_eLanguage = kA3DPDFLangAutoDetect;
    A3DPDFText* pText = NULL;
    A3DStatus iRet = A3DPDFTextCreateEx(m_pDoc, &sTextData, &pText);

PUBLISH_FONT_NAME is AdobeHeitiStd-Regular, What to do to resolve this problem?

Hi Jianhong,
Thanks for reporting this issue. We were able to reproduce the issue in a Linux environment. We’ll keep you updated on our progress in fixing this in this thread. Thank you.

Best Regards,
Man

1 Like