Skip to Content
avatar image
Former Member

Chinese Characters on Adobe Forms with Smartforms Style?

Hi, I have an Adobe form that contains a text field that is populated using a SmartForms Text Module. In the Form Context I have Copy Style From Text Module checked. I am using the default SYSTEM Smartform Style which uses the Courier font. The Smartforms Text Module I am using contains several lines in Bold print.

This process works correctly for Latin 1 languages but not for Simplified Chinese (ZH). When I do a print preview or a print of the form in Simplified Chinese. Bold and Normal Chinese characters are mixed on the same line (see attached image). The font appears to be Helvetica or Arial, not Courier. The Smartforms Style does not appear to be applied correctly to the text.

Any suggestion how I can get the Smartforms Style to work correctly with Simplified Chinese on an Adobe Form?

ZH_Form.jpg (19.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Hello All,

    I went through a lot of links to find the answer to this question :

    "I am having problem with Chinese font (SimSun/Adobe_Heiti*) that it can not be bold partially.

    For e.g - I am Bold and I am not."

    The only solution we found was to use font Adobe Heiti Std R, which makes the entire text bold.

    If anyone has a found a way to display chinese texts partially bold, please help.

    Best Regards

  • Follow
  • Get RSS Feed

5 Answers

  • Sep 12, 2013 at 09:32 AM

    Hi,

    Please mention the style name in the Context tab as shown below......

    ---

    Naveen


    1.JPG (9.8 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 10, 2013 at 02:12 PM

    Hi,

    I am also facing same problem. Kindly help to resolve this.

    Thanks and regards,

    Bhushan

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 11, 2013 at 09:10 PM

    The problem is only because of the Font Type you are using for printing Chinese characters.

    Always remember that you should specifically use the Chinese fonts for Chinese text. The simplest Chinese font examples are SimSun or PmingLiU.There are many other such fonts. These fonts are specifically designed for Chinese typesetting. Font sizes, indentation, name translation, line spacing, everything is set.

    Why Courier does not work for Chinese?

    Its simple. Because it is designed that way. That font was designed for Latin and some other languages. So if you are trying to print Chinese font with Courier, what SAP does is instead of showing JUNK, it replaces to nearest font type in which Chinese text can be shown. And in your case its Helvetica or Arial.

    Workaround for this problem

    Instead of using Smart Styles, you can Implement dynamic fonts in your forms. Check the language in which you are printing the form and depending on the language pick the suitable font from a source like Database table and using Java script, change the Font property of the text fields at run time before rendering the PDF.

    suppose you have a text field field1 and you want to change its font property dynamically, then write the script on this field as below.

    this.font.typeface = var.rawvalue;

    Here var will contain the name of font you fetched earlier depending on the language.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 02, 2014 at 12:34 PM

    Hello,

    The problem is the different code-page for chinese-forms.

    You have two solutions.

    First you change the xfa.xci data on java-server(ADS). This change the mapping for all forms and the specified codepage.

    In second case, you define a font-mapping for each form and language.

    This solution:

    In ABAP go to SM31

    Change the table FPFONTREPL

    Here you define a mapping for font-styles for each form and each language.

    In our case we define:

    Formname = MEDRUCK_PO

    Language = ZH(Chinese)

    Source Font = Arial_*_*

    Target Font= SimSun_*_*

    Now our forms get out of printer in correct way whitout different bold characters.

    This solution is based on sap note 1489570

    If you have any questions, ask me.

    The solution is now active and we don't have problems yet.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Former Member,

      I am having problem with Chinese font (SimSun) that it can not be bold partially.

      For e.g - I am Bold and I am not.


      Either whole textfield is bold or whole textfield is normal.

      Can you help me in this problem?

      - Chandler Bing

  • Sep 09, 2014 at 11:44 AM

    Hi Former Member,

    Have you solved the problem?

    I am having problem with Chinese font (SimSun) that it can not be bold partially.

    For e.g - I am Bold and I am not.


    Either whole textfield is bold or whole textfield is normal.

    Can you help me in this problem?

    - Chandler Bing

    Add comment
    10|10000 characters needed characters exceeded

    • Hello All,

      I went through a lot of links to find the answer to this question :

      "I am having problem with Chinese font (SimSun/Adobe_Heiti*) that it can not be bold partially.

      For e.g - I am Bold and I am not."

      The only solution we found was to use font Adobe Heiti Std R, which makes the entire text bold.

      If anyone has a found a way to display chinese texts partially bold, please help.

      Best Regards