xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Wolff <kwo...@intra-team.de>
Subject Font Question
Date Wed, 13 Dec 2006 11:54:27 GMT
Hi folks,

i try very hard to enable a font but without any result. This morning  
i went to bed and hoped it helps.. but today i stuck in the same  
place. Font is not working.
Maybe you can help me.

I am using Fop 0.90 with Tomcat 5.5. on a Mac.
I graped a ttf font and build the xml:
# java org.apache.fop.fonts.apps.TTFReader /tmp/calligra.ttf  ./ 
TTF Reader for Apache FOP SVN tags/fop-0_90-alpha1

Parsing font...
Reading /tmp/calligra.ttf...
Number of glyphs in font: 247
3 cmap tables
CMAP format: 4
Creating xml font file...
Creating CID encoded metrics...
Writing xml font file ./calligra.xml...
This font contains no embedding license restrictions.

XML font metrics file successfullly created.

than i moved the font and the generated xml to a dir names /fonts  
inside my Web-Tree.
I Edited the conf for FOP

Basedir ist the WEB-INF/classes directory.

in <renderer mime="application/pdf"> under <fonts> i build a tag like:

<font metrics-url="../../fonts/calligra.xml" kerning="yes" embed- 
     <font-triplet name="Calligrapher" style="normal" weight="normal"/>

I edit the xsl:
   <fo:block font-family="Calligrapher" font-size="72pt">
            <xsl:value-of select="text()"/>


I run the app and get:
Dec 13, 2006 12:46:21 PM org.apache.fop.fonts.FontInfo  
WARNING: Font 'Calligrapher,normal,400' not found. Substituting with  
default font.

Do i have somthing forgotten?

Thanks in advanced.

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message