This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 36432 - Font style change should not override inherit setting
Summary: Font style change should not override inherit setting
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Settings (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Martin Roskanin
URL:
Keywords:
: 38846 47992 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-03 22:49 UTC by rhernandez
Modified: 2007-11-05 13:42 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rhernandez 2003-10-03 22:49:42 UTC
In the Fonts and Colors Dialog if I set the
Default Syntax to a specific setting for Font,
Style and Size and then change a Comment Syntax
Font Style to italic, the Font can no longer
inherit from the Default.  Changing a Font Style
should not force the inherit setting to not apply
since the user probably just wants to make the
Default Font bold or italic.  It makes sense to
not inherit if you change the size  or Font since
this is specifically what's being inherited, but
the Style setting should not be grouped with the
inheritance.
Comment 1 Miloslav Metelka 2004-01-23 15:31:05 UTC
We need some UI work to find out what would be most appropriate UI for
inheriting in this case. I can imagine that there could be checkboxes
Font inheritance:
[x] Inherit font face
[x] Inherit size
[ ] Inherit style

Gabo, what do you think?
Comment 2 psuk 2004-03-23 19:59:43 UTC
Changing subcomponent to "setting"


Comment 3 Gabriel Tichy 2004-11-03 14:43:09 UTC
I think Mila's proposal sounds good.

By the way, Font textfield is now editable, but it shouldn't be I guess.
Comment 4 Martin Roskanin 2004-11-03 14:57:56 UTC
as for textfield editable, already known problem, please see issue #39916
Comment 5 Jan Becicka 2005-03-18 12:14:18 UTC
Gabo is not responisble for this issue any more. Rudo please take a look at it.
Thanks
Comment 6 Rudolf Bock 2005-04-05 14:16:16 UTC
Font textfield shouldn't be editable and of-course, the default settings mustn't be influenced by other 
settings.
Comment 7 Martin Roskanin 2005-04-06 15:21:04 UTC
*** Issue 38846 has been marked as a duplicate of this issue. ***
Comment 8 Martin Roskanin 2005-04-06 15:22:36 UTC
pasting Mila's comment from duplicated issue:

"Agreed, the editor's infrastructure allows that it's just a question of an
appropriate UI. In the past I've personally offered to have

[x] Apply font name
[x] Apply font size
[x] Apply font style

related to the selected font.

Or an alternative could be  

[x] Inherit font name
[x] Inherit font size
[x] Inherit font style

Instead of the single checkbox
[x] Inherit

But none of these solutions were accepted which I sort of understand as it may
seem rough to users. Adding Rudolf to cc whether he has any clue here."
Comment 9 Roman Strobl 2005-07-09 07:42:00 UTC
This should get improved by the new Tools | Options dialog. CCing Hanz.
Comment 10 Vitezslav Stejskal 2006-07-03 01:18:50 UTC
The new Tools/Options dialog separates Font, Font style and size and implements
their inheritance independently, so it's possible to change one of them and
still keep inheriting the others.
Comment 11 Vitezslav Stejskal 2006-07-03 02:51:12 UTC
*** Issue 47992 has been marked as a duplicate of this issue. ***