Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2857

[PATCH] FontCache.toDirectory() and FontCache.getDefaultCacheFile() not working correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: font/unqualified
    • Labels:
      None

      Description

      The function getDefaultCacheFile() of the class FontCache should work like this:

      [1] case: select user_dir
      -> user_dir: 'C:\Users\strv'
      -> temp_dir: 'C:\Users\strv\AppData\Local\Temp\'
      -> cache_file: 'C:\Users\strv\.fop\fop-fonts.cache'

      [2] case: select temp_dir
      -> user_dir: ''
      -> temp_dir: 'C:\Users\strv\AppData\Local\Temp\'
      -> cache_file: 'C:\Users\strv\AppData\Local\Temp\.fop\fop-fonts.cache'

      [3] case: select curr_dir
      -> user_dir: ''
      -> temp_dir: ''
      -> cache_file: 'fop-fonts.cache'

      Actually it works uncorrectly like this:

      [1] case: select user_dir
      -> user_dir: 'C:\Users\strv'
      -> temp_dir: 'C:\Users\strv\AppData\Local\Temp\'
      -> cache_file: 'C:\Users\strv\.fop\fop-fonts.cache'

      [2] case: select temp_dir
      -> user_dir: ''
      -> temp_dir: 'C:\Users\strv\AppData\Local\Temp\'
      -> cache_file: '.fop' --> wrong behavior !!!

      [3] case: select curr_dir
      -> user_dir: ''
      -> temp_dir: ''
      -> cache_file: '.fop' --> wrong behavior !!!

        Attachments

        1. FontCache.java.patch
          4 kB
          Vera Straube
        2. FontCache.java.patch2
          4 kB
          Vera Straube

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              javafan@gmx.net Vera Straube
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: