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 Jacek Wojcik <ja...@altar.com.pl> on 2004/09/29 10:48:12 UTC

PS render, fonts, embedding

Hello,

My English is not good (sorry...) but...:)
I've got problem with PS render (i use FOP 0.20.5) and embedding fonts
TTF (encoding ISO-Latin-2).
I have to generate 200000 pages (or more) using FOP and i don't want use
Acrobat Reader to convert the PDF to PS (too many times): "acroread
-toPostScript -fast -level2 -size a4" (suggested by Jeremias Marki).

I want use direct conversion to PS (XML+XSL => PS), but my fonts (TTF)
are not embedding in PS and when I print it on printer - it don't look
good.
Is it possibly in version 0.20.5? Maybe it is possibly in higher
version? Maybe it will be possibly?

THX.

Jacek Wojcik.


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


Re: PS render, fonts, embedding

Posted by Jeremias Maerki <de...@greenmail.ch>.
I'm quite booked out in October but I'll do a time estimation and will
get back to you off-list tomorrow.

On 29.09.2004 12:36:41 Jacek Wojcik wrote:
> Thanks again. We have one more question.
> Could You please point out someone (maybe You) who can add this feature 
> to FOP library (creating PS files using ISO-Latin-2 fonts without using 
> any external programms or installing fonts directly on printers etc.) as
> 
> we are not familiar enough with PostScript to do this.
> How much would it cost?
> Is it possible to achieve in a month time since now?
> All we need is jar file (or part of it) easily exchangeable with one of 
> 0.20.5 release.



Jeremias Maerki


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


RE: PS render, fonts, embedding

Posted by Victor Mote <vi...@outfitr.com>.
Jacek Wojcik wrote:

> Thanks again. We have one more question.
> Could You please point out someone (maybe You) who can add 
> this feature to FOP library (creating PS files using 
> ISO-Latin-2 fonts without using any external programms or 
> installing fonts directly on printers etc.) as
> 
> we are not familiar enough with PostScript to do this.
> How much would it cost?
> Is it possible to achieve in a month time since now?
> All we need is jar file (or part of it) easily exchangeable 
> with one of
> 0.20.5 release.

Sorry, I should also have mentioned that the commercial applications may be
able to do this as well. I think RenderX XEP has Type1 support for their
PostScript renderer. They have a new release due out in October, I think.
Other commercial applications may support what you want as well, but I am
not familiar with them.

Victor Mote


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


RE: PS render, fonts, embedding

Posted by Victor Mote <vi...@outfitr.com>.
 Jacek Wojcik wrote:

> Thanks again. We have one more question.
> Could You please point out someone (maybe You) who can add 
> this feature to FOP library (creating PS files using 
> ISO-Latin-2 fonts without using any external programms or 
> installing fonts directly on printers etc.) as
> 
> we are not familiar enough with PostScript to do this.
> How much would it cost?
> Is it possible to achieve in a month time since now?
> All we need is jar file (or part of it) easily exchangeable 
> with one of
> 0.20.5 release.

If Jeremias can help you in the time frame you want, that is probably your
best option. If not, please contact me off-list for another possible
solution.

Victor Mote


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


RE: PS render, fonts, embedding

Posted by Jacek Wojcik <ja...@altar.com.pl>.
Thanks again. We have one more question.
Could You please point out someone (maybe You) who can add this feature 
to FOP library (creating PS files using ISO-Latin-2 fonts without using 
any external programms or installing fonts directly on printers etc.) as

we are not familiar enough with PostScript to do this.
How much would it cost?
Is it possible to achieve in a month time since now?
All we need is jar file (or part of it) easily exchangeable with one of 
0.20.5 release.

Jacek Wójcik


-----Original Message-----
From: Jeremias Maerki [mailto:dev.jeremias@greenmail.ch] 
Sent: Wednesday, September 29, 2004 11:52 AM
To: fop-user@xml.apache.org
Subject: Re: PS render, fonts, embedding



On 29.09.2004 11:24:43 Jacek Wojcik wrote:
> Thank You for Your quick answer. Installing fonts on printers is not
> convenient way for us to solve this problem due to many clients and
many
> 
> different printers they have to print to.
> Is there any way You could help us correcting this problem directly in
> FOP libraries? Which classes/methods should be modified. 

The PS renderer is in the org.apache.fop.render.ps package. The class to
modify is primarily PSRenderer. The method where currently the fonts are
set up is writeFontDict(FontInfo). That's where you can probably add
code to embedd the font program. I don't know how much you are familiar
with PostScript and TrueType fonts but you should be aware that TrueType
can only be embedded in PostScript programs since Level 3. So you will
also need to check if your printer supports PostScript Level 3.
Otherwise you'll have to switch to Type 1 fonts.

