Community
Participate
Working Groups
Bugzilla – Bug 228229
[JFace] Should we have a jfacefonts_vista.properties file?
Last modified: 2011-05-03 11:47:52 EDT
I noticed that we have jfacefonts_<platform>.properties files for XP, 2K, NT, and Win98, but not for Vista. Do we need one for Vista? I assume we default to XP on Vista. Its possible that's ok when running win32 (or not). Also does this change in any way when running WPF? I assume no.
Dear Kevin, a separate "jfacefonts_windowsvista.properties" is needed for Windows Vista: 1. We have jfacefonts for all the platforms - why Vista should be an exception; 2. I don't understand how fallback to XP properties should happen. On my Windows Vista system "MS Sans Serif" font is being used for Wizard headers and etc. (clearly because of fallback to jfacefonts.properties). Because of this, some non-ASCII characters (e.g. Lithuanian "š" letter) are not displayed properly. Some other posts (e.g. http://dev.eclipse.org/newslists/news.eclipse.platform/msg71142.html) seem to describe the same problem. Copying "jfacefonts_windowsxp.properties" to "jfacefonts_windowsvista.properties" solves the problem, but I don't think this should be done in applications. Either a working defaulting to "jfacefonts_windowsxp.properties" or a separate "jfacefonts_windowsvista.properties" file should be provided. Regards, Giedrius
(In reply to comment #1) Thanks Giedrius. I agree, seems we should have. Next question is, what should the values be. I'm not sure they should be identical to XP, some investigation needed.
Any updates on this?
Do we need a Windows 7 properties file too?
I opened a separate bug 293356 to request jfacefonts properties file for Windows 7.
Created attachment 191793 [details] Incorrect double quotes with the default font map
Created attachment 191794 [details] Correct double quotes with the Windows 7 font map
Created attachment 191795 [details] Correct double quotes with the Windows XP font map
(In reply to https://bugs.eclipse.org/bugs/show_bug.cgi?id=311037#c20) My colleague did some tests on Vista. The screenshots are attached: 1) with the default font map; 2) with the Windows 7 font map; 3) with the Windows XP font map. I think the values from the Windows 7 font properties file can be safely used on Vista.
(In reply to comment #9) > (In reply to https://bugs.eclipse.org/bugs/show_bug.cgi?id=311037#c20) > My colleague did some tests on Vista. The screenshots are attached: 1) with the > default font map; 2) with the Windows 7 font map; 3) with the Windows XP font > map. > I think the values from the Windows 7 font properties file can be safely used > on Vista. Thanks for checking this, Giedrius. I see from the snaps that this solves the specific problem in bug 311037. Did your colleague also verify that the editor fonts look correct (we use the Consolas font in the win7 file). If we can verify this, then I think we should release the change soon so that any problems can be found prior to M7 freeze.
Created attachment 192232 [details] Editor: Incorrect double quotes with the default font map
Created attachment 192233 [details] Editor: Correct double quotes with the Windows 7 font map
Created attachment 192235 [details] Editor: Correct double quotes with the Windows XP font map
(In reply to comment #10) > Did your colleague also verify that the editor fonts look correct (we use the > Consolas font in the win7 file). There are the results of the additional tests with the editor fonts: 1) with the default font map; 2) with the Windows 7 font map; 3) with the Windows XP font map.
(In reply to comment #14) > (In reply to comment #10) > > Did your colleague also verify that the editor fonts look correct (we use the > > Consolas font in the win7 file). > There are the results of the additional tests with the editor fonts: 1) with > the > default font map; 2) with the Windows 7 font map; 3) with the Windows XP font > map. (In reply to comment #14) > (In reply to comment #10) > > Did your colleague also verify that the editor fonts look correct (we use the > > Consolas font in the win7 file). > There are the results of the additional tests with the editor fonts: 1) with > the > default font map; 2) with the Windows 7 font map; 3) with the Windows XP font > map. Hi, is this bug targeted for Eclipse 3.7? I am asking since the bug is opened against Eclipse 3.4 but the target milestone is 3.7 M7. Thanks
(In reply to comment #15) > Hi, is this bug targeted for Eclipse 3.7? I am asking since the bug is opened > against Eclipse 3.4 but the target milestone is 3.7 M7. Thanks Yes, it is targeted to be fixed in the 3.7 (Indigo) release.
Giedrus, since I'm trying to make this change "blind" (without a vista box), I need to know the exact the name of the file to be used. (ie, the "os.name" system property when running on vista.) Is it jfacefonts_windowsvista.properties (my guess) or is it literally as specified in the bug title here? jfacefonts_vista.properties (this would surprise me a bit)
Just reread comment 1. (In reply to comment #1) > Dear Kevin, > > a separate "jfacefonts_windowsvista.properties" is needed for Windows Vista: > 1. We have jfacefonts for all the platforms - why Vista should be an exception; > 2. I don't understand how fallback to XP properties should happen. On my > Windows Vista system "MS Sans Serif" font is being used for Wizard headers and > etc. (clearly because of fallback to jfacefonts.properties). Because of this, > some non-ASCII characters (e.g. Lithuanian "š" letter) are not displayed > properly. Some other posts (e.g. > http://dev.eclipse.org/newslists/news.eclipse.platform/msg71142.html) seem to > describe the same problem. > > Copying "jfacefonts_windowsxp.properties" to > "jfacefonts_windowsvista.properties" solves the problem, but I don't think this > should be done in applications. > > Either a working defaulting to "jfacefonts_windowsxp.properties" or a separate > "jfacefonts_windowsvista.properties" file should be provided. To be clear, we are proposing to copy jfacefonts_window7.properties to jfacefonts_windowsvista.properties
Created attachment 193504 [details] patch which includes new font file a patch is worth 1000 words. Giedrus, can you please verify that this is the proposed solution.
> need to know the exact the name of the file to be used. (ie, the "os.name" > system property when running on vista.) System.getProperty("os.name") returns "Windows Vista" when running on Vista, so the name of the file must be jfacefonts_windowsvista.properties. The patch looks ok. Susan, thank you for your efforts.
fixed in HEAD >20110419. Giedrius, I will ping here when this fix appears in an I-build, I would appreciate your colleague checking it out when it appears in the build. (and sorry for misspelling your name so many times before!)
This fix was released for I20110421-0100. Giedrius, could your colleague please verify that all is well?
*** Bug 311037 has been marked as a duplicate of this bug. ***
Giedrius, could you have your colleague verify that the 3.7 M7 build is working as expected on vista?
(In reply to comment #24) > Giedrius, could you have your colleague verify that the 3.7 M7 build is working > as expected on vista? Yes, it is working as expected. Sorry for the delay. Good job, Susan.