The Default Font used by FOP


What is the default font used by FOP to generate PDF output?



The default font used by FOP to generate PDF output is the Helvetica font. Here is how you can verify this:

1. Create a FO file,, without specify any font:

<?xml version="1.0" encoding="utf-8"?>
     Copyright (c) 2018
<fo:root xmlns:fo="">
    <fo:simple-page-master master-name="myPage">
      <fo:region-body margin="1in"/>
  <fo:page-sequence master-reference="myPage">
    <fo:flow flow-name="xsl-region-body">
      <fo:block>Welcome to!</fo:block>

2. Generate the PDF output from this FO file.

\local\fop-2.2\fop>fop \fyicenter\ \temp\fyicenter.pdf processEvent
INFO: Rendered page #1.

3. View the output PDF file, fyicenter.pdf, Adobe Acrobat Reader. Click "File > Properties" to open the properties screen. Then click the "Fonts" tab. You see the font information

   Type: Type 1
   Encoding: Ansi
   Actual Font: ArialMT
   Actual Font Type: TrueType

The picture below shows you the default font used in the PDF file generated from FOP:
FOP Default Font for PDF Output

This tutorial is valid in FOP 2.2, 2.1, and 2.0.


What Are FOP Generic Font Families

Managing Fonts in FOP PDF Output

Managing Fonts in FOP PDF Output

⇑⇑ FAQ for FOP (Formatting Object Processor)

2018-04-21, 1816🔥, 0💬