The "FOP" preferences sheet is available only when add-on "Apache FOP 1.x XSL-FO processor plug-in" has been installed.
By default, only the 14 built-in fonts: Times, Helvetica, Courier, Symbol and ZapfDingbats are used in the generated PDF. The above preferences sheet allows to specify which custom TrueType (
.ttf) fonts are to be embedded in the generated PDF.
This facility is useful in the following two cases:
The 14 PDF standard fonts (Helvetica, Times, Courier, etc), which are used by default by FOP, have glyphs only for the Western languages. If, for example, you convert a DocBook document written in Russian to PDF, the generated PDF will mainly contain the '#' placeholder character. Fortunately, widely available TTF fonts such as Microsoft® Arial, Times New Roman and Courier New or the DejaVu fonts have glyphs for almost all the languages of the world.
Use fonts nicer than the 14 PDF standard fonts.
Procedure 9.1. How to use Times New Roman, Arial and Courier New instead of Times, Helvetica, Courier
Note that thebutton is grayed if the Arial font is not found in the standard fonts folder of your system.
Restart XMLmind XML Editor.
Procedure 9.2. How to choose specific fonts (for example, you want to replace Times fonts by Georgia fonts)
This displays the following dialog box:
.ttf file containing font "Georgia".
On Windows, for permissions reasons, there is no way to pick a font file from the "
C:\Windows\Fonts\" folder using the standard file chooser. Therefore the only way to register with Apache FOP a font found in "
C:\Windows\Fonts\" is to drag its file from the Windows file manager and to drop it onto the list found in the "FOP" preferences sheet (see above figure).
However, after you do this, do not forget to select each entry added by the drop action and then clickto possible change or complement what's have been automatically specified there.
Specify the following alias: serif.
.ttf file containing font "Georgia Bold".
Specify the following alias: serif, Bold.
.ttf file containing font "Georgia Italic".
Specify the following alias: serif, Italic.
.ttf file containing font "Georgia Bold Italic".
Specify the following alias: serif, Bold, Italic.
Doing this automatically creates a standard FOP configuration file in
. User preferences directory
XXE_user_preferences_dir is documented in Section 7, “The "Preferences" dialog box”.
It is recommended to repeat the above steps in order to specify fonts replacing Helvetica, that is, fonts having a sans-serif alias and fonts replacing Courier, that is fonts having a monospace alias.
Restart XMLmind XML Editor.
The "XEP" preferences sheet is available only when add-on "RenderX XEP XSL-FO processor plug-in" has been installed.
XEP preferences are identical to FOP preferences. There are two minor differences though:
Some fonts have licensing restrictions that forbid embedding them in a PDF file. RenderX XEP enforces these licensing restrictions, not Apache FOP. XMLmind XML Editor has currently no way to detect these licensing restrictions, therefore you may follow the above procedure and end up with glyphs still missing in the generated PDF.
The standard XEP configuration file is created in