Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3162

IllegalStateException in TTFSubsetter

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: FontBox
    • Labels:
      None
    • Environment:
      2.0.0-RC2

      Description

      Hi encountered a rare exception with an empty TTF subset:

      ==> [1] caused by java.lang.IllegalStateException: subset is empty
      1.: org.apache.fontbox.ttf.TTFSubsetter.writeToStream(TTFSubsetter.java:921)
      2.: org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.subset(TrueTypeEmbedder.java:304)
      3.: org.apache.pdfbox.pdmodel.font.PDType0Font.subset(PDType0Font.java:162)
      4.: org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1102)
      5.: com.helger.pdflayout.PageLayoutPDF.renderTo(PageLayoutPDF.java:276)
      

      Unfortunately I don't know yet what was causing the problem, but I will provide you with more details on Monday (if necessary).

      If there is nothing to subset - I think the call should simply be ignored???
      Or maybe this is a problem because of the "uni" name bug (in 2.0.0-RC2) I reopened lately?

        Attachments

        1. variables-on-error.png
          29 kB
          Philip Helger
        2. OpenSans-Regular.ttf
          212 kB
          Philip Helger
        3. OpenSans-Bold.ttf
          219 kB
          Philip Helger

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              phax Philip Helger
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: