PDFBox
  1. PDFBox
  2. PDFBOX-619

Adobe CFF/Type2 font encoding enhancements

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: FontBox
    • Labels:
      None

      Description

      The application of PDFBOX-542 was accompanied with several optimizations. Later testing has revealed that one of the optimizations - the replacement of List-type field org.apache.fontbox.cff.encoding.CFFEncoding#entries with two Map-type fields #code2sid and #sid2code - may come short in situations where the mapping between codes and SIDs is not one-to-one (AFAIK, it is not covered by the CFF specification, but there are real-life examples for that).

      I've compiled a patch file that restores the code in the original state.

      1. FontBox.patch
        8 kB
        Villu Ruusmann

        Issue Links

          Activity

          Jukka Zitting made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Andreas Lehmkühler made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Villu Ruusmann made changes -
          Fix Version/s 1.1.0 [ 12314761 ]
          Jukka Zitting made changes -
          Affects Version/s 1.0.0 [ 12314330 ]
          Affects Version/s 1.0.1 [ 12314762 ]
          Villu Ruusmann made changes -
          Link This issue is required by PDFBOX-620 [ PDFBOX-620 ]
          Villu Ruusmann made changes -
          Summary Reapplying parts of PDFBOX-542 Adobe CFF/Type2 font encoding enhancements
          Villu Ruusmann made changes -
          Attachment FontBox.patch [ 12435818 ]
          Villu Ruusmann made changes -
          Attachment FontBox.patch [ 12435778 ]
          Villu Ruusmann made changes -
          Field Original Value New Value
          Attachment FontBox.patch [ 12435778 ]
          Villu Ruusmann created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Villu Ruusmann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development