Bug 22799 - [Font] Should have encoding support in jfacefonts.properties
Summary: [Font] Should have encoding support in jfacefonts.properties
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-23 15:56 EDT by Tetsuro Asahata CLA
Modified: 2004-08-27 13:42 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tetsuro Asahata CLA 2002-08-23 15:56:54 EDT
- WindowsXP(English) + MUI + GB18030 patch
- locale china(PRC)
- WSWB V2 + NLS fragments for WSWB

Default text font is NOT GB18030 enabled font, so that
editor can't show GB18030 character by default.
When I change text font from Workbench->Fonts page,
it can show the character.

However, it would be better if Eclipse could detect the existance of
GB18030 code page support and its font, then choose appropriate fonts.
Since WindowsXP support GB18030 code page by default even if it is a English 
version, but it doesn't have GB18030 font until user install GB18030 support 
kit.
Comment 1 Tod Creasey CLA 2002-08-26 10:24:25 EDT
The default fonts are defined by the jfacefonts.properties file for the locale 
in which you are using. The java.util.Locale class does not have encoding 
support so we cannot specify a fonts property file that does. However in the 
case of simplified Chinese encoding is an interesting determinator of font to 
use - we should consider this as part of the 2.1 encoding review.

Currently you can select a more appropriate font using the fonts preference 
page.

Renaming PR and adding Text component owner to the cc list.
Comment 2 Tod Creasey CLA 2002-09-19 16:03:33 EDT
Encoding support is really only required in the properties file for the 
GB18030 code page on Simplified Chinese. The jfacefonts.properties for 
Simplified Chinese should use GB18030 fonts - it is not required as a general 
solution.
Comment 3 Tetsuro Asahata CLA 2002-09-22 14:46:20 EDT
GB18030 fonts don't exist on Simplefied Chinese Windows 2000 nor
Windows XP by default.

User explicitly needs to install GB18030 enablement kit.

Does this solution work with Simplefied Chinese system
which doesn't have GB18030 fonts?
Comment 4 Tetsuro Asahata CLA 2003-06-19 23:26:52 EDT
Please let me know following information:

- Which fonts are used in jfacefonts.properties for Simplified Chinese?
   GB18030 enabled fonts or other?

- If the fonts are GB18030 enabled fonts, what happen if the OS (W2K or WinXP)
doesn't have the fonts, which is default config of W2K and WinXP?




 
Comment 5 Tod Creasey CLA 2003-06-20 12:47:12 EDT
You can find the font files in the jfacefonts.properties in files in the 
fragment for org.eclipse.jface.

The current (2.1) fragments list the following for Simplified CHinese

org.eclipse.jface.bannerfont.0=\u5B8B\u4F53-bold-9
org.eclipse.jface.headerfont.0=\u5B8B\u4F53-bold-12
org.eclipse.jface.textfont.0=\u5B8B\u4F53-regular-10
org.eclipse.jface.textfont.1=Courier-regular-10
org.eclipse.jface.textfont.2=Lucida Console-regular-9

Please note that the Eclipse team does not choose this fonts. If you have some 
better suggestions please append them to this report and we can see about 
getting them entered into the fragments.
Comment 6 Cam-Thu Le CLA 2003-06-20 15:13:05 EDT
If you refer to the Simplified Chinese translation, the Jfacefont.properties is
set to use the Simplified Chinese OS default font and not the GB18030 font. The
reason is because user will only get the GB18030 font when applying the GB18030
support kit.
Most users do not have the GB18030 support kit applied to their OS. The ones who
do just need to pick up the available GB18030 font.

It would be better if the code can pick up the "default font" set in the OS
(this font could be either regular Chinese font or GB18030 set previously by the
users)but this is not how the code works today. 
Comment 7 Tod Creasey CLA 2003-06-20 15:20:36 EDT
This would mean that Simplifed Chinese works differently than any other 
platform and would require special code for this case. This is not an adequate 
general solution regardless as we have similar issues in other configurations -
 hence this problem report.

The best short term solution is to find a set of fonts that exist on both the 
out of the box XP/2000 and in GB18030 - the user can always change them if 
required.
Comment 8 Cam-Thu Le CLA 2003-06-20 15:38:54 EDT
GB18030 char set is a "superset" of the Simplified Chinese char set. It contains
new glyphs which are just being introduced laterly to the computer world
(similar to the case of the Euro currency). The problem would be resolved if
GB18030 font is being used as "Microsoft windows default font". 
Until then, we need to use the "common" char set of GB18030/regular Simplified
Chinese, which is the regular Simplified Chinese char set. 
Comment 9 Tod Creasey CLA 2004-03-29 09:59:08 EST
Not for 3.0
Comment 10 Tod Creasey CLA 2004-06-28 11:28:14 EDT
Reopening now that 3.0 has shipped
Comment 11 Tod Creasey CLA 2004-08-27 13:42:33 EDT
We are moving away from this feature generally due to this an other issues 
with this solution. This is something that should be considered as part of 
Theme support.