To embed a TrueType font a Type 42 font dictionary has to be created
containing the font file. See chapter 5.8.2 in PostScript Language
Reference, third edition.

> If no, please
> tell us when we can expect the FOP release containing PS font
embeding.

There's currently no release date in sight.


Jeremias Maerki


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




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


Re: PS render, fonts, embedding

Posted by Jeremias Maerki <de...@greenmail.ch>.
On 29.09.2004 11:24:43 Jacek Wojcik wrote:
> Thank You for Your quick answer. Installing fonts on printers is not 
> convenient way for us to solve this problem due to many clients and many
> 
> different printers they have to print to.
> Is there any way You could help us correcting this problem directly in 
> FOP libraries? Which classes/methods should be modified. 

The PS renderer is in the org.apache.fop.render.ps package. The class to
modify is primarily PSRenderer. The method where currently the fonts are
set up is writeFontDict(FontInfo). That's where you can probably add
code to embedd the font program. I don't know how much you are familiar
with PostScript and TrueType fonts but you should be aware that TrueType
can only be embedded in PostScript programs since Level 3. So you will
also need to check if your printer supports PostScript Level 3.
Otherwise you'll have to switch to Type 1 fonts.

To embed a TrueType font a Type 42 font dictionary has to be created
containing the font file. See chapter 5.8.2 in PostScript Language
Reference, third edition.

> If no, please 
> tell us when we can expect the FOP release containing PS font embeding.

There's currently no release date in sight.


Jeremias Maerki


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


RE: PS render, fonts, embedding

Posted by Jacek Wojcik <ja...@altar.com.pl>.
Thank You for Your quick answer. Installing fonts on printers is not 
convenient way for us to solve this problem due to many clients and many

different printers they have to print to.
Is there any way You could help us correcting this problem directly in 
FOP libraries? Which classes/methods should be modified. If no, please 
tell us when we can expect the FOP release containing PS font embeding.

Jacek Wójcik.


-----Original Message-----
From: Jeremias Maerki [mailto:dev.jeremias@greenmail.ch] 
Sent: Wednesday, September 29, 2004 10:59 AM
To: fop-user@xml.apache.org
Subject: Re: PS render, fonts, embedding


As described here [1] font embedding is not supported by the PostScript
renderer. The fonts to be used have to be installed on the printer you
are going to print on. Font embedding is also not yet implemented in the
latest code. And I've done no testing on encodings other than ISO Latin
1 for the PS renderer. You may also have to switch from TTF fonts to
Type 1 fonts. If installing the fonts on the printer doesn't help, you
will have to use a work-around. GhostScript may also help you to embed
the fonts after generating the PS file (do a PS-to-PS conversion).

[1] http://xml.apache.org/fop/output.html#ps

On 29.09.2004 10:48:12 Jacek Wojcik wrote:
> I've got problem with PS render (i use FOP 0.20.5) and embedding fonts

> TTF (encoding ISO-Latin-2). I have to generate 200000 pages (or more) 
> using FOP and i don't want use Acrobat Reader to convert the PDF to PS

> (too many times): "acroread -toPostScript -fast -level2 -size a4" 
> (suggested by Jeremias Marki).
> 
> I want use direct conversion to PS (XML+XSL => PS), but my fonts (TTF)

> are not embedding in PS and when I print it on printer - it don't look

> good. Is it possibly in version 0.20.5? Maybe it is possibly in higher
> version? Maybe it will be possibly?


Jeremias Maerki


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




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


Re: PS render, fonts, embedding

Posted by Jeremias Maerki <de...@greenmail.ch>.
As described here [1] font embedding is not supported by the PostScript
renderer. The fonts to be used have to be installed on the printer you
are going to print on. Font embedding is also not yet implemented in the
latest code. And I've done no testing on encodings other than ISO Latin
1 for the PS renderer. You may also have to switch from TTF fonts to
Type 1 fonts. If installing the fonts on the printer doesn't help, you
will have to use a work-around. GhostScript may also help you to embed
the fonts after generating the PS file (do a PS-to-PS conversion).

[1] http://xml.apache.org/fop/output.html#ps

On 29.09.2004 10:48:12 Jacek Wojcik wrote:
> I've got problem with PS render (i use FOP 0.20.5) and embedding fonts
> TTF (encoding ISO-Latin-2).
> I have to generate 200000 pages (or more) using FOP and i don't want use
> Acrobat Reader to convert the PDF to PS (too many times): "acroread
> -toPostScript -fast -level2 -size a4" (suggested by Jeremias Marki).
> 
> I want use direct conversion to PS (XML+XSL => PS), but my fonts (TTF)
> are not embedding in PS and when I print it on printer - it don't look
> good.
> Is it possibly in version 0.20.5? Maybe it is possibly in higher
> version? Maybe it will be possibly?


Jeremias Maerki


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