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

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

    Details

    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      linux

      Description

      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.


        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: