How to specify default fonts in an RCP app [message #507392] |
Wed, 13 January 2010 05:53  |
Eclipse User |
|
|
|
Hi, I'm trying to change some of the default fonts in our rcp app: For
example "org.eclipse.jface.dialogfont" (aka JFaceResources.DIALOG_FONT).
How can I ship our application with a different default dialog font?
I have tried this:
In plugin_customization.ini having an entry like this works:
org.eclipse.ui.workbench/org.eclipse.jface.dialogfont=1|Papy rus|13.0|0|COCOA|1|Papyrus;
But the format for the value seems to be undocumented (if not, can you
give me a pointer?). Is it safe to use it? How can I set different fonts
for different platforms?
Is it better (or even possible) to use code (in
WorkbenchAdvisor.preStartup() for example) to set the defaults?
Is there a way to define these fonts through extension points? I have
looked at the org.eclipse.ui.themes extension point but do not
understand how to overwrite a definition from another plugin.
Thanks for any help
Peter
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03285 seconds