Hi,

I have a standalone program which uses Apache FOP 2.6 to write hindi text
to a PDF using Amiko font using the following font metric configuration(On
CentOS 7 / Java 11),

<fop version="2.6">

<renderers>

   <renderer mime="application/pdf">

     <fonts>

        <font metrics-url="Fonts/Amiko.xml" kerning="yes"
embed-url="Fonts/Amiko.ttf" embedding-mode="full">

            <font-triplet name="any" style="normal" weight="normal" />

         </font>

         <auto-detect/>

     </fonts>

   </renderer>

</renderers>

</fop>


The Hindi text produced by the above is correct & shows up as follows in
the PDF,


[image: image.png]

If I remove <auto-detect/>, it changes to,

[image: image.png]

which is incorrect in almost every word. So, with the auto-detect tag in
place & using the same method with generates the PDF but called from an
application server(Wildfly 18 in my case), it always generates the
incorrect hindi text as in the last image above. I have tried putting
script attribute with deva/dev2 values but it further deteriorates the
hindi text in the PDF.

Please help me understand what is missing when the same code is run through
app server.


Thanks in advance,

Aejaz

Reply via email to