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

Fall back to fontconfig file based on only OS major version number on Linux

    Details

    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      generic, x86
    • OS:
      linux, linux_redhat_6.1
    • Verification:
      Verified

      Backports

        Description

        with RHEL 5, Red Hat switched their version scheme from a single number (i.e. RHEL 4) to a <major>.<minor> (i.e. RHEL 5.6). This causes problems because FontConfiguration will expect a different fontconfig file for each update of RHEL.

        The solution is to first search for a fontconfig file based on the <major>.<minor> version number and if we don't find that, fall back to a file based on just the major file number. That way we can have a “default” fontconfig for the major release, and add an update specific file if there is a need to override the behavior.

        For example, on a Solaris 10 machine (Sun OS 5.10) , it currently would look for the following files in order :

        fontconfig.5.10.properties
        fontconfig.5.10.bfc
        fontconfig.properties
        fontconfig.bfc

        We want it to also look for a fontconfig file with a name based off of the major version alone:

        fontconfig.5.10.properties
        fontconfig.5.10.bfc
        fontconfig.5.properties
        fontconfig.5.bfc
        fontconfig.properties
        fontconfig.bfc

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dbuck David Buck
                  Reporter:
                  dbuck David Buck
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: