Release Notes
Abstract
When you generate documentation for a project in the Simplified Chinese or Traditional Chinese locale, you notice all the Chinese strings are displayed as number signs (#) in the resulting PDF file.
Content
Diagnosing the problem
For the double-byte characters to show up correctly, you must override the fonts used in the third page of the Documentation Generation wizard and supply a double-byte font. However, in Windows 10 there is an issue with the third-party library used to generate the PDF file: it gives an exception without any reason. The same tests on Windows 7 work and generate the file correctly.
Resolving the problem
To correct this font issue, following this procedure:
- Go to the Layout Settings page in the wizard (third page).
- Select Overwrite Default Fonts and click Fonts.
- In the Documentation Style Settings page, click Manage fonts.
- In the Manage Documentation Fonts page, click Add.
- In the Add Documentation Font page, browse to and select an appropriate double-byte font file (such as C:\Windows\fonts\msjh.ttc on Windows 10).
- If required, specify the font name (such as Microsoft JhengHei UI).
- Click Create CID-keyed font metrics.
- Click OK.
- Click OK again.
- In the Documentation Style Settings page, change all the fonts to the new one you just added and click OK.
- Click Finish.
The document should now be created correctly.
Product Synonym
IID
Was this topic helpful?
Document Information
Modified date:
28 November 2018
UID
ibm10732407