JDK-4337267 : Arabic Numeral Shaping
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_2.5
  • CPU: generic
  • Submitted: 2000-05-11
  • Updated: 2017-05-16
  • Resolved: 2009-10-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b74Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
RFE 4210199 states the Arabic numeral shaping problem.  This RFE proposes fixing it only at the TextLayout level.  The vast majority of users never use TextLayout however so for this feature to be visible, it needs to be exposed in the GUI level as well.  Since we do not generally support Arabic under AWT, this means supporting it in Swing.

Comments
SUGGESTED FIX Webrev: http://sa.sfbay.sun.com/projects/swing_data/7/4337267.6
16-09-2009

EVALUATION New client property is recognized on JComponent: TextAttribute.NUMERIC_SHAPING. Example code (here, `c' is an instance of JComponent): c.pitClientProperty(TextAttribute.NUMERIC_SHAPING, NumericShaper.getContextualShaper(NumericShaper.ARABIC)); After this, Arabic numeral shaping is turned on for the component. In order to turn the shaping off, pass `null' as the property value.
16-09-2009

EVALUATION A new API should be introduced on the TextComponent that allows setting of the appropriate NumericShaper. Any Swing code that creates TextLayout objects should pass this information to the appropriate constructor.
18-05-2007

EVALUATION At the minimum, the new TextAttribute should be available through the Swing styled text components. For unstyled text in other components, it should probably be tied into locale somehow. This feature is common in other platforms and so is needed for competative reasons. brian.beck@Eng 2000-05-10
10-05-2000