On 30.01.2008 01:01:22 Manuel Mall wrote:
> > -----Original Message-----
> > From: Peter Sparkes [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, 30 January 2008 7:57 AM
> > To: [email protected]
> > Subject: Re: Chinese Fonts
> > 
> > Warren Young wrote:
> > > Peter Sparkes wrote:
> > >>
> > >> However, I do not know what the fonts are called so that I can tell
> > >> FOP what fonts to specify in the PDF.
> > >
> > > Have you tried just using the Unicode characters in question and
> > > seeing what happens?
> > >
> > > I have no experience with Asian character sets, but I'd bet you're
> > > barking up the wrong tree. You tell FOP about fonts when you want to
> > > change the document's look. This is different from Adobe Reader
> > > downloading additional fonts to expand its supported character set.
> > >
> > Yes I have tried just inserting the Chinese Characters eg 以請你告訴 and
> > the PDF outputs #####.
> 
> It appears Adobe is installing an OpenType font as part of the font pack. I
> just downloaded the Linux version and looked into the archive. It contains a
> font file called AdobeSongStd-Light.otf. Unfortunately FOP doesn't support
> OpenType fonts yet. Using ttfreader I get:
> 
> TTF Reader for Apache FOP svn-trunk
> 
> Parsing font...
> Reading Adobe/Reader8/Resource/CIDFont/AdobeSongStd-Light.otf...
> Font Family: [Adobe Song Std L, Adobe å®ä½ Std, Adobe å®ä½ Std L, Adobe Song
> Std]
> Error while building XML font metrics file.
> java.lang.UnsupportedOperationException: OpenType fonts with CFF data are
> not supported, yet
> 
> May be one of the font experts on the FOP team has some suggestions how to
> get FOP to generate a PDF with the correct metrics referencing the Adobe
> font e.g. 'Adobe Song Std'?

I'm afraid it's not possible, yet. Referencing a font currently only
works when using the WinAnsi encoding and that would exclude all Chinese
characters. Furthermore, as TTFReader says, the font contains CFF glyph
data which is still unsupported.

I do have a task item on my list where I will add support for
referencing fonts based on the font auto-detection. I guess I will be
able to look into the possibility of supporting referenced Unicode fonts.
Now, to answer the unavoidable question about the expected date: maybe
still in February, no guarantees.

My suggestion to Peter Sparkes is to find a different font that has the
Chinese glyphs but does not use CFF data and embed that. That will also
make the installation of the Chinese font pack unnecessary. I know there
are various free (as in GPL/OFL) Chinese fonts on the web. But I know
nothing about Chinese to be able to select one of the various fonts.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to