cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nafise hassani <nafisehas...@yahoo.com>
Subject Re:producing arabic pdf
Date Thu, 23 Dec 2004 07:59:22 GMT
hi 
I did all the things that gounis said
my config.xml file look like this:

<?xml version="1.0"?>
<configuration>
  <fonts>
    <font metrics-file="D:/fop-fonts/arial.ttf.xml" 
          kerning="yes"
embed-file="C:/WINNT/Fonts/arial.ttf">
      <font-triplet name="Arial" style="normal"
weight="normal"/>
      <font-triplet name="ArialMT" style="normal"
weight="normal"/>
    </font>
</fonts>
</configuration>

Also in my sitemap.xmap I edit the fo2pdf serializer
like this:

<map:serializer name="fo2pdf"
src="org.apache.cocoon.serialization.FOPSerializer"
mime-type="application/pdf">
<user-config>D:/fop-fonts/config.xml</user-config>
</map:serializer>

And in D:\fop-fonts I have the arail.ttf.xml and put
my config.xml file there too 
BUT its make no difference
(my arabic pdf is attached to this mail too)    
is there any fault in charachter setting not fonts??
I think the serializer has a problem with my charset
not font

any suggestion ???
please help



--- gounis@osmosis.gr wrote:

> 
> 
> 
> hi nafise
> 
> you have to use compiled fonts 
> 
> http://xml.apache.org/fop/fonts.html
> 
> and then force cocoon to use those fonts
> for this you have to create a fop-config.xml
> in web-inf
> 
> for example the content of my fop-config:
> <configuration>
> 	<fonts>
> 		<font metrics-file="c:/fop-fonts/arial.ttf.xml" 
> kerning="yes"
> embed-file="c:/fop-fonts/win/arial.ttf">
> 			<font-triplet name="Arial" style="normal" 
> weight="normal"/>
> 			<font-triplet name="ArialMT" style="normal" 
> weight="normal"/>
> 		</font>
> 		<font metrics-file="c:/fop-fonts/arialb.ttf.xml" 
> kerning="yes"
> embed-file="c:/fop-fonts/win/arialb.ttf">
> 			<font-triplet name="Arial" style="normal" 
> weight="bold"/>
> 			<font-triplet name="ArialMT" style="normal" 
> weight="bold"/>
> 		</font>
> 		<font metrics-file="c:/fop-fonts/arialbi.ttf.xml" 
> kerning="yes"
> embed-file="c:/fop-fonts/win/arialbi.ttf">
> 			<font-triplet name="Arial" style="italic" 
> weight="bold"/>
> 			<font-triplet name="ArialMT" style="italic" 
> weight="bold"/>
> 		</font>
> 		<font metrics-file="c:/fop-fonts/ariali.ttf.xml" 
> kerning="yes"
> embed-file="c:/fop-fonts/win/ariali.ttf">
> 			<font-triplet name="Arial" style="italic" 
> weight="normal"/>
> 			<font-triplet name="ArialMT" style="italic" 
> weight="normal"/>
> 		</font>
> 	</fonts>
> </configuration>
> 
> 
> 
> and finaly you have to register this fop-confing in
> your sitemap:
> ...
> 			<map:serializer
> logger="sitemap.serializer.fo2pdf"
> mime-type="application/pdf" name="fo2pdf"
> src="org.apache.cocoon.serialization.FOPSerializer">
> 			
> <user-config>c:\fop-fonts\config.xml</user-config>
> 			</map:serializer>
> ...
> 
> 
> --stavros
> 
> 
> [cocoon doc]
>
http://cocoon.apache.org/2.1/userdocs/serializers/pdf-serializer.html
> 
> On Wed, 22 Dec 2004, nafise hassani wrote:
> 
> > hi
> > I use cocoon as a framework and I want to output a
> pdf
> > using "fo2pdf" serializer also I want to create
> arabic
> > content in my pdfs I set the charencoding in my
> xml
> > file(src for generator) to "UTF-8" and prepare
> arabic
> > content in them
> > but outputted pdf can't display the arabic char
> > correctly
> > 
> > any suggestion???????
> > is there any fault in cocoon "fo2pdf" serializer
> for
> > showing charachters in languages like arabic????
> > 
> > 
> > 	
> > 		
> > __________________________________ 
> > Do you Yahoo!? 
> > Yahoo! Mail - You care about security. So do we. 
> > http://promotions.yahoo.com/new_mail
> > 
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 
Mime
View raw message