Hi,

 

What if you remove:

encoding-mode="single-byte"

 

Thanks

 

From: Tripathi Jayesh (SX/BSV-AD1) via fop-dev <fop-dev@xmlgraphics.apache.org> 
Sent: 27 July 2022 21:24
To: fop-dev@xmlgraphics.apache.org
Subject: unable to generate special characters with Arial Unicode MS

 

 

Hi,

 

I am unable to generate special characters with Arial Unicode MS. The 
characters are Turkish charecters. My OS is linux and my fop version is 2.7

 

My fop.xconf file looks like;

<?xml version="1.0" encoding="UTF-8"?>

<fop version="1.0">

   <use-cache>false</use-cache>

   <!-- Base URL for resolving relative URLs -->

   <base>./</base>

   <!-- Font Base URL for resolving relative font URLs -->

   <font-base>./</font-base>

   <!-- Strict FO validation -->

   <strict-validation>false</strict-validation>

   <strict-configuration>true</strict-configuration>

   <!-- Source resolution in dpi (dots/pixels per inch) for determining the 
size of pixels in SVG and bitmap images, default: 72dpi -->

   <source-resolution>72</source-resolution>

   <!-- Target resolution in dpi (dots/pixels per inch) for specifying the 
target resolution for generated bitmaps, default: 72dpi -->

   <target-resolution>72</target-resolution>

   <!-- Default page-height and page-width, in case

       value is specified as auto -->

   <default-page-settings height="auto" width="auto" />

   <accessibility>true</accessibility>

   <!-- Information for specific renderers -->

   <!-- Uses renderer mime type for renderers -->

   <renderers>

      <renderer mime="application/pdf">

         <fonts>

            <font embed-url="<path_to_file>/arial-unicode-ms.ttf" 
embedding-mode="subset" encoding-mode="single-byte">

               <font-triplet name="arial-unicode-ms" style="normal" 
weight="normal" />

            </font>

         </fonts>

      </renderer>

   </renderers>

</fop>

 

I have also put the font-family="Helvetica" inline to the fo:root element in 
the input fo file.

 

My characters to display are --> gğ GĞ cç CÇ sş SŞ ıI iİ oö OÖ uü UÜ

But instead I get --> g# G# cç CÇ s# S# #I i# oö OÖ uü UÜ

 

Please help.

 

 

Mit freundlichen Grüßen / Best regards

Jayesh Tripathi 

​

Reply via email to