Community
Participate
Working Groups
JFace's FontFieldEditor uses a platform font dialog. On Win this dialog also provides a chooser for the default foreground color. This color setting in inaccessible. NOTES: KUM (8/13/2001 12:57:37 PM) The color setting should be accessible so that the default colors of text editors can be set. NE (08/13/01 9:14:47 AM) Requires SWT support in FontDialog and possibly FontData. Filed 1GIEFBD: SWT:WIN - FontDialog should give access to color setting Would also need a way of encoding the FontData and the RGB in the preference store. Currently the preference is in a format specific to the FontData (note that it's also platform-specific). And of course, any change to the format would need to be both backward- and forward-compatible.
PRODUCT VERSION: 129
No plans to change current 2.0 behavior.
FontDialog now has support for getting and setting colour.
Should get the color setting and look at a potential format change to store this value. We would also need to check that setFont also sets the font colour on Windows.
FontData still does not give a way for us to store colors. If we want this enhancement not only will we have to change the way we store fonts (so that colors can be stored with it) but users of those fonts will have to change thier code to get the colors. This can be implemented in a non breaking way by JFace but there will be some code changes required by plug-ins that use these fonts to get this functionality. Is there any plan in SWT for FontData to hold onto colors and if so will setting a FontData with a color setting be enough to set the foreground fo a widget?
Merging with Bug 19485. *** This bug has been marked as a duplicate of 19485 ***
There is currently no plan for SWT to include an RGB value as part of the FontData.