Java Mailing List Archive

http://www.java2.5341.com/

Home » fop-users.xmlgraphics »

Wingdings windows font not well rendered in pdf

Christian Pestel

2012-06-04

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,
 
I use Fop last trunk with this fop.config :
 
<fop version="2.0">
  <renderers>
     <renderer mime="application/pdf">
     <filterList>
        <value>null</value>
     </filterList>
     <fonts>
        <!-- Wingdings -->
        <font embed-url="file:C:/Windows/Fonts/Wingding.ttf">
                <font-triplet name="Wingdings" style="normal" weight="normal"/>
        </font>
     </fonts>
     </renderer>
   </renderers>
</fop>
 
and this fo :
 
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
<fo:layout-master-set>
<fo:simple-page-master master-name="section1" page-width="8.26in" page-height="11.69in" margin-top="35.4pt" margin-bottom="35.4pt" margin-right="70.85pt" margin-left="70.85pt"><fo:region-body margin-top="35.45pt" margin-bottom="35.45pt" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="section1" format="1">
<fo:flow flow-name="xsl-region-body" >
<fo:block line-height="1.2">
<fo:inline font-family="Helvetica" font-size="12pt"><fo:leader leader-length="0pt" />AAA</fo:inline>
<fo:inline font-size="12pt" font-family="Wingdings">&#x28;</fo:inline>
<fo:inline font-size="12pt" font-family="Wingdings">&#xFE;</fo:inline>
<fo:inline font-size="12pt" font-family="Wingdings">&#xFD;</fo:inline>
<fo:inline font-size="12pt" font-family="Wingdings">&#xFC;</fo:inline>
</fo:block>
</fo:flow></fo:page-sequence></fo:root>
 
the result is the pdf attached file : Wingdings_Fop.pdf
 
<fop version="2.0">
  <renderers>
     <renderer mime="application/pdf">
     <filterList>
        <value>null</value>
     </filterList>
     <fonts>
         <directory>file:C:/MyFontsForFop</directory>   
         <auto-detect/>
     </fonts>
     </renderer>
   </renderers>
</fop>
 
I delete .fop\fop-fonts.cache
and I put wingding.ttf in C:/MyFontsForFop
Same result.
 
 
Please, could you tell me what is wrong ?
Thank for your help.
 

 

Christian Pestel

christian.pestel@orange.fr

<?xml version="1.0" encoding="utf-8"?><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" ><fo:layout-master-set><fo:simple-page-master master-name="section1" page-width="8.26in" page-height="11.69in" margin-top="35.4pt" margin-bottom="35.4pt" margin-right="70.85pt" margin-left="70.85pt"><fo:region-body margin-top="35.45pt" margin-bottom="35.45pt" /></fo:simple-page-master></fo:layout-master-set><fo:page-sequence master-reference="section1" format="1"><fo:flow flow-name="xsl-region-body"><fo:block line-height="1.2"><fo:inline font-family="Helvetica" font-size="12pt"><fo:leader leader-length="0pt" />AAA</fo:inline><fo:inline font-size="12pt" font-family="Wingdings">&#x28;</fo:inline><fo:inline font-size="12pt" font-family="Wingdings">&#xFE;</fo:inline><fo:inline font-size="12pt" font-family="Wingdings">&#xFD;</fo:inline><fo:inline font-size="12pt" font-family="Wingdings">&#xFC;</fo:inline></fo:block></fo:flow></fo:page-sequence></fo:root>

Attachment: Wingdings_expected.pdf (zipped)
Attachment: Wingdings_Fop.pdf (zipped)

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@(protected)
For additional commands, e-mail: fop-users-help@(protected)
©2008 java2.5341.com - Jax Systems, LLC, U.S.A.