Bug 52338 - Fop doesn't handle CID TrueType fonts in PostScript output
Summary: Fop doesn't handle CID TrueType fonts in PostScript output
Status: RESOLVED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: fonts (show other bugs)
Version: 1.0
Hardware: PC Linux
: P3 enhancement
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 07:32 UTC by Craig Ringer
Modified: 2012-06-22 18:11 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Ringer 2011-12-15 07:32:38 UTC
I'm using fop 1.0 and am having issues with a TrueType CID font - all the Myriad Pro family in TrueType.

I can embed them in PDF and get perfect results from fop. Unfortunately, I have to include some other resources that're supplied as EPSs or PDFs. PDF-in-PDF embedding via Jeremias's fop-pdf-image ext works but has font duplication problems that mean I can't use it, so I have to use PostScript output from FOP with embedded EPSs then chuck the result through Distiller.

That's where the problem arises. All the text using CID fonts, like Myriad Pro, comes out either as "[X]" boxes in the final PDF with the occasional odd random glyph scattered through it.

The same fonts embed and work perfectly in FOP's PDF output.

I can't attach the fonts for licensing reasons, but I can supply for testing purposes to anyone interested. The fonts were converted from OpenType versions (which fop doesn't support) using FontForge, so they're not studio originals, but they work perfectly in PDF embedding and other applications.

I've filed this under "fonts" but it should possibly be "ps" instead.

I'll test with latest svn trunk and report on that.
Comment 1 Mehdi Houshmand 2011-12-15 13:24:34 UTC
Hi Craig, there is a branch for just this:

..fop/branches/Temp_TrueTypeInPostScript/

I also have an outstanding patch:
https://issues.apache.org/bugzilla/show_bug.cgi?id=50483

That does some bug fixing, clean up etc, we are planning on merging this into trunk in the near future.

Try that, if you don't have any issues could close this bug, thanks.
Comment 2 Glenn Adams 2012-04-07 01:45:13 UTC
resetting P2 open bugs to P3 pending further review
Comment 3 Vincent Hennebert 2012-06-22 18:11:02 UTC
Possibility to embed TrueType fonts in PostScript has been added in rev. 1352986:
http://svn.apache.org/viewvc?rev=1352986&view=rev