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

Load a font “SimsunBold” throw an exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.24
    • None
    • FontBox
    • None

    Description

      Load the attach file, it will throws an exception:

      PDDocument doc = new PDDocument();
      PDPage page = new PDPage();
      doc.addPage(page);
      PDPageContentStream stream = new PDPageContentStream(doc, page);
      TrueTypeFont ttFont = new TTFParser().parse("simsunbd.ttf");
      PDFont font = PDType0Font.load(doc, ttFont, true); 

      Attachments

        1. image-2023-10-12-10-36-33-803.png
          74 kB
          bai yuan
        2. simsunbd.ttf
          13.33 MB
          bai yuan

        Issue Links

          Activity

            People

              Unassigned Unassigned
              berylbai bai yuan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: