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:
FOP Font Missing Glyph Error for PDF
Why I am getting the "Glyph A not available in font Symbol" error with FOP?
✍: FYIcenter.com
You will get the "Glyph A not available in font X" error,
if character "A" is not supported in font "X".
For example, font "Symbol" only support symbolic characters. It does not support alphabetic characters. So if you apply font "Symbol" to character "A" in your FO file as show below, FOP will give you an error:
<?xml version="1.0" encoding="utf-8"?>
<!-- missing-glyph.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 font-family="Helvetica">Helvetica: Welcome to jar.FYIcenter.com!</fo:block>
<fo:block font-family="Times">Times: Welcome to jar.FYIcenter.com!</fo:block>
<fo:block font-family="Courier">Courier: Welcome to jar.FYIcenter.com!</fo:block>
<fo:block>Symbol: <fo:inline font-family="Symbol">A Ω φ ≠</fo:inline></fo:block>
<fo:block>ZapfDingbats: <fo:inline font-family="ZapfDingbats">B ✌ ✍ ❀</fo:inline></fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Try to generate the PDF output from this FO file:
\local\fop-2.2\fop>fop \fyicenter\missing-glyph.fo \temp\missing-glyph.pdf org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "A" (0x41, A) not available in font "Symbol". org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "B" (0x42, B) not available in font "ZapfDingbats". org.apache.fop.events.LoggingEventListener processEvent INFO: Rendered page #1.
The 'WARNING: Glyph "A" (0x41, A) not available in font "Symbol"'
is actually an error. FOP will generate "A" with a placholder glyph in the PDF
as shown below:
This tutorial is valid in FOP 2.2, 2.1, and 2.0.
⇒ FOP Missing Font Error for PDF
2018-04-21, ∼3082🔥, 0💬
Popular Posts:
JDK 17 jdk.localedata.jmod is the JMOD file for JDK 17 Localedata module. JDK 17 Locale Data module ...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
What Is poi-5.2.3.jar? poi-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...
Jaxen, Release 1.1.1, is an open source XPath library written in Java. It is adaptable to many diffe...