Bug 2708 - [Preferences] Font Definition cannot handle color and has not enough info
Summary: [Preferences] Font Definition cannot handle color and has not enough info
Status: RESOLVED DUPLICATE of bug 19485
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks: 4340
  Show dependency tree
 
Reported: 2001-10-10 22:41 EDT by Kai-Uwe Maetzel CLA
Modified: 2002-09-03 15:34 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai-Uwe Maetzel CLA 2001-10-10 22:41:55 EDT
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.
Comment 1 DJ Houghton CLA 2001-10-29 19:11:04 EST
PRODUCT VERSION:
	129

Comment 2 Kevin Haaland CLA 2002-03-27 11:10:37 EST
No plans to change current 2.0 behavior. 
Comment 3 Veronika Irvine CLA 2002-07-26 10:29:03 EDT
FontDialog now has support for getting and setting colour.
Comment 4 Tod Creasey CLA 2002-08-09 10:51:37 EDT
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.
Comment 5 Tod Creasey CLA 2002-08-21 11:42:47 EDT
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?
Comment 6 Tod Creasey CLA 2002-09-03 13:17:05 EDT
Merging with Bug 19485.

*** This bug has been marked as a duplicate of 19485 ***
Comment 7 Veronika Irvine CLA 2002-09-03 15:34:03 EDT
There is currently no plan for SWT to include an RGB value as part of the 
FontData.