Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 39131 invoked from network); 15 Oct 2009 20:02:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Oct 2009 20:02:24 -0000 Received: (qmail 22333 invoked by uid 500); 15 Oct 2009 20:02:23 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 22258 invoked by uid 500); 15 Oct 2009 20:02:23 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 22250 invoked by uid 99); 15 Oct 2009 20:02:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2009 20:02:23 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rockrover@gmail.com designates 209.85.219.228 as permitted sender) Received: from [209.85.219.228] (HELO mail-ew0-f228.google.com) (209.85.219.228) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2009 20:02:14 +0000 Received: by ewy28 with SMTP id 28so1311917ewy.18 for ; Thu, 15 Oct 2009 13:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=xhaBNNnfc9B1V068aacHJIXNnODRHzP5EMDAVB2vaBU=; b=V9J1fZfTjih7axiLkaWSVEQ+AyFvuws11WJH/TGdXTSkThzM9S6aMOr2Mu+5ZhHY1c rRTTdz+7d/6iXadXz9oiGlE1Fj+1qCM4ce1l14a2MO8WYHlFz+gpD+pVliTSFPpsm4DY IrceY8AJXAa5jKKOeNPG3tu4MRQcVp+Gt6wnQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=pM2p9yBNy+LsPW6aaGuqaYjmWHcUZ0Yecjvtrn9Nu3UEudhmPtGHLaPl3NSmRXtsxc Ew60uuU0mO8GxjRO8m6bE4j4b1gta9dUcmVZ/ozS/xxuCAYpJPfYLlX4KsMv14hNp6Eb kBPbNQvnM+woeiUx13PE9IKm6Dh8DUQz5cOA0= MIME-Version: 1.0 Received: by 10.216.88.79 with SMTP id z57mr150652wee.22.1255636913818; Thu, 15 Oct 2009 13:01:53 -0700 (PDT) In-Reply-To: <3e326cb20910150226p1b275691yb7d87084890fd43c@mail.gmail.com> References: <3e326cb20910081401q1908c2c7i2c697e690fafd049@mail.gmail.com> <1949AD5ABC81714CA5714180173014B0012E0686@mail4.oams.com> <3e326cb20910150226p1b275691yb7d87084890fd43c@mail.gmail.com> Date: Thu, 15 Oct 2009 22:01:53 +0200 Message-ID: <3e326cb20910151301p487e7f7arfdfc856715dbbafc@mail.gmail.com> Subject: Re: embedding fonts From: Rover Rock To: users@cocoon.apache.org Content-Type: multipart/alternative; boundary=0016e6d77d0337389a0475fec0ec X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d77d0337389a0475fec0ec Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi! I managed to solve the problem. In the web.xml (apache-tomcat-6.0.20\webapps\cocoon\WEB-INF\) file, you hav= e to change this: ISO-8859-1 to this: UTF-8 maybe twice. and after that you have to restart cocoon, it is important. :) 2009/10/15 Rover Rock > Yes, i do. > > Ok, i will try to write what i did. > I didnt download any fonts, i used windows arial fonts > > 1. Created the font metric files, like this: > > > $ java -cp optional\fop-0.20.4.jar;core\xercesImpl-2.0.0.jar;core\xml-api= s.jar \ > > org.apache.fop.fonts.apps.TTFReader \ > C:\WINNT\Fonts\arial.ttf D:\fop-fonts\arial.ttf.xml > $ java -cp optional\fop-0.20.4.jar;core\xercesImpl-2.0.0.jar;core\xml-api= s.jar \ > org.apache.fop.fonts.apps.TTFReader \ > > C:\WINNT\Fonts\arialb.ttf D:\fop-fonts\arialb.ttf.xml > $ java -cp optional\fop-0.20.4.jar;core\xercesImpl-2.0.0.jar;core\xml-api= s.jar \ > org.apache.fop.fonts.apps.TTFReader \ > C:\WINNT\Fonts\arialbi.ttf D:\fop-fonts\arialbi.ttf.xml > > $ java -cp optional\fop-0.20.4.jar;core\xercesImpl-2.0.0.jar;core\xml-api= s.jar \ > org.apache.fop.fonts.apps.TTFReader \ > C:\WINNT\Fonts\ariali.ttf D:\fop-fonts\ariali.ttf.xml > > It was successfully. > > 2. Created a config file which is stored in D:\:fop-fonts\ directory, > called config.xml > > > > kerning=3D"yes" embed-file=3D"C:/WINNT/Fonts/arial.ttf"> > > > > > > kerning=3D"yes" embed-file=3D"C:/WINNT/Fonts/arialb.ttf"> > > > > > kerning=3D"yes" embed-file=3D"C:/WINNT/Fonts/arialbi.ttf"> > > > > > > kerning=3D"yes" embed-file=3D"C:/WINNT/Fonts/ariali.ttf"> > > > > > > > > 3. Modified the sitemap.xmap file, add > > D:/fop-fonts/config.xml > > to the fo2pdf serializer > > 4. restarted the cocoon. > > 2009/10/9 Laurent Medioni > > You refer to a D:/fop-fonts/config.xml in your sitemap ? >> Can you summarize what you are usingm what you have done so far and what >> you get at the end ? >> Thanks. >> >> ________________________________________ >> From: Rover Rock [mailto:rockrover@gmail.com] >> Sent: jeudi, 8. octobre 2009 23:02 >> To: users@cocoon.apache.org >> Subject: Re: embedding fonts >> >> Ok, I see. >> > Are the fonts provided through your config file Unicode fonts ? >> I use only the default install, i did not modify any config file and >> Unicode fonts settings. Where and what can i do?:) >> >+ When you use fop elements (in your xml or in a xsl) how are the >> parameters configured ? The Locale should be among them + the >> default font, =85." >> I didnt configure parameters... >> >> ____________________________________________________________ >> >> =95 This email and any files transmitted with it are CONFIDENTIAL and >> intended >> solely for the use of the individual or entity to which they are >> addressed. >> =95 Any unauthorized copying, disclosure, or distribution of the materia= l >> within >> this email is strictly forbidden. >> =95 Any views or opinions presented within this e-mail are solely those = of >> the >> author and do not necessarily represent those of Odyssey Financial >> Technologies SA unless otherwise specifically stated. >> =95 An electronic message is not binding on its sender. Any message >> referring to >> a binding engagement must be confirmed in writing and duly signed. >> =95 If you have received this email in error, please notify the sender >> immediately >> and delete the original. >> > > --0016e6d77d0337389a0475fec0ec Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi!

