| Summary: | [Help] The help content always shows bold font in pure Win7 Arabic environment. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | EricHsu <ericcjhsu> | ||||||||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||||||
| Status: | RESOLVED WONTFIX | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | cgold, curtis.windatt.public, eclipse.felipe, pattyaustin, pwebster, roncraig007, zhhaohh | ||||||||||
| Version: | 3.7 | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows 7 | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
EricHsu
Created attachment 187813 [details]
EclipseHelpContentInWin7Arabic.png
Created attachment 187814 [details]
TestProgramInWin7Arabic.png
Created attachment 187815 [details]
Test Program
Moving to platform help. This isn't a plug-in development issue. The help page is not using the bold tags. I have a couple of questions: First can you attach a screenshot which shows the help view in Eclipse with bold characters where they should not be. Second do you see the problem for all contexts or just those which contain a bold tag? Created attachment 187925 [details]
Eclipse Help Content Font Issue In Pure Win7 Arabic
Hi Chris, Thanks for your investigation, For the question 1, Please refer my latest attached screenshot (EclipseHelpContentFontIssueInPureWin7Arabic.png), you can see the difference. For the question 2, We use bold tags for some terms in help contents, but cannot determine any difference in pure Win7 Arabic environment. Thanks!! I think that the difference is most likely due to the set of fonts which are installed on the system and which one is chosen by default. It appears that in the Win7 arabic case UI forms is using a font which does not have a bold variant and requesting a bold version of that font returns the original font. Looking at your screen shots the Pure Arabic Win 7 font looks very similar to the non bold parts of the English Win 7 with -nl ar so I'm not so sure that the text is bold in Pure Arabic Win 7. It is certainly the case that there is no difference in appearance between the parts that are supposed to be bold and those which are not. Hi Chris, According to your comments, It seems a system default font issue in Arabic Win7 environment. I have few questions for this: 1. For Eclipse SWT components, the default font priority is based on JDK fontconfig.properties or JFace jfacefonts.properties? 2. Is this work as design in Arabic Win7 support currently? Thanks for your comments!! Please note we have the exact same issue with Traditional Chinese as well. There is no difference between bold and regular characters. The help view uses the FormText widget from the UI Forms component and UI Forms requests a bold variant of a font from SWT. Fonts usually come in Font families so each font can come in different sizes and with bold and italic variants, one possibility is that the Font family being used is missing a bold variant. I can't say that this is working as designed. Vivian, do you have access to a Windows 7 machine? If so can you see whether you see this issue in Traditional Chinese. Hi Chris, Any update for this? Thank you. No, I haven't been looking into this bug recently. Hi Chris, Is there any update regarding to this problem and may I ask if there's any target date or build for this fix? Thank you, Amanda I have some questions about the screen shots. In the top line of TestProgramInWin7Arabic.png do all 4 strings have the same font weight? Does the test program illustrate the bug or is the problem seen only with context help? Assigning to SWT team for comment. As I understand the root cause of the problem is that the default font selected on the Pure Arabic Win 7 system does not have a bold variant. There are other fonts available, including David which have bold variants. How is the default Eclipse font determined and is there a preference to override it? (In reply to comment #15) > I have some questions about the screen shots. In the top line of > TestProgramInWin7Arabic.png do all 4 strings have the same font weight? Does > the test program illustrate the bug or is the problem seen only with context > help? The following code is the one for generating the top line of TestProgramInWin7Arabic.png. And we set BOLD for the middle string. label1 = new Label(this, SWT.NONE); label1.setText("متاح فقط اذا تم تحديد مربع الاختيار "); label2 = new Label(this, SWT.BOLD); label2.setText("الملء من مجموعة الحروف"); label3 = new Label(this, SWT.NONE); label3.setText(". حدد مجموعة حروف بنود الكشف المراد استخدامها لملء الكشف."); And the test program illustrates the bug that the bold font can't be shown as describing here. Thank you (In reply to comment #17) > label2 = new Label(this, SWT.BOLD); this line not valid. Is the problem that you don't get bold arabic text with the default font (Segoe UI) ? (In reply to comment #18) > (In reply to comment #17) > > label2 = new Label(this, SWT.BOLD); > this line not valid. > > Is the problem that you don't get bold arabic text with the default font (Segoe > UI) ? Yes. The problem is we can't see the bold face with the default font which is Segoe UI even if we set it as BOLD. (In reply to comment #19) > (In reply to comment #18) > > (In reply to comment #17) > > > label2 = new Label(this, SWT.BOLD); > > this line not valid. > > > > Is the problem that you don't get bold arabic text with the default font (Segoe > > UI) ? > Yes. The problem is we can't see the bold face with the default font which is > Segoe UI even if we set it as BOLD. Not that new Label(this, SWT.BOLD); is not a valid way to set bold font. Anyhow, the problem is in the font. It is hard to see the difference between bold and regular glyphs for Arabic text in this font. Try on Notepad. Nothing I can do here, you need to choose a font that has better Arabic support for you. Sorry. |