JDK-4150075 : Logical font with style cannot display Japanese
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.2.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1998-06-18
  • Updated: 1999-01-19
  • Resolved: 1999-01-19
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.
Other
1.2.0 1.2beta4Fixed
Related Reports
Relates :  
Relates :  
Description
Logical font name, like 'Serif' with style (except PLAIN) cannt display Japanese. Seems like fix of 4138922 is not completed to styled font.

STEPS: On Win32 japanese system, JDK1.2Beta4 "J"
Compile and run attached source code w/

C:\> java SimpleDraw Serif "MS PMincho" <some_japanese_character>

Line above uses font "Serif" w/ BOLD attributes cannot display Japanese, only square.

[koushi.takahashi@japan 1998-06-18]

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.2beta4 FIXED IN: 1.2beta4 INTEGRATED IN: 1.2beta4 VERIFIED IN: 1.2beta4
14-06-2004

WORK AROUND [xueming.shen@Japan 1998-06-19] I am not sure if I really understand the logic in mapFamilyName() which tries to figure out the family name from fotname.0 entry in the font.properties, as I mentioned in another email that 2D should define it's own entries in the font.properties, not depends on those entries for peered awt components. But following modification could be a temporary workaround for JCK. --- SunGraphicsEnvironment.java Fri Jun 19 18:56:49 1998 *************** *** 287,292 **** --- 287,297 ---- break; // no further resolution permitted } + if (terminalNames.containsKey(familyStr) + && ((Integer)terminalNames.get(familyStr)).intValue() > 3){ + break; // no further resolution permitted + } + String propStr = familyStr + "." + styleStr(style) + ".0"; String newName = fprops.getProperty(propStr); if (debugMapping) {
11-06-2004

EVALUATION font.properties.ja updated to specify tangible fonts on winnt4.0-J paul.charlton@eng 1998-06-26 Fix confirmed on Winnt4.0 ja koushi.takahashi@japan 1998-08-12
26-06-1998

PUBLIC COMMENTS font.properties.ja updated to specify tangible fonts on winnt4.0-J paul.charlton@eng 1998-06-26
26-06-1998