You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Cédric Augustin <ca...@alcyonis.fr> on 2004/10/12 11:48:55 UTC

Base font and russian

Hello,

At first, thanks to the dev for this wonderfull tools.

I need to generate a document in english, french, german and russian. All
the text are encoded in utf-8. Everything is fine except for russian. I
already read the thread of Nuno Lopes ("generating PDFs in non-english"
august 08) and I have a question :

Why should I change fop configuration to use base font ?
I read on http://www.cl.cam.ac.uk/~mgk25/unicode.html#fonts that fonts that
come with X11 covers all European characters (Latin, Greek, Cyrillic, intl.
phonetic alphabet, mathematical and technical symbols, in some fonts even
Armenian, Georgian, Katakana, Thai, and more).
 
Does fop use the X11 font ? In fop configuration it says that fop need X11
to be installed.
If not, which font does fop is using ?
If yes why the fop servlet doesn't found the cyrillic char and display
"####" ?

I don't want to use special font and embed it in the pdf. Base font should
be enough. Russian pdf created with Acrobat are well displayed on the client
computer, so I should be able to use standard font with fop.

Config : fop 0.20.5 in a customized servlet based on the exemple servlet,
running on a Apache Tomcat/5.0.16 on Apache Tomcat/5.0.16.

--------------------------------------------
Cédric Augustin
Alcyonis - Solutions Interactives 
Tel : 04 97 24 40 04 
cedric.augustin@alcyonis.fr
 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Base font and russian

Posted by Jeremias Maerki <de...@greenmail.ch>.
Backporting the changes is certainly doable, but don't underestimate the
effort. I'd guess it's more than just "a few hours". The PDF library has
dependencies on the font subsystem which has, like the PDF library,
changed quite a bit. If you need a quick solution, you're better off
post-processing.

On 14.10.2004 15:49:41 Cédric Augustin wrote:
> > Chris is right. The base14 fonts (Helvetica, Times and Courier, not
> > Symbol and ZapfDingbats) are defined in ISO-Latin1 format (if 
> > I remember
> > correctly). You won't get around using an embedded 
> > Unicode-TrueType font.
> > 
> 
> Thank you for your answer. I use the Thryomanes 1.2 font
> (http://www.io.com/~hmiller/lang/) and it works fine but I got trouble with
> encryption as said in bug
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21303
> 
> Is there anybody who did a patch to correct the code of the version 0.20.5
> to avoid embed font to be destroyed by encryption ?
> If no, is it easy for a basic java developper to do the back port from the
> dev branch to the maintain branch code ? If yes, I could perhaps ask my boss
> to give me few hours to do it... perhaps.
> If no, I will try the iText post process.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Base font and russian

Posted by Jeremias Maerki <de...@greenmail.ch>.
Chris is right. The base14 fonts (Helvetica, Times and Courier, not
Symbol and ZapfDingbats) are defined in ISO-Latin1 format (if I remember
correctly). You won't get around using an embedded Unicode-TrueType font.

On 12.10.2004 12:03:24 Chris Bowditch wrote:
> > I don't want to use special font and embed it in the pdf. Base font should
> > be enough. Russian pdf created with Acrobat are well displayed on the client
> > computer, so I should be able to use standard font with fop.
> 
> I dont think any of the 14 base Adobe fonts have glyphs for all the languages 
> you need. I think for russian you will need to specify a different font to the 
> other languages and embed it into the PDF.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Base font and russian

Posted by Chris Bowditch <bo...@hotmail.com>.
Cédric Augustin wrote:

<snip/>

> Does fop use the X11 font ? 

No.

> In fop configuration it says that fop need X11
> to be installed.

Thats right, or if you have Java 1.4 you can run with the -headless option.

> If not, which font does fop is using ?

Depends on what you specified in font-family property? Default is Helvetica. 
Definition of this is the Adobe Helvetica.

> If yes why the fop servlet doesn't found the cyrillic char and display
> "####" ?

This means the font you are using via font-family doesnt have a glyph for the 
requested code point.

> 
> I don't want to use special font and embed it in the pdf. Base font should
> be enough. Russian pdf created with Acrobat are well displayed on the client
> computer, so I should be able to use standard font with fop.

I dont think any of the 14 base Adobe fonts have glyphs for all the languages 
you need. I think for russian you will need to specify a different font to the 
other languages and embed it into the PDF.

<snip/>

Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org