taking 15 years off isn't doing anything for me

Tony Balinski ajbj at free.fr
Mon Oct 16 10:45:01 CEST 2006


Quoting felis at Safe-mail.net:

> hi Tony,
>
> thank you for helping me out. I've found a .nedit home directory and could
> apply some changes to the nedit.rc there, although i suspect it will be
> replaced with preferences from within Nedit. So i can change properties.
> The remaining problem though is the menu font size which is absolutely
> impossibly big. I've tried to find anything on menu font size adjustments
> for fc5 openmotif 2.3.0 but can't find something sensible. Do you know
> where one can adjust the way fc5 uses a 'standard' font size (i presume
> openmotif Nedit uses a sort of centrally adaptable font specification taken
> from the system). Or how does this work for Nedit?
>
> Thanks again
> felis

There are a number of places where your resources can get picked up, see the
beginning of http://www.nedit.org/niki/index.php/X-Resources (same link as
before). KDE augments that with what I understand to be a resource
preprocessor. Its configuration takes precedence over the other resources, I
believe.

If you're still having trouble, here's the content of my
~/.kde/share/apps/kdisplay/app-defaults/Nedit.ad file. Try creating your own
with similar content (you see I have configured fonts here):

======================================================================
nedit*XmText.background: WINDOW_BACKGROUND
nedit*XmText.foreground: WINDOW_FOREGROUND
nedit*XmTextField.background: WINDOW_BACKGROUND
nedit*XmTextField.foreground: WINDOW_FOREGROUND
nedit*XmList.background: WINDOW_BACKGROUND
nedit*XmList.foreground: WINDOW_FOREGROUND
nedit*background: BACKGROUND
nedit*foreground: FOREGROUND
nedit*selectColor: SELECT_BACKGROUND
nedit*XmText.selectColor: SELECT_BACKGROUND
nedit*highlightColor: SELECT_BACKGROUND
nedit*text.background: WINDOW_BACKGROUND
nedit*text.foreground: WINDOW_FOREGROUND
nedit*selectBackground: SELECT_BACKGROUND
nedit*selectForeground: SELECT_FOREGROUND
nedit*text.cursorForeground: WINDOW_FOREGROUND
nedit*remapDeleteKey: False
!nedit*text.heavyCursor: True
!nedit*BlinkRate: 0
nedit*statsLine.background: BACKGROUND
nedit*statsLine.foreground: FOREGROUND

nedit*defaultWinMenuColor: FOREGROUND
nedit*modifiedWinMenuColor: HIGHLIGHT
nedit*readOnlyWinMenuColor: INACTIVE_FOREGROUND

nedit*fontList:	\
-*-helvetica-medium-r-normal--10-100-75-75-p-56-iso8859-1,\
-*-helvetica-bold-r-normal--10-100-75-75-p-*-iso8859-1=BOLD,\
-*-helvetica-medium-o-normal--10-100-75-75-p-*-iso8859-1=ITALIC

======================================================================
The fontList at the end indicates the default fonts for all NEdit's widgets. I
have chosen a fairly small 10pt Helvetica here.

If you look in KDE's kdisplay configuration app-defaults (on my machine, in
/opt/kde3/share/apps/kdisplay/app-defaults/) you will probably see a
AAAMotif.ad file (or some name resembling it). This (I presume) applies
resources to all Motif apps before specific resources read from files like
Nedit.ad are applied.

All this is to make each application (based on Motif, Xt or whatever) have
resources, particularly font and color ones, consistent with those of other
KDE applications. If you aren't worried about such consistency (eye-candy
really), you can turn it off - see the last paragraph of the "KDE color
schemes and NEdit resources" section of the web page.

Let me know if any of this is successful.

Tony


More information about the Discuss mailing list