Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
The Default Font used by FOP
What is the default font used by FOP to generate PDF output?
✍: FYIcenter.com
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, fyicenter.fo, without specify any font:
<?xml version="1.0" encoding="utf-8"?> <!-- fyicenter.fo Copyright (c) 2018 FYIcenter.com --> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="myPage"> <fo:region-body margin="1in"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="myPage"> <fo:flow flow-name="xsl-region-body"> <fo:block>Welcome to jar.FYIcenter.com!</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
2. Generate the PDF output from this FO file.
\local\fop-2.2\fop>fop \fyicenter\fyicenter.fo \temp\fyicenter.pdf org.apache.fop.events.LoggingEventListener 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
Helvetica 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:
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
2018-04-21, ∼2195🔥, 0💬
Popular Posts:
Jaxen, Release 1.1.1, is an open source XPath library written in Java. It is adaptable to many diffe...
JDK 11 java.compiler.jmod is the JMOD file for JDK 11 Compiler module. JDK 11 Compiler module compil...
commons-lang-2.6.jar is the JAR file for Apache Commons Lang 2.6, which provides a host of helper ut...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
What Is poi-scratchpad-5.2.3.jar ?poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5....