You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Vincent Hennebert <vi...@enseeiht.fr> on 2005/07/03 20:19:46 UTC

[FOrayFont] Font embedding in PDF

Hi,

again I would need a confirmation. I'm currently adapting FOrayFont to the PDF 
renderer. In pdf.PDFFactory there is a makeFontFile that builds an 
AbstractPDFStream containing the font embedding. In the aXSL FreeStandingFont 
interface there is a getPDFFontFileStream that appears to do that job.
I'm tempted to directly use this method and not makeFontFile anymore. But I 
wonder whether the two streams really represent the same thing or not, and if 
there may be differences in the two formats.

Any hint?

Thanks,
Vincent

RE: [FOrayFont] Font embedding in PDF

Posted by Victor Mote <vi...@outfitr.com>.
Vincent Hennebert wrote:

> again I would need a confirmation. I'm currently adapting 
> FOrayFont to the PDF renderer. In pdf.PDFFactory there is a 
> makeFontFile that builds an AbstractPDFStream containing the 
> font embedding. In the aXSL FreeStandingFont interface there 
> is a getPDFFontFileStream that appears to do that job.
> I'm tempted to directly use this method and not makeFontFile 
> anymore. But I wonder whether the two streams really 
> represent the same thing or not, and if there may be 
> differences in the two formats.

Yes, what you suggest should be right. IIRC, the output of the two does
represent the same thing. They may not be identical, especially for TTF
fonts, because of improvements made in FOray, but the general idea is that
getPDFFontFileStream() returns the content that should be placed in the PDF
stream.

Victor Mote