Pages: 1
Print
Author Topic: DITA: wrong fonts in PDF generated using XMetaL Enhanced PDF via RenderX XEP  (Read 1673 times)
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2450



WWW
« on: May 16, 2014, 04:02:14 PM »

Products: XMetaL Author Enterprise 9.0.0.047

Issue:
Generating output from DITA using the deliverable "XMetaL Enhanced PDF via RenderX XEP" does not pick up the correct font types from xep.xml and font-mappings.xml. The result is that the only font used in the PDF is "Helvetica". By default some elements should be using a sans-serif font, some using serif and some using monospace. It should also be possible to alter this via the xep.xml and font-mappings.xml files as well as via XSLT / XSL-FO but those types of changes will not be picked up.

The problem is caused by two files being included with the standard edition of XMetaL Author Enterprise 9 by mistake. These files should only be included with our Japanese editions. The Japanese editions have special requirements to support Japanese fonts in PDF output by default and this mucks up the standard functionality of the DITA OT.

Solution:
Replace the following files in an XMetaL Author Enterprise 9.0.0.047 installation with those attached.

C:\ProgramData\SoftQuad\XMetaL\Shared\DITA_OT\plugins\com.xmetal.xmfo\xsl\fo\i18n-postprocess.xsl
C:\ProgramData\SoftQuad\XMetaL\Shared\DITA_OT\plugins\org.dita.pdf2\xsl\fo\i18n-postprocess.xsl


Note: C:\ProgramData is a hidden folder and as a result on most systems you will not see it listed in Windows Explorer. You can access it either by entering %programdata% into the address bar in Windows Explorer, or by changing Windows Explorer's setting for displaying hidden folders.

* DITA_OT_default_font_fix.zip (5.85 KB - downloaded 126 times.)
« Last Edit: May 16, 2014, 04:04:27 PM by Derek Read » Logged
Pages: 1
Print
Jump to: