Bug 42330 - Tibetan characters not rendered correctly in PDF
Summary: Tibetan characters not rendered correctly in PDF
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.93
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-03 15:23 UTC by Mildred
Modified: 2012-04-07 01:52 UTC (History)
0 users



Attachments
Screenshoot (61.27 KB, image/png)
2007-05-03 15:29 UTC, Mildred
Details
FO source (866 bytes, text/plain)
2007-05-03 15:35 UTC, Mildred
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mildred 2007-05-03 15:23:44 UTC
The tibetan characters are not drawn correctly in my PDf documents. Aparently
it's not the PDF reader's fault because OpenOffice can generate correct
documents that can be seen in every PDF reader i have. Moreover, even Adobe
Reader can't display correctly FOP's PDF documents.

I already filled a poppler bug I closed because it's not the poppler's fault :
https://bugs.freedesktop.org/show_bug.cgi?id=10845

I'll attach the FO document I use and screenshoot of the result. If you need the
tibetan font, it is called "TibetanMachineUni" and can be found in the tools
section of the website http://www.thdl.org/. Because it became a little harder
to download it I made it avaible on my website:
http://silkensedai.free.fr/TibetanMachineUni.ttf (licence is GPL)
Comment 1 Mildred 2007-05-03 15:29:12 UTC
Created attachment 20127 [details]
Screenshoot

Attached the screenshoot showing the document generated by FOP in Acrobat
Reader and the OpenOffice generated document in xpdf.
Comment 2 Mildred 2007-05-03 15:35:32 UTC
Created attachment 20128 [details]
FO source

Attached the FO source I use. Here is an extract of my fop.xconf file :

       <font metrics-url="TibetanMachineUni.xml" kerning="yes"
embed-url="TibetanMachineUni.ttf">
	  <font-triplet name="Tibetan" style="normal" weight="normal"/>
	  <font-triplet name="TibetanMachineUni" style="normal"
weight="normal"/>
	</font>


The TibetanMachineUni.xml file can be found here:
http://silkensedai.free.fr/TibetanMachineUni.xml

To generate this file, I used the command line:

java -cp
/opt/fop/build/fop.jar:/opt/fop/lib/avalon-framework-4.2.0.jar:/opt/fop/lib/commons-logging-1.0.4.jar:/opt/fop/lib/commons-io-1.1.jar
org.apache.fop.fonts.apps.TTFReader TibetanMachineUni.ttf TibetanMachineUni.xml
Comment 3 Mildred 2007-05-03 15:38:02 UTC
Please note that the attachement 'FO source' is encoded in UTF-8. Please force
the encoding or replace the fo:block by:

            <fo:block>&#3943;&#3953;&#3956;&#3970;&#3860;</fo:block>
Comment 4 Glenn Adams 2012-04-07 01:43:28 UTC
resetting P2 open bugs to P3 pending further review