Thursday 21 July 2011

Embedded BI Publisher additional fonts AS/400

It’s pretty easy at the end of the day.  The job runs on the 400, so you need to get the fonts and the configuration on the 400 so that the JVM which BIP runs in can see them.

A logical place for fonts is your directory equivalent to: 

/E900SYS/RESOURCE/truetype

Load your addition ttf files in here via a UNC share to the 400.

Then, change the xdo.cfg to see these fonts:

goto \\SERVERNAME\E900SYS\CLASSES for xdo.cfg

make a backup of the file, it should look like this:

<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">

<!-- Properties -->

<properties>

<!-- System level properties -->

<!-- PLEASE SELECT A VALID TEMPFILE DIRECTORY!!! -->

<!-- <property name="system-temp-dir">/tmp</property> -->

<!-- PDF compression -->

<property name="pdf-compression">true</property>

<!-- PDF security -->

<property name="pdf-security">false</property>

<property name="pdf-open-password">user</property>

<!-- <property name="pdf-permissions-password">owner</property> -->

<property name="pdf-no-printing">false</property>

<property name="pdf-no-changing-the-document">true</property>

<!-- Scalability properties -->

<property name="xslt-scalable">true</property>

<property name="xslt-xdoparser">true</property>

</properties>

</config>

Add a fonts section within the config section:

<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">

<!—Properties -->

<!-- Font setting -->

<fonts>

<font family="GnuMICR Normal" style="normal" weight="normal">
<truetype path="/E900SYS/RESOURCE/truetype/GnuMICR.ttf" />
</font>

<font family="OCR-B" style="normal" weight="normal">
<truetype path="/E900SYS/RESOURCE/truetype/Ocrb.ttf" />
</font>

<font family="GnuMICR" style="normal" weight="normal">
<truetype path="/E900SYS/RESOURCE/truetype/GnuMICR.ttf" />
</font>

</fonts>

</config>

Job done, now if you use this font in your RTF, the 400 should be able to create jobs using it.

1 comment:

Anonymous said...

It doesn't work for me, do you have to reboot?