United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7074386 Fall back to fontconfig file based on only OS major version number on Linux
JDK-7074386 : Fall back to fontconfig file based on only OS major version number on Linux

Details
Type:
Bug
Submit Date:
2011-08-03
Status:
Closed
Updated Date:
2011-11-04
Project Name:
JDK
Resolved Date:
2011-10-11
Component:
client-libs
OS:
linux_redhat_6.1,linux
Sub-Component:
java.awt:i18n
CPU:
x86,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u25,6-pool
Fixed Versions:
6u30 (b08)

Related Reports
Backport:
Backport:
Backport:
Duplicate:

Sub Tasks

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

                                    

Comments
EVALUATION

code added to fallback to fontconfig file based off of single number version number
                                     
2011-09-09



Hardware and Software, Engineered to Work Together