I managed to solve the problem.
In the web.xml (apache-tomcat= -6.0.20\webapps\cocoon\WEB-INF\) file, you have to change this:
=A0=A0= =A0=A0=A0 <param-value>ISO-8859-1</param-value>
to this: =A0=A0=A0=A0=A0 <param-value>UTF-8</param-value>

maybe twice.

and after that you have to restart cocoon, it is im= portant.
:)


2009/10/15 Rover Rock = <rockrover@gmai= l.com>
Yes, i do.
Ok, i will try to write what i did.
I didnt download any fonts, i used = windows arial fonts

1. Created the font metric files, like this:

=A0= =A0=A0
$ java -cp optional\fop-0.20.4.jar;core\xercesImpl-2.0.0.ja=
r;core\xml-apis.jar \
org.apache.fop.fonts.apps.TTFReader \
C:\WINNT\Fonts\arial.ttf D:\fo= p-fonts\arial.ttf.xml
$ java -cp optional\fop-0.20.4.jar;core\xercesImpl= -2.0.0.jar;core\xml-apis.jar \
org.apache.fop.fonts.apps.TTFReader \ C:\WINNT\Fonts\arialb.ttf D:\fop-fonts\arialb.ttf.xml
$ java -cp opti= onal\fop-0.20.4.jar;core\xercesImpl-2.0.0.jar;core\xml-apis.jar \
org.= apache.fop.fonts.apps.TTFReader \
C:\WINNT\Fonts\arialbi.ttf D:\fop-fo= nts\arialbi.ttf.xml
$ java -cp optional\fop-0.20.4.jar;core\xercesImpl-2.0.0.jar;core\xml-apis.= jar \
org.apache.fop.fonts.apps.TTFReader \
C:\WINNT\Fonts\ariali= .ttf D:\fop-fonts\ariali.ttf.xml
It was successfully.

2. Created a config file which is stored in D:\:fop-fonts\ directory, calle= d config.xml
<configuration>
<fonts>
<font m= etrics-file=3D"D:/fop-fonts/arial.ttf.xml"
kerning= =3D"yes" embed-file=3D"C:/WINNT/Fonts/arial.ttf"> <font-triplet name=3D"Arial" style=3D"normal" = weight=3D"normal"/>
<font-triplet name=3D"Ari= alMT" style=3D"normal" weight=3D"normal"/>
= </font>
<font metrics-file=3D"D:/fop-fonts/arialb.ttf.xml"
= kerning=3D"yes" embed-file=3D"C:/WINNT/Fonts/arialb.t= tf">
<font-triplet name=3D"Arial" style=3D&qu= ot;normal" weight=3D"bold"/>
<font-triplet name=3D"ArialMT" style=3D"normal"= ; weight=3D"bold"/>
</font>
<font metri= cs-file=3D"D:/fop-fonts/arialbi.ttf.xml"
kerning=3D&= quot;yes" embed-file=3D"C:/WINNT/Fonts/arialbi.ttf">
<font-triplet name=3D"Arial" style=3D"italic" = weight=3D"bold"/>
<font-triplet name=3D"Arial= MT" style=3D"italic" weight=3D"bold"/>
&= lt;/font>
<font metrics-file=3D"D:/fop-fonts/ariali.ttf.xml"
= kerning=3D"yes" embed-file=3D"C:/WINNT/Fonts/ariali.tt= f">
<font-triplet name=3D"Arial" style=3D&quo= t;italic" weight=3D"normal"/>
<font-triplet name=3D"ArialMT" style=3D"italic"= ; weight=3D"normal"/>
</font>
</fonts>=
</configuration>
3. Modified the sitemap.xmap file, add =
<user-config>D:/fop-fonts/config.xml</user-config>
to the fo2pdf serializer

4. restarted the cocoon.

2009/10/9 Laurent Medioni <lmedioni@odyssey-g= roup.com>

You refer to a D:= /fop-fonts/config.xml in your sitemap ?
Can you summarize what you are usingm what you have done so far and what yo= u get at the end ?
Thanks.

________________________________________
From: Rover Rock [mailto:rockrover@gmail.com]
Sent: jeudi, 8. octobre 2009 23:02
To: users= @cocoon.apache.org
Subject: Re: embedding fonts

Ok, I see.
> Are the fonts provided through your config file Unicode fonts ?
I use only the default install, i did not modify any config file and Unicod= e fonts settings. Where and what can i do?:)
>+ When you use fop elements (in your xml or in a xsl) how are the <f= o:root> parameters configured ? The Locale should be among them + the de= fault font, =85."
I didnt configure <fo:root> parameters...

________________________________________________= ____________

=95 This email and any files transmitted with it are CONFIDENTIAL and inten= ded
=A0solely for the use of the individual or entity to which they are addres= sed.
=95 Any unauthorized copying, disclosure, or distribution of the material w= ithin
=A0this email is strictly forbidden.
=95 Any views or opinions presented within this e-mail are solely those of = the
=A0author and do not necessarily represent those of Odyssey Financial
Technologies SA unless otherwise specifically stated.
=95 An electronic message is not binding on its sender. Any message referri= ng to
=A0a binding engagement must be confirmed in writing and duly signed.
=95 If you have received this email in error, please notify the sender imme= diately
=A0and delete the original.


--0016e6d77d0337389a0475fec0ec--