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 "Nguyen, Thang" <tn...@fcg.com> on 2006/10/03 05:19:42 UTC

FOP embed truetype font into postscript file

hi,
 
I can not embed ttf font into postscript file using FOP_0.92_beta. The
document ( "fonts.pdf" in \fop-0.92beta\docs\0.92 ) wrote that Custom
Embeding is enabled for PostScript file but I still can not do that.
 
Do you know when will Apache support this feature ?
 
thanks,
 
Thang.


This email may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.


Re: FOP embed truetype font into postscript file

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I don't have much time right now, so I can only give you the most
important stuff. I can give you more on the weekend, if you need more.

The most important part is having the PostScript and TrueType
specifications around:

PS spec:
http://www.adobe.com/products/postscript/pdfs/PLRM.pdf

Other PS-related docs:
http://partners.adobe.com/public/developer/ps/index_specs.html

OpenType 1.4 spec (also applies to TrueType):
http://partners.adobe.com/public/developer/opentype/index_spec.html
http://www.microsoft.com/typography/otspec/default.htm

Other font-related docs:
http://partners.adobe.com/public/developer/opentype/index.html

I'd search for "Type 42" font in the PS language reference to start with.
However, if you want to have all glyphs of a TrueType font available you
have to look into the CID keyed fonts direction. I don't know anything
about how CID handling is done in PostScript, only for PDF, so for this
part you're pretty much on your own for now. It's probably easiest, if
you try to find/produce a PostScript file from a different application
that can already generate the right code for handling TrueType fonts so
you get an idea how this is done. You might also find some helpful
information on the web.

Another important hint is that some of the PostScript code is not in FOP
itself but in XML Graphics Commons:
http://svn.apache.org/repos/asf/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/

Most font-specific code, however, is still in FOP because we haven't
factored out the font library, yet. So the rest of the code will be
here:
http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/

Good luck!

On 04.10.2006 02:48:52 Nguyen, Thang wrote:
> It's great. Could you guide me where to start ?
> 
> Thang.
> 
> -----Original Message-----
> From: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
> Sent: Tuesday, October 03, 2006 2:49 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: FOP embed truetype font into postscript file
> 
> There are currently no plans to implement TrueType support for
> PostScript output. But you're welcome to help us with that. We can give
> you pointers to get you started if you want to jump in.
> 
> On 03.10.2006 05:19:42 Nguyen, Thang wrote:
> > hi,
> >  
> > I can not embed ttf font into postscript file using FOP_0.92_beta. The
> 
> > document ( "fonts.pdf" in \fop-0.92beta\docs\0.92 ) wrote that Custom 
> > Embeding is enabled for PostScript file but I still can not do that.
> >  
> > Do you know when will Apache support this feature ?
> >  
> > thanks,
> >  
> > Thang.
> > 


Jeremias Maerki


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


Re: FOP embed truetype font into postscript file

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
There are currently no plans to implement TrueType support for
PostScript output. But you're welcome to help us with that. We can give
you pointers to get you started if you want to jump in.

On 03.10.2006 05:19:42 Nguyen, Thang wrote:
> hi,
>  
> I can not embed ttf font into postscript file using FOP_0.92_beta. The
> document ( "fonts.pdf" in \fop-0.92beta\docs\0.92 ) wrote that Custom
> Embeding is enabled for PostScript file but I still can not do that.
>  
> Do you know when will Apache support this feature ?
>  
> thanks,
>  
> Thang.
> 



Jeremias Maerki


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