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

Remove usage of AWT fonts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • PDModel, Rendering
    • None

    Description

      We're still using AWT fonts to render the "standard 14" built-in fonts, which causes rendering problems and encoding issues (see PDFBOX-2140). We're also using AWT for some fallback fonts.

      Removal of these AWT fonts isn't too difficult, we need to load the fonts using the existing PDFFontManager mechanism which has recently been added. All missing TrueType fonts loaded from disk have been using SystemFontManager for a number of weeks now.

      We should ship some sensible default fonts with PDFBox, such as the Liberation fonts (see PDFBOX-2169, PDFBOX-2263), in case PDFFontManager can't find anything suitable, rather than falling back to the default TTF font, but by default we'll probe the system for suitable fonts.

      Attachments

        1. test_1fd9a_test.pdf
          164 kB
          Tilman Hausherr
        2. PDFBOX-1770.pdf-1.png
          125 kB
          Tilman Hausherr
        3. PDFBOX-1094-094730.pdf-1.png
          185 kB
          Tilman Hausherr
        4. PDF_Spec-Shading-23.pdf-1.png-diff.png
          5 kB
          Tilman Hausherr
        5. PDF_Spec-Shading-23.pdf-1.png
          53 kB
          Tilman Hausherr
        6. FreeSansTest.pdf
          22 kB
          Tilman Hausherr
        7. ELVIA-Reiserucktritt-Vollschutz.pdf-1.png
          160 kB
          Tilman Hausherr
        8. bugzilla886049.pdf-1.png
          143 kB
          Tilman Hausherr
        9. bugzilla886049.pdf
          532 kB
          Tilman Hausherr
        10. bugzilla867751.pdf-2.png-diff.png
          18 kB
          Tilman Hausherr
        11. bugzilla867751.pdf-2.png
          31 kB
          Tilman Hausherr
        12. Basiswissen-Vorschriften.pdf-9.png-diff.png
          18 kB
          Tilman Hausherr
        13. Basiswissen-Vorschriften.pdf-9.png
          135 kB
          Tilman Hausherr
        14. Basiswissen-Vorschriften.pdf-1.png-diff.png
          27 kB
          Tilman Hausherr
        15. Basiswissen-Vorschriften.pdf-1.png
          214 kB
          Tilman Hausherr
        16. Basiswissen-Vorschriften.pdf
          1010 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              jahewson John Hewson
              jahewson John Hewson
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: