Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8237060

"Font.createFont: IOException Problem reading font data." is too vague.

XMLWordPrintable

    • 2d
    • x86
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      Any OS. (Basically any Java version, tested with jre-openjdk-13 & 11)

      A DESCRIPTION OF THE PROBLEM :
      To be clear: I'm asking for a descriptive error message, not for help with my particular problem (https://stackoverflow.com/questions/59557737/java-font-createfont-problem-reading-font-data-arch-linux).

      "Problem reading font data." could mean:
       - Permission denied.
       - File does not exist.
       - Invalid file format.
       - Missing dependency.
       - etc.

      I currently have this issue loading a TTF from JAR in Arch Linux ARM (tested with jre 11 and 13), but the same JAR works perfectly fine on Ubuntu (tested with jre 11).

      How is a developer supposed to debug this? (I've tried to use -Ddevelopment.trace=true, but can't get it to work)

      The Exception should have a normal trace or, if not possible, include more information.


            prr Philip Race
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: