United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6545343 One german character in GTK l&f in SwingSet2 demo is not properly displayed
JDK-6545343 : One german character in GTK l&f in SwingSet2 demo is not properly displayed

Details
Type:
Bug
Submit Date:
2007-04-12
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
client-libs
OS:
linux,linux_2.6
Sub-Component:
2d
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
6u2
Fixed Versions:

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
java bundle: jdk 6u2 b01
os: RHEL 5
architecture: x86

One german character (umlaut u) in GTK l&f in SwingSet2 demo is not properly displayed. The two dots above the letter "u" are too close one to the other. The other umlaut characters (o,a,e) are ok.
Screenshot is attached.
Actually, "a umlaut" and "o umlaut" have the same problem. I got confused by "a tilde" and "o tilde" which look like umlaut caracters should. I'm sorry sor the confusion.

                                    

Comments
EVALUATION

Truetype spec has following note:

> NOTE:  Always observe that DELTA instructions expect the argument list to be sorted
> according to ppem. The lowest ppem should be deepest on the stack, and the highest ppem
> should be topmost on the stack. 

However, at least some of DejaVu font seems to store deltap arguments in the reverse order.

Unfortunatelly our rasterazer relies on particular argument order to optimize argument lookup. Unexpected order of arguments causes T2K to miss applicable DELTAP arguments.

For instance, freetype does linear scan of all arguments and therefore it works fine with this font.
                                     
2007-05-28
EVALUATION

Current solution is to revert to usage of linear scan.

This is in line with what does freetype and seems to be different from Microsoft approach.
However, majority of known affected fonts are common on Linux platform and 
linear scan produces same results (as optimised procedure) on good fonts.

I.e. the only potential difference on typical Windows fonts is performance degradation.

However, it is very unlikely too - application of DELTA instruction is just small 
part of hinting process. Vast majority of lists of DELTA istructions is below 10 
elements (from sample of 1000 fonts). Moreover, DELTAs are mostly applicable to small sizes and jdk caches glyph images for these sizes in most of cases.
                                     
2007-05-31
SUGGESTED FIX

http://javaweb.sfbay/jcg/7/2D/6545343/
                                     
2007-05-31



Hardware and Software, Engineered to Work Together