cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: embedding fonts (FOP and C2)
Date Tue, 11 Sep 2001 13:13:13 GMT
On Tue, 11 Sep 2001, Jacob Cantwell wrote:

> howdy y'all,
>
> i'm embedding fonts just fine running FOP via the command line, but i'm
> trying to set the same thing with cocoon 2.
>
> so far i've added to the sitemap:
>
> <map:serializer name="fo2pdf"
> src="org.apache.cocoon.serialization.FOPSerializer"
> mime-type="application/pdf">
>  <user-config src="d:/fop/conf/userconfig.xml"/>
> </map:serializer>
>
> to my userconfig.xml i've got:
>
> <configuration>
> <fonts>
>     <font metrics-file="FZZQJW.xml" kerning="yes" embed-file="FZZQJW.ttf">
>       <font-triplet name="FZZhongQian" style="normal" weight="normal"/>
>     </font>
>   </fonts>
> </configuration>
>
> i've tried it with .pfm, .pfb files and a bunch of combinations of file
> referencing (file:, cocoon:). i've also tried adding the files into the c2's
> fop.jar file. i've looked at the [c2] pdf under acrobat and the font is not
> being embedded.
>
> i think the problem is just my file referencing because it all works just
> with FOP, cocoon2 is building the pdf properly but  ignoring my font.

Have you looked into the log files for a message from FOPSerializer? It
should state whether or not it has found your configuration file.

Giacomo

>
> i've tried a million different configurations, read the archives, and i'm
> still stuck, so thanks for any help. if i can get this to work, i'll write
> up the procedure for the faq.
>
> thanks for any help,
> jacob
>
>
> <!-- ================================ -->
> <contact-info>
> <name>     Jacob Cantwell   </name>
> <company>  WebMCQ Pty. Ltd. </company>
> <website>  www.webmcq.com   </website>
> </contact-info>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message