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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.3
    • None
    • font/unqualified
    • 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.patch2
          4 kB
          Vera Straube
        2. FontCache.java.patch
          4 kB
          Vera Straube

        Activity

          People

            Unassigned Unassigned
            javafan@gmx.net Vera Straube
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: