Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348437

Summary: [Accessibility] Non Editable Text in Wizard Dialog is not honoring Font Size and Change
Product: [Eclipse Project] JDT Reporter: mukundan desikan <mukund>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, daniel_megert, kleind, markus.kell.r, mpcarl
Version: 3.6.2Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
high contrast setting
none
Picture with large OS font on Windows 7
none
eclipse362 screen shot
none
eclipse342 screen shot
none
eclipse37-rc4 screenshot
none
eclipse startup
none
eclipse startup win 7 none

Description mukundan desikan CLA 2011-06-06 13:04:30 EDT
Build Identifier: Eclipse 3.6.2 M20110210-1200

Non Editable text in wizard dialog is not changing the fonts size as per the windows system settings in high contrast mode.

Reproducible: Always

Steps to Reproduce:
1.set the windows system to use Larger fonts . you can do this  from Display Properties by Right-click on desktop - Select Properties - > Appearance
2.Change the windows setting to use high contrast mode from control panel (Accessibility)
3.Open up Eclipse 362 IDE and select new java project
Comment 1 mukundan desikan CLA 2011-06-06 13:05:10 EDT
Created attachment 197422 [details]
high contrast setting
Comment 2 mukundan desikan CLA 2011-06-06 13:06:40 EDT
please check the red boxed section in the attached image. Believe its the TitleAreaDialog that has a title and description that doesnt change to the systems font size.
Comment 3 Curtis Windatt CLA 2011-06-06 14:30:47 EDT
Moving to JDT
Comment 4 Dani Megert CLA 2011-06-07 03:28:53 EDT
I cannot reproduce this. Maybe the font got manually changed while testing.
Comment 5 Dani Megert CLA 2011-06-07 03:29:26 EDT
Created attachment 197478 [details]
Picture with large OS font on Windows 7
Comment 6 mukundan desikan CLA 2011-06-08 15:28:47 EDT
Created attachment 197637 [details]
eclipse362 screen shot
Comment 7 mukundan desikan CLA 2011-06-08 15:29:04 EDT
Created attachment 197638 [details]
eclipse342 screen shot
Comment 8 mukundan desikan CLA 2011-06-08 15:31:21 EDT
Attached couple of screen shots from Eclipse 342 and 362 . Even after restarting the eclipse IDE (after changing the system font size) the title message doesnt seem to change to bigger font.This is reproducible on Windows XP .
Comment 9 Dani Megert CLA 2011-06-09 02:44:57 EDT
(In reply to comment #8)
> Attached couple of screen shots from Eclipse 342 and 362 . Even after
> restarting the eclipse IDE (after changing the system font size) the title
> message doesnt seem to change to bigger font.This is reproducible on Windows XP
> .

Can you please try with 3.7 RC4. Also: is this with a new workspace?
Comment 10 mukundan desikan CLA 2011-06-09 12:15:49 EDT
Hmm.. i am still able to reproduce on win xp with eclipse37-RC4 build. Pls see the attachment.
Comment 11 mukundan desikan CLA 2011-06-09 12:16:25 EDT
Created attachment 197702 [details]
eclipse37-rc4 screenshot
Comment 12 Markus Keller CLA 2011-06-09 13:23:54 EDT
Please try it with a fresh workspace. This really looks like you've modified the Banner Font manually. Or the font file is corrupted on your machine so that it cannot be rendered in bigger sizes.
Comment 13 mukundan desikan CLA 2011-06-09 13:57:01 EDT
ok. yes it was a new workspace .well i can try it on a diff windows xp machine and will let u know.
Comment 14 mukundan desikan CLA 2011-06-09 14:52:24 EDT
I created a new workspace and tried with 37Rc4 on two diff XP machines and i can see that title (which may be called Banner font) doesn't change the font size. However the description changes to the systems font size. Happens with all eclipse wizards.Attached is another screen shot at startup. 

When i looked into Eclipse preferences under colors and fonts,  the banner font size is set to 10 Tahoma Bold. Believe this is what is getting used for all eclipse wizard and doesn't change when the default system font changes size.
Comment 15 mukundan desikan CLA 2011-06-09 14:52:47 EDT
Created attachment 197720 [details]
eclipse startup
Comment 16 mukundan desikan CLA 2011-06-09 15:06:06 EDT
Created attachment 197722 [details]
eclipse startup win 7
Comment 17 Markus Keller CLA 2011-06-09 16:48:33 EDT
I can reproduce the too-small font in the workspace chooser dialog on startup, but that is a separate problem (at that time, no workspace with font settings is available, and we don't seem to have special code to handle high contrast mode there).

Afterwards, the default Banner Font I get on Windows XP is Tahoma Regular 18 (same as the default Dialog Font). This is also correct in File > Switch Workspace > Other... .
Comment 18 mukundan desikan CLA 2011-06-10 11:12:31 EDT
Interesting.. Mine (the banner font) still shows as 10 bold even after restarting PDE . so the question is -  how did u change the windows font size on your machine? I am able to consistently see across all eclipse windows/dialogs that the Banner font size stays constant size(@ 10).
Comment 19 Markus Keller CLA 2011-06-10 11:57:56 EDT
> how did u change the windows font size on your machine?

When I enable High Contrast by pressing Alt+Shift+PrtSc, this also sets the font size on Display Properties > Appearance to Large. But that doesn't matter, since org.eclipse.ui.internal.themes.ThemeElementHelper.installFont(..) uses the default font everywhere when you launch in High Contrast mode anyway.

If you choose to ignore the dialog that tells you to restart Eclipse after switching the High Contrast OS setting, then all bad things are expected and your fault, including e.g. the mixed fonts in the first attachment.

If you've opened the Colors and Fonts preference page after ignoring the restart message, then you can end up with a bad state in that workspace.

Just go to the Colors and Fonts preference page, click Restore Defaults, and then OK.

Another setting that could cause problems is the "Current theme" on the Appearance preference page: If you switch to High Contrast mode, this should automatically be set to "Reduced palette". If you change this to Default, this can also change some fonts.
Comment 20 mukundan desikan CLA 2011-06-10 12:34:00 EDT
Markus

Thanks a lot for providing all this info. I guess it just depends on how we enable the system settings. used the ALT+SHIFT+PRTSC and everything seems to be working fine as u mentioned. Thanks again !!!