ICEpdf
  1. ICEpdf
  2. PDF-970

Improve FontManagers exception handling.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1
    • Fix Version/s: 6.2
    • Component/s: Examples
    • Labels:
      None
    • Environment:
      Pro

      Description

      A customer has had trouble diagnosing a font substitution issue on a Linux system. The issue as it turns out is a AccessControlException when the process running the JVM doesn't have permission to read the fonts paths in question.

      During the font path read we catch and log AccessControlException as well as Throwable but we do this at the loggger.finer level which might not show up in the users logs.

      The proposal here to take a look at he loading process and see if we can provide better logging for the process and raise the appropriate warnings if now font scan be found.

        Activity

        Hide
        Patrick Corless added a comment -

        "Just to clarify, the issue isn't specifically an access violation trying to open the font, but rather it working when the font is located in a writable folder and not working when the font is in a read-only folder."

        Show
        Patrick Corless added a comment - "Just to clarify, the issue isn't specifically an access violation trying to open the font, but rather it working when the font is located in a writable folder and not working when the font is in a read-only folder."
        Hide
        Patrick Corless added a comment -

        Quite a bit of work was done around font loading on linux as part of PDF-1046. However the exception logging wasn't changed. I've updated AccessControlException catches to log as warnings and moved general exception to fine level from finer.

        Show
        Patrick Corless added a comment - Quite a bit of work was done around font loading on linux as part of PDF-1046 . However the exception logging wasn't changed. I've updated AccessControlException catches to log as warnings and moved general exception to fine level from finer.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: