Hello!
On 24.03.2006, 14:47 +0800 jeremi joslin wrote:
The attached
patch solves a problem in UTF-8 environments when creating
PDFs. It also requires the attached fop.cfg.xml (goes into
src/main/resources/).
With that patch applied, PDFs can be generated in an UTF-8 environment,
i.e. no longer exceptions while doing so. But the generated PDFs might
not contain all characters. This depends on the font being used to
generate the PDF. To make this work under all circumstances, one would
need a font containing the complete UTF-8 character set. Unfortunately
such fonts are not freely available. But for instance the DejaVu font
(which is based on the free BitStream Vera font) would be an option,
though CJK users would need to use another font.
To switch between the different fonts, it is currently required to edit
the xhtml2fo.xsl (the patch contains a comment which shows how to switch
to a Japanese font, at least for normal text).
Maybe using several xsl files, depending on the language settings of the
page would be an option to select the correct font?
Hi,
I tried, and it seems cool.
Does the "Mincho" font is free? Maybe, we can put it in the font
directory, and like you say we can create several xsl files for
differents languages.
There is one kind of Mincho font called sazanami-mincho which is free.
And yeah, putting a collection of free fonts into the font directory was
my intention, especially because you need to generate an additional file
per font for FOP.
Can you do it and the code for using this files
depending on the user language?
OK, I'll have a look at that then.
Can you also write a little text about configuring
the pdf export for
a special set of characters?
Sure...
--
Michael Reinsch <mreinsch(a)mandriva.com>
------------------------------------------------------------------------