CGI Advantage
Assembled Document: Formatting Objects Processor User Guide
3.10 Release CGI Technologies and Solutions Inc. Proprietary and Confidential Page 8
Notice the name of the TTF file, GOTHICI.TTF, the particular prefixes for fonts are normal –
none, bold – bd, italic – i, and bold-talic – bi, for our GOTHIC font, that would be GOTHIC.TTF,
GOTHICBD.TTF, GOTHICI.TTF, GOTHICBI.TTF respectively.
Convert TTF to XML. In order to convert the TTF to XML, you must run the FOP application’s
correct interpreter on the TTF file. From a command line you will have to run the java interpreter
they have created, which can be done by creating a batch file with the following lines (which will
need to be m
odified t
o your en
vironment
where there
’s bold).
----------------------------------BEGIN BATCH FILE BELOW THIS LINE-----------------------------------------
-
@echo off
Rem *******************FOP base directory **********
set FOP_BASE=<Advantage installation base directory>\ADV34_35\Utils\fop-0.20.5
set INPUT_FONT_FILE=%FOP_BASE%\conf\GOTHICI.TTF
set OUTPUT_FONT_FILE=%FOP_BASE%\conf\GOTHICI.xml
Rem *******************JDK**********
set JAVA_HOME=<WebSphere installation base directory>\WebSphere5113\AppServer\java\
rem ** jars libraries *********
set CLASSPATH=%CLASSPATH%;%FOP_BASE%\lib\avalon-framework-cvs-20020806.jar
set CLASSPATH=%CLASSPATH%;%FOP_BASE%\lib\batik.jar
set CLASSPATH=%CLASSPATH%;%FOP_BASE%\build\fop.jar