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 =;
    sTextData.m_sColor.m_dGreen =;
    sTextData.m_sColor.m_dBlue =;
    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,

1 Like