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

Need to use fontconfig for more font lookups on Unix (Solaris & Linux)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
      2d
    • Understanding:
      Cause Known
    • CPU:
      x86
    • OS:
      linux_suse_sles_8.2

      Description

      This occurs only on a SuSE 9.3 system, and reproducible from tiger onwards. A simple awt testcase takes a very long time (15 sec) to load. The Frame is displayed but some of the components are not rendered and the components visible are not responding to user actions. On the Frame, I've a canvas where I'm drawing a string using Helvetica font. If I comment out the code which sets the font, the app launches quickly. The testcase attached.

      The thread dump (attached) shows that the getFontPath method takes a long time to complete. I've tried out the instructions listed in the evaluation of bug 4943191.

      uname -a:
      Linux jlab412 2.6.11.4-20a-default #1 Wed Mar 23 21:52:37 UTC 2005 i686 i686 i386 GNU/Linux

      ls -l /usr/lib/libfontconfig.so
      lrwxrwxrwx 1 root root 22 Sep 1 2005 /usr/lib/libfontconfig.so -> libfontconfig.so.1.0.4

      /usr/lib/libfontconfig.so.6 does not exist

      ls -lL /usr/lib/libfontconfig.so
      -rwxr-xr-x 1 root root 184116 Mar 20 00:43 /usr/lib/libfontconfig.so

      Output of sum:
      14310 180

      Tried fc-list, fc-cache and reran the test, but it is still taking time to load.

      Outputs of strace command attached. strace1 is the log before running fc-list and fc-cache; strace2 after running the commands.

        Attachments

          Activity

            People

            Assignee:
            prr Philip Race
            Reporter:
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Imported:
              Indexed: