W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2008

Re: Fonts in Linux environment

From: Ashish Baijal <abaijal@gmail.com>
Date: Thu, 11 Dec 2008 16:04:42 -0500
Message-ID: <d091745d0812111304q4479f38dgdfe8059aaa7467bf@mail.gmail.com>
To: www-xsl-fo@w3.org
The solution that I found

1) Moved the ttf files into classpath.
2) Created the metric files using
java -cp
./fop-0.95-1.jar;./xmlgraphics-commons-1.3.1.jar;commons-logging-1.0.4.jar;./commons-io-1.3.1.jar
org.apache.fop.fonts.apps.TTFReader -enc ansi Arial.ttf Arial.xml

3)Made my base directory and font directory same. Both containing the xml
and ttf file.

I dont know what part was required or could have been done away but as of
now PDF generation with embedded font is working.

Thanks for help everyone

Ashish
On Tue, Dec 2, 2008 at 4:17 PM, Patil, Pradnya <Pradnya.Patil@ca.com> wrote:

>  I am sorry, this is not an answer, but a related question about
> generating pdf files containing Japanese characters on a Linux platform.
>
>
>
> On Windows I use the configuration file to point to MSMincho.ttf, and
> specify MSMincho as the font-family in the xsl. This generates a pdf file
> with embedded MSMincho font, so that Japanese characters are displayed
> correctly.
>
> Which font can be used on Linux for displaying Japanese characters?
>
>
>
> Thank you,
>
> -Pradnya Patil
>
>
>
Received on Thursday, 11 December 2008 21:05:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 11 December 2008 21:05:23 GMT