PDF XSL-FO Font Inclusions
To ensure non-standard fonts are included into your generated PDF, you may need to modify the Apache FOP configuration files, apache-fop-2.6.xconf
.
To do this, you must either create a Format or Target Override, Create the override in one of these places, for more information on overrides, Depending on how you prefer to set up your project, you will create one of the following:
Per target:
Targets\<target name>\Helpers\apache-fop-2.6.xconf Targets\<target name>\Helpers\apache-fop-2.6.xconf
Per format:
Formats\<format name>\Helpers\apache-fop-2.6.xconf Formats\<format name>\Helpers\apache-fop-2.6.xconf
Project-wide:
Formats\Helpers\apache-fop-2.6.xconf Formats\Helpers\apache-fop-2.6.xconf
Once the override has been created, open the file in a text editor of your choosing, and you will see the following markup:
<fonts>
<!-- Example -->
<!--
<font kerning="yes" embed-url="file:///C:/Windows/Fonts/REFSAN.TTF">
<font-triplet name="Microsoft Sans Serif" style="normal" weight="normal" />
</font>
<font kerning="yes" embed-url="file:///C:/Windows/Fonts/REFSAN.TTF">
<font-triplet name="Microsoft Sans Serif" style="italic" weight="normal" />
</font>
-->
<!-- automatically detect operating system installed fonts -->
<auto-detect/>
</fonts>
Modify the lines in between the comments to reflect the font you are wanting and the directory path in which it is located. Save this file, and now you can add them by using ePublisher Pro.
To add fonts in ePublisher Pro
1. In ePublisher Pro, select the View -> Style Designer menu
2. With the Paragraph Styles visible, select the [Prototype] style
3. On the Properties tab, select Font then click the icon for Family
4. If your fonts are not listed, then manually add the names of your desired font using the Custom Font Family text box
5. Select OK
Last modified date: 02/27/2024