United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5035993 REG: Text not rendered properly on vertical progressbar for some locale strings
JDK-5035993 : REG: Text not rendered properly on vertical progressbar for some locale strings

Details
Type:
Bug
Submit Date:
2004-04-22
Status:
Resolved
Updated Date:
2004-09-07
Project Name:
JDK
Resolved Date:
2004-05-04
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
1.4.2_05 (05)

Related Reports
Backport:
Backport:

Sub Tasks

Description
Text is not rendered properly for vertical JProgressBar on some locales. The text is not drawn in vertical line. Its slanting. Refer to attached screen shot.
Regression introduced in b45.

Compile and Run JProgressBarTest.java

This behavior is noted for Korean, Chinese and Thai.

                                    

Comments
EVALUATION

Wow, slanted text! I don't believe we could do this in Swing even if we tried ;)
Re-assigning to Java 2D.
###@###.### 2004-04-22
==================================

I can reproduce this on Solaris 9. It looks like its caused by the fix for
4458472

###@###.### 2004-04-22
=============================

Name: inR10103			Date: 04/23/2004


  This is regression introduced in the fix for 4458472.
  The problem is reproducible if bitmap bolding is applied and bitmap is
widened during bolding process. In such case we correct xAdvanceWidth16x16 to
reflect width change but for rotated case this logic is not correct and we
might need to change yAdvance instead.
  In this particular test for vertical progress bar we all glyphs
has horisontal advance equal to one pixel (correct supposed to be 0).
String layout logic (actually similar effect is achivable with
Graphics.drawString()) accumulate this error and cause this funny effect. 
   For quadrant rotations this problem is easy to fix (we should not 
increment zero advances and pay attention to advance sign) but            
proper support for arbitrary rotations might be more complicated. 


======================================================================
                                     
2004-09-08
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
1.4.2_05
mustang
tiger-beta2

FIXED IN:
1.4.2_05
mustang
tiger-beta2

INTEGRATED IN:
1.4.2_05
mustang
tiger-b50
tiger-beta2


                                     
2004-09-08



Hardware and Software, Engineered to Work Together