Title: embedding fonts (FOP and C2)

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.

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>

Reply via email to