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:
Use Unicode Characters with FOP
How to use Unicode characters with FOP? I want to use the Latin small letter "Phi" in my FO file.
✍: FYIcenter.com
If you know the Unicode code value of the character you want to use,
you can enter it in your FO file in the &#xnnnn format.
The following FO file shows you some Unicode characters in the Calibri font:
<?xml version="1.0" encoding="utf-8"?> <!-- unicode-character.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="Calibri">ASCII: Welcome to jar.FYIcenter.com!</fo:block> <fo:block font-family="Calibri">Unicode &#x0278;...: ɸɹʐ</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
You can generate the PDF output from this FO file with Calibri font configuration:
\local\fop-2.2\fop>fop \fyicenter\unicode-character.fo \temp\unicode-character.pdf -c \fyicenter\cfg-font.xml org.apache.fop.events.LoggingEventListener processEvent INFO: Rendered page #1.
Open the PDF file with Acrobat Reader, you see those Unicode characters are generated correctly:
⇒ 4-Byte Unicode Not Supported in FOP
⇐ CharMap.exe - Find Character Unicode Value on Windows
2018-03-17, 3296🔥, 0💬
Popular Posts:
JDK 11 jdk.aot.jmod is the JMOD file for JDK 11 Ahead-of-Time (AOT) Compiler module. JDK 11 AOT Comp...
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...
What Is ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is the JAR files of ojdbc.jar, ...
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.6.1-src.zip...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...