Community
Participate
Working Groups
In latest integration builds it is not possible to change the workbench text editor font. open any editor or view that uses this font open "Windows -> Preferences -> Workbench -> Font" select "Text Font" change font to another font click "Apply" -> new font is applied and visible click "OK" -> old font will be reapplied
New font works after restarting Eclipse. A restart shouldn't be necessary. Anyway, why are there two font options for the same font? "Java Editor Text Font" "Text Font" This is really confusing since the JDT Java editor has its own appearance preference page. I also can't see a difference between these two settings. Changing the "Java Editor Text Font" also changes the "Text Font" to the same font and vice versa. The behavior is not consistent and confusing. There should be only one "Text Font".
The Java font is the text font by default - if you change the text font and have not changed the java font you get it on both. I'll verify it behaves as desired in 2.1.
Its more complicated. You can change as you want and click "Apply" and the changes are applied. But as soon as you click "OK" they are changed so that both reflect the same font. Anyway, it is better and more intuitive to have the preference option for the Java editor text font on the Java editor preference page.
I can't replicate this behaviour in 20030205 Here is the steps I used 1) Open a java editor 2) Opened the fonts preference page 3) Selected the bold italic version of the default 4) Hit Apply. It was applied to the editor 5) Hit OK. No change 6) Reopened the font preference page and selected dialog font 7) Showed up as bold italic as it should have For 2.1 the fonts were moved to a central preference page to prevent the need for plugin developers to manage their own fonts which was very difficult when they wanted to just pass through a JFcae font if thiers was not specified. There were also complaints from users that they had to search around for fonts.
I tried I20030206 and have the confusing behavior. - use a new workspace - create new simple project with a simple text file - create a new java project with a simple class - open text editor for text file and java editor for java file (java editor is visible) By default, "Java Editor Text Font" and "Text Font" are set to "Courier-regular- 10". Now start playing with fonts :) 1. change text font to any another (fanc) font, click ok -> Java Editor is changed also -> EXPECTED 2. open preferences again 3. select "Java Editor Text Font" 4. click "Restore Defaults" -> nothing changes, preview still shows fancy font 5. select "Text Font" -> Text Font was reseted to "Courier-regular-10" 6. select "Java Editor Text Font -> now Java Editor Text Font is also reseted to "Courier-regular-10" 7. select "Text Font" 8. change font to "Courier New-regular-10" (I took this font from Acrobat some time ago. It renders better and the Courier system font.) -> preview shows new font 9. click "Apply" -> Java editor under preferenced dialog also updates to new font 10. click "OK" -> Java editor is reseted to "Courier-regular-10" -> UNEXPECTED
Now we have found the problem.... The java editor font is defualting to the text font - the problem is when you hit Restore Defualts the Text Font is being reset after the java font so you do not see the update being propogated. We should also make this more obvious in the text
And why is it reseted between step 9 and 10?
Why is it unexpected? If the dialog shows Courier 10 and you hit OK you should expect it to show up in the editor in another font?
No! Please watch the difference. "Courier New-regular-10" != "Courier-regular-10" The dialog shows "Courier New-regular-10" which is a slightly different font. Click Apply and also the editor has it. Next click ok and the editor looses it becomming the old "Courier-regular-10".
Created attachment 3369 [details] Patch to Font PreferencePage
Created attachment 3370 [details] Patch for message.properties
Thanks Gunnar - I have replicated the Courer/Courier new issue as well.
Fixed in build >20030210
Reopening. I am getting the "Courier New" problem Gunnar mentioned in the latest code stream.
The current problem is due to the JavaPlugin slamming the text font in a propertyChangeListener.
I contradict to Tod's comment. In my opinion the bug is in PreferenceConverter.setValue(IPreferenceStore,String,FontData[]) which as a side effect (which is not mentioned in the API contract) modifies the JFace registry. See bug 27408 for more details.
*** This bug has been marked as a duplicate of 27408 ***