Fop
  1. Fop
  2. FOP-2004

Fop doesn't handle CID TrueType fonts in PostScript output

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: font/unqualified
    • Labels:
      None
    • Environment:
      Operating System: Linux
      Platform: PC
    • External issue ID:
      52338

      Description

      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.

        Activity

        Hide
        Vincent Hennebert added a comment -

        Possibility to embed TrueType fonts in PostScript has been added in rev. 1352986:
        http://svn.apache.org/viewvc?rev=1352986&view=rev

        Show
        Vincent Hennebert added a comment - Possibility to embed TrueType fonts in PostScript has been added in rev. 1352986: http://svn.apache.org/viewvc?rev=1352986&view=rev
        Hide
        Glenn Adams added a comment -

        resetting P2 open bugs to P3 pending further review

        Show
        Glenn Adams added a comment - resetting P2 open bugs to P3 pending further review
        Hide
        Mehdi Houshmand added a comment -

        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.

        Show
        Mehdi Houshmand added a comment - 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.

          People

          • Assignee:
            fop-dev
            Reporter:
            Craig Ringer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development