[nc] Mono font isn't discoverable by formatting objects processor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Font Family |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using the formatting object processor ("fop") to produce PDFs. I can use the proportional Ubuntu just fine, but fop can't seem to use the Ubuntu mono font.
I'm using fop version 1.0 from http://
My testcase:
[jk@pororo fop]$ cat fopconfig.xml
<?xml version="1.0"?>
<fop version="1.0">
<renderers>
<renderer mime="applicati
<fonts>
<auto-detect/>
</fonts>
</renderer>
</renderers>
</fop>
[jk@pororo fop]$ cat test.fo
<?xml version="1.0"?>
<fo:root xmlns:fo="http://
font-size="10pt">
<fo:layout-
<fo:
page-
margin-
margin-
<
</fo:
</fo:
<fo:page-sequence master-
<fo:flow flow-name="body">
<fo:block font-family=
<fo:block font-family="Ubuntu Mono">hello, world</fo:block>
</fo:flow>
</fo:
</fo:root>
[jk@pororo fop]$ /opt/fop-1.0/fop -pdf test.pdf -fo test.fo -c fopconfig.xml
19/12/2011 4:28:37 PM org.apache.
WARNING: Font "Ubuntu Mono,normal,400" not found. Substituting with "any,normal,400".
[jk@pororo fop]$ /opt/fop-1.0/fop -version
FOP Version 1.0
- note that the Ubuntu font doesn't generate any warning, and appears correctly in the generated PDF. The second "hello, world" (which should be rendered in Ubuntu Mono) appears in a fallback font.
I have version 0.80-0ubuntu1~
summary: |
- Mono font isn't discoverable by formatting objects processor + [nc] Mono font isn't discoverable by formatting objects processor |
When trying to generate the metrics for the Ubuntu Mono font manually, the metrics processor throws an ArrayIndexOutOf BoundException:
[jk@pororo fop]$ java -cp /opt/fop- 1.0/build/ fop.jar: /opt/fop- 1.0/lib/ commons- logging- 1.0.4.jar: /opt/fop- 1.0/lib/ commons- io-1.3. 1.jar:/ opt/fop- 1.0/lib/ xmlgraphics- commons- 1.4.jar org.apache. fop.fonts. apps.TTFReader /usr/share/ fonts/truetype/ ubuntu- font-family/ UbuntuMono- R.ttf UbuntuMono. metrics. xml
TTF Reader for Apache FOP 1.0
Parsing font... fonts/truetype/ ubuntu- font-family/ UbuntuMono- R.ttf.. . ArrayIndexOutOf BoundsException : 1047
Reading /usr/share/
Error while building XML font metrics file.
java.lang.
[jk@pororo fop]$