#545 Cannot change menubar font

release
closed-invalid
nobody
Program (402)
5
2007-03-04
2006-09-06
Timothy Miller
No

I would like to change the menubar font for nedit.
(Version 5.5).

The docs from nedit about this are on this page:

http://fresh.t-systems-sfr.com/linux/src/nedit-5.5-src.tar.gz:a/nedit-5.5/doc/html/resources.html

The suggestion is to put this line:

nedit*fontList: helvetica medium 12 points

Into .nedit/nedit.rc, .Xdefaults, or .Xresources.

This line seems to have no effect, no matter where I
put it. I've also tried a number of other variations,
including providing specific font names, etc. Nothing
works.

Discussion

  • Scott Tringali
    Scott Tringali
    2006-09-06

    Logged In: YES
    user_id=11321

    "helevtic medium 12 points" is placeholder text. You have
    to put in a legal X font name - guessing will not work.

    Try something like this:

    -*-helvetica-medium-r-*-*-14-*-*-*-*-*-iso8859-1

     
  • Scott Tringali
    Scott Tringali
    2006-09-06

    • status: open --> pending
     
  • Tony Balinski
    Tony Balinski
    2006-09-06

    Logged In: YES
    user_id=618141

    Are you running on KDE or some other window manager that
    tinkers with resources? I do on my Linux machine.

    Start by reading
    http://www.nedit.org/niki/index.php/Customizing%20NEdit
    (especially near the end) and
    http://www.nedit.org/niki/index.php/X-Resources (also
    towards the end).

    The first gives you a way to try new values. Try the command
    line:
    nedit -xrm '*fontList: 7x13'
    which should give you horrible fixed-pitch menu fonts. If it
    doesn't, you've probably got some app-default override going
    on. Now try:
    nedit -xrm 'nedit*fontList: 7x13'
    If this succeeds in giving the nasty font, you can always
    use an alias/script to get what you want.

    Generally, you do NOT want system-level app-defaults for
    NEdit unless you want it to fit in with the window manager's
    scheme. The trouble is that the resources there take
    precedence over yours. This is probably what's going on here.

    Let us know if this helps.

     
  • Tony Balinski
    Tony Balinski
    2006-09-06

    Logged In: YES
    user_id=618141

    PS. if you need font names, check the output of the
    'xlsfonts' command; the xfontsel program lets you see fonts
    using standard names.
    PPS if you are using KDE and set up a
    ~/.kde/share/apps/kdisplay/app-defaults/Nedit.ad file, a
    line in that file such as
    nedit*fontList:
    -*-helvetica-medium-r-normal--10-*-*-*-p-*-iso8859-1
    (that should be entered as a single line) should set up a
    pretty small menu font.

     
  • Timothy Miller
    Timothy Miller
    2006-09-06

    • status: pending --> open
     
  • Timothy Miller
    Timothy Miller
    2006-09-06

    Logged In: YES
    user_id=606738

    Just to repeat, not only did I try the "place holder", but
    I also tried specifying specific font names. I tried
    several legal X11 font names. None worked.

    Now, for the command-line options, I tried both
    suggestions, and they both worked.

    I'm using KDE, and lesstif does not seem to be picking up
    the window manager's settings. I'm getting some really
    huge courier font instead of the one that all Qt and GTK
    applications are using.

    I have reported this on Ubuntu's bug repository in case
    it's their fault:

    https://launchpad.net/distros/ubuntu/+source/nedit/+bug/59188

     
  • Tony Balinski
    Tony Balinski
    2006-09-06

    Logged In: YES
    user_id=618141

    Then try the custom kde Nedit.ad file, as described on Niki,
    with something like:

    nedit*fontList: FONTLIST
    nedit*XmText.fontList: FIXED_FONT
    nedit*XmTextField.fontList: FIXED_FONT

    The first should be set to the FONT keyword that corresponds
    to other apps' menu fonts; the other two are for the
    non-document text entry fields used in NEdit (dialog boxes).

    If these give satisfaction, tell Ubuntu to fix their
    system-level version.

     
  • Scott Tringali
    Scott Tringali
    2006-09-06

    Logged In: YES
    user_id=11321

    For KDE, there's a checkbox to determine whether it tries to
    push resources into Motif apps. It sometimes works.

    Qt and GTK are abandoning the old font model, so I expect
    this only to break more over time as they grow even more
    disinterested with Motif apps.

    For example, if your "default font" is a true-type font,
    then there is no way Motif can use that.

     
  • Tony Balinski
    Tony Balinski
    2007-03-02

    Logged In: YES
    user_id=618141
    Originator: NO

    Timothy, did you manage to fix this? Given that the command line resource setting works, we know the problem is not nedit per se, but the resources supplied to it. Were you able to stop KDE from overriding font settings for non-KDE apps as Scott Tringali suggested?

     
  • Timothy Miller
    Timothy Miller
    2007-03-04

    Logged In: YES
    user_id=606738
    Originator: YES

    This is the solution I use, and I'm satisfied with the results:

    nedit-nc -noask -xrm 'nedit*fontList: -*-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-1' -- "$@" > /dev/null 2>&1 &

     
  • Scott Tringali
    Scott Tringali
    2007-03-04

    Logged In: YES
    user_id=11321
    Originator: NO

    No bug here.

     
  • Scott Tringali
    Scott Tringali
    2007-03-04

    • status: open --> closed-invalid
     
  • Timothy Miller
    Timothy Miller
    2007-03-04

    Logged In: YES
    user_id=606738
    Originator: YES

    Well, I'm thinking that there isn't really a bug in Nedit, although perhaps something could be done to make it more sensitive to KDE and GNOME environments. The problem is a total lack of communication of environment settings between different toolkits. The fact that Ubuntu builds Nedit with lesstif is, in itself, fraught with problems. I've reported various bugs to the lesstif people, but it's hard to tell if anyone's home over there.

     
  • Thorsten Haude
    Thorsten Haude
    2007-03-04

    Logged In: YES
    user_id=119143
    Originator: NO

    Just a detail: -noask is default now.

     
  • Scott Tringali
    Scott Tringali
    2007-03-05

    Logged In: YES
    user_id=11321
    Originator: NO

    Integration with KDE/GNOME/Qt/GTK is good a idea, but goes under the "huge project" category instead of "bug".

    We've made lots of adjustments for KDE/GNOME over the years, but, not being a native KDE/GNOME/Qt/GTK app, it moves too fast for us to keep up with.