cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rogier Peters" <Rog...@hippo.nl>
Subject RE: FOP - Adding Font and compile the fop.jar for cocoon?
Date Mon, 18 Nov 2002 09:08:54 GMT
I'm using 2.0.3 on JDK 1.4

With kind regards / Met vriendelijke groeten,

Rogier Peters
---------------------------------------------------------
Content Management Department
Hippo Webworks
Rogier(at)hippo(dot)nl / www.hippo.nl 

> -----Original Message-----
> From: Denis [mailto:denis.thierry@aic-info.com]
> Sent: Monday, November 18, 2002 10:16 AM
> To: cocoon-dev@xml.apache.org
> Subject: Re: FOP - Adding Font and compile the fop.jar for cocoon?
> 
> 
> Hi Rogier,
> 
> Which version of cocoon are you using? I remember that I got 
> troubles while
> using the
> parameter inside the serializer declaration (user-config data was
> overwritten by the
> default data from the jar file ...but it was version 2.0.2) 
> and I never
> tested it again
> onto ver 2.0.3 & 2.1-dev ...
> 
> Regards,
> 
> Denis
> 
> ----- Original Message -----
> From: "Rogier Peters" <Rogier@hippo.nl>
> To: <cocoon-dev@xml.apache.org>
> Sent: Monday, November 18, 2002 9:42 AM
> Subject: RE: FOP - Adding Font and compile the fop.jar for cocoon?
> 
> 
> I'm sorry for reacting this late: I got this working without 
> touching the
> fop.jar
> 
> You can configure the fopserializer in your sitemap, like so:
> 
> <map:serializer mime-type="application/pdf" name="fo2pdf"
> src="org.apache.cocoon.serialization.FOPSerializer">
> <user-config src="j:/sites/demo/resources/fo/userconfig.xml"/>
> </map:serializer>
> 
> And another thing is that the fop userconfig.xml is kind of picky for
> filenotation, this is what I found on a mailinglist 
> somewhere, mark the
> difference between metrics-file attribute and embed-file attribute:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <fonts>
> <font metrics-file="file:///j:/sites/demo/resources/fo/ttfFutura.xml"
> kerning="yes" embed-file="j:\sites\demo\resources\fo\FT______.TTF">
> <font-triplet name="Futura" style="normal" weight="normal"/>
> </font>
> <font 
> metrics-file="file:///j:/sites/demo/resources/fo/ttfFuturaBold.xml"
> kerning="yes" embed-file="j:\sites\demo\resources\fo\FTB_____.TTF">
> <font-triplet name="Futura" style="bold" weight="normal"/>
> </font>
> </fonts>
> </configuration>
> 
> 
> 
> With kind regards / Met vriendelijke groeten,
> 
> Rogier Peters
> ---------------------------------------------------------
> Content Management Department
> Hippo Webworks
> Rogier(at)hippo(dot)nl / www.hippo.nl
> 
> > -----Original Message-----
> > From: Denis [mailto:denis.thierry@aic-info.com]
> > Sent: Monday, November 18, 2002 8:47 AM
> > To: cocoon-dev@xml.apache.org
> > Subject: Re: FOP - Adding Font and compile the fop.jar for cocoon?
> >
> >
> > Hi,
> >
> > Hope all had a good week-end ;-)
> >
> > You should do the modification into the config.xml file not the
> > userconfig.xml
> > I noticed that fop wasn't able to handle the modifications within
> > userconfig.xml
> > file when working as a Cocoon serializer.
> > The only way - I found - to get the user defined fonts to be
> > correctly used
> > by the serializer
> > is to add the <fonts></fonts> node into the config.xml file
> > that is into the
> > <FOP>.jar file
> >
> > Moreover, the metrics-file attribute should contain the full
> > path to the xml
> > file as shown below:
> >
> >     <font metrics-file="file:///opt/myFonts/v100019.xml" 
> kerning="yes"
> > embed-file="/opt/myFonts/v100019_.ttf">
> >         <font-triplet name="C39HrP24DmTt" style="normal"
> > weight="normal"/>
> >     </font>
> >
> > Regards,
> >
> > Denis
> >
> > ----- Original Message -----
> > From: "Scherler, Thorsten" <Thorsten.Scherler@weidmueller.de>
> > To: <cocoon-dev@xml.apache.org>
> > Sent: Friday, November 15, 2002 5:50 PM
> > Subject: AW: FOP - Adding Font and compile the fop.jar for cocoon?
> >
> >
> > Ok, I did it with winzip.
> >
> > What should I change at the config.xml. I changed the
> > userconfig.xml like
> > that:
> >
> > <font metrics-file="arial.xml" kerning="yes"
> > embed-file="C:\myfonts\arial.ttf">
> > <font-triplet name="Arial" style="normal" weight="normal"/>
> > </font>
> >
> > But it is no way Arial!
> >
> > I think I tell my company to change the corporate identity to
> > Times New
> > Roman! Screw Arial!
> >
> > Or do you know what I am doing wrong?
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Denis [mailto:denis.thierry@aic-info.com]
> > Gesendet: Freitag, 15. November 2002 17:14
> > An: cocoon-dev@xml.apache.org
> > Betreff: Re: FOP - Adding Font and compile the fop.jar for cocoon?
> >
> >
> > winzip+notepad should make the deal ;-))
> >
> > ----- Original Message -----
> > From: "Scherler, Thorsten" <Thorsten.Scherler@weidmueller.de>
> > To: <cocoon-dev@xml.apache.org>
> > Sent: Friday, November 15, 2002 5:01 PM
> > Subject: AW: FOP - Adding Font and compile the fop.jar for cocoon?
> >
> >
> > Sorry for being such a dumbass!
> >
> > But: How can I do it? command line: jar x fop.jar?
> >
> > Open the FOP jar file (in WEB-INF\lib directory) and you'll find it!
> > Extract it, update it and re-import it into the fop jar file
> > that you have
> > in the WEB-INF\lib dir
> >
> > ----- Original Message -----
> > From: "Scherler, Thorsten" <Thorsten.Scherler@weidmueller.de>
> > To: <cocoon-dev@xml.apache.org>
> > Sent: Friday, November 15, 2002 4:32 PM
> > Subject: AW: FOP - Adding Font and compile the fop.jar for cocoon?
> >
> >
> > Hi Denis,
> >
> > Once you created the xml font file, you should just update the
> > 'conf/config.xml' file
> > that is included with the fop package shipped with cocoon and
> > not replacing
> > this jar.
> > I got it working chinese chars and other ttf fonts.
> >
> >
> > Where is this config.xml? I can't find it anywhere. Neither
> > in the scr nor
> > in the bin distribution?
> >
> >
> > Regards,
> >
> > Denis
> >
> > ----- Original Message -----
> > From: "Scherler, Thorsten" <Thorsten.Scherler@weidmueller.de>
> > To: "Cocoon-Dev (E-Mail)" <cocoon-dev@xml.apache.org>; "Cocoon-Users
> > (E-Mail)" <cocoon-users@xml.apache.org>
> > Sent: Friday, November 15, 2002 3:37 PM
> > Subject: FOP - Adding Font and compile the fop.jar for cocoon?
> >
> >
> > Hello group,
> >
> > I have compiled a fop.jar where Arial is supported (I am not
> > sure whether it
> > is compiled right). Now I replace the
> > PATHTo\webapps\cocoon\WEB-INF\lib\fop-0.20.3.jar with the new
> > fop.jar. I
> > have name it fop-0.20.3.jar again. But now I am getting this error:
> > ERROR
> > The
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNod
> > e notifies
> > that
> > 
> org.apache.avalon.framework.configuration.ConfigurationException says:
> >
> > Type 'fo2pdf' is not defined for 'serialize' at
> > file:/C:/bin/cms/build/jakarta-tomcat-4.0.4/webapps/cocoon/wei
> > dmueller/live-
> > sitemap.xmap:54:35
> >
> > More precisely:
> >
> > 
> org.apache.avalon.framework.configuration.ConfigurationException: Type
> > 'fo2pdf' is not defined for 'serialize' at
> > file:/C:/bin/cms/build/jakarta-tomcat-4.0.4/webapps/wyona-cms/
> > wyona/cms/pubs
> > /weidmueller/live-sitemap.xmap:54:35
> >
> >
> > But in the above mentioned sitemap there is <map:serializer
> > name="fo2pdf"
> > src="org.apache.cocoon.serialization.FOPSerializer"
> > logger="sitemap.serializer.fo2pdf"
> > mime-type="application/pdf"/>. Which is
> > working fine withe original fop.jar of cocoon.
> >
> > What am I doing wrong?
> >
> > BACKGROUND:
> > I found this page:
> > http://xml.apache.org/fop/fonts.html
> >
> > I did (there is a error if you use the original
> > [...C:\myfonts\arial.ttf
> > C:\myfonts\arial.ttf arial.xml]):
> > java -cp
> > build\fop.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\xa
> > lan-2.3.1.jar;
> > lib\batik.jar org.apache.fop.fonts.apps.TTFReader 
> C:\myfonts\arial.ttf
> > C:\myfonts\arial.xml
> >
> > Now I have:
> > TTF Reader v1.1.1
> >
> > Reading C:\myfonts\arial.ttf...
> >
> > Number of glyphs in font: 1296
> > Creating xml font file...
> >
> > Creating CID encoded metrics
> > Writing xml font file C:\myfonts\arial.xml...
> >
> > This font contains no embedding license restrictions
> >
> > Then I did:
> > Register the fonts within FOP
> > Edit conf/userconfig.xml and add entries for the font if the
> > fonts section,
> > ie:
> >  <font metrics-file="arial.xml" kerning="yes" 
> embed-file="arial.ttf">
> >     <font-triplet name="Arial" style="normal" weight="normal"/>
> >     <font-triplet name="ArialMT" style="normal" weight="normal"/>
> >  </font>
> >
> > BUT I am using FOP as servlet (Tomcat and cocoon). I now have
> > to compile a
> > fop.jar with my userconfig.xml, or not?
> > Then I have to replace the old fop.jar
> > @tomcat\webapps\cocoon\WEB-INF\lib.
> > And then I have Arial within fo, or not
> >
> >
> > > Mit freundlichem Gruss,
> > >
> > > Thorsten Scherler
> > > Marketing / Telefonmarketing
> > >
> > > Weidmüller GmbH & Co.
> > > P.O. Box 2807
> > > 33058 Paderborn
> > > Tel.:+ 49 - 5252-960-350
> > > Fax:+ 49 - 5252-960-116
> > > eMail: thorsten.scherler@weidmueller.de
> > > http://www.weidmueller.de
> > >
> > >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message