Bug Report B146274
Visible to All Users

Chinese characters become '?' in PDF or bold style lost

created 15 years ago

Report contains Traditional Chinese in 'SimHei' font face with a combination of normal and bold styles. The report looks fine in preview mode but not in the PDF outputted, either the bold style is lost or the Chinese characters cannot be displayed correctly:

  1. When 'SimHei' is included in embedded font, the bold style is lost, all Chinese characters are displayed in same style
  2. When 'SimHei' is excluded from the embedded font, all Chinese characters displayed as '?' (screen attached)
    I've checked other issues that excluding font from embedded font list should work, but it does not work in my case. 'SimHei' is a standard font for our customer and we must stick to this font.
    Please advise whether DevExpress would fix the 'SimHei' bold style export issue in PDF output; or is there any alternative solutions.
    Steps to Reproduce:
    Report with Chinese characters in 'SimHei' normal & bold style.
    Export to PDF with/without "Never Embedded Fonts" set.
    Actual Results:
    Bold style lost or Chinese characters become '?'
    Expected Results:
    'SimHei' font face with appropriate style (normal/bold) can be exported to PDF just like the preview mode.
Show previous comments (14)
DevExpress Support Team 15 years ago

    Hi Anny,
    Thanks for posting your example. However, this situation is similar to the one described above: you have embedded the RTF text (along with Mail Merge fields) into the xrRichText2 in Report Designer. In this situation, the Microsoft JhengHei font is substituted with a different one. Unfortunately, at present there's no capability to avoid this problem. As an immediate solution, I suggest that you load the RTF content manually, or save it to the database and bind the XRRichText.Rtf property afterwards. Sorry for a possible inconvenience.
    Thanks,
    Alex

      Alex,
      You've mentioned there's no capability to avoid this problem now.
      The immediate solution does not work for our client. Would you consider fixing this problem in coming version? Our client has bought DXperience-9.3.4.100 and would like to have your support to solve this problem.

      DevExpress Support Team 15 years ago

        Hi Anny,
        The approach of loading the entire RTF content into the XRRichText should work fine. If this doesn't work for you, please explain the situation in greater detail, so that we can check whether you are referring to an actual issue we are currently unaware of.
        Unfortunately, I cannot give you an exact estimate regarding the target release date of the feature suggested in the XRRichText - Use the Developer Express XtraRichEdit control as an in-place editor for the XRRichText control at design time ticket. If everything will go according to plan, we'll introduce this feature in the next major update (v2010 vol 2) this year. Please track the suggestion, so that we can keep you informed on our progress.
        Thanks,
        Alex

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.