GNOME/GTK application fonts not working for menu items and other widgets

GNOME/GTK application fonts not working for menu items and other widgets

Post by Jean-Paul Apthor » Sat, 02 Feb 2002 05:43:26



I seem to have some how stuffed up my settings for fonts used by all the
GTK+/GTK or Gnome applications. The fonts for other applications seem to be
working fine for example KDE applications such as konquerer.

I have checked my xfs server and to me everything seems to be ok. It is
using port -1. For security and I would like to keep it that way. The
config file for xfs in the directory /usr/X11/fs/ lists is shown at the end
of the e-mail.  

I have also include an extract of my XF86Config file at the end of the
e-mail.

Any yes I am starting my xfs server correctly. Again I included this at the
bottom of the e-mail.

My system is a very hacked 6.2 Redhat system. I am runing the 2.4.16 kernel
with 1.2 version of GTK and 3.3.6 version of XFree86. I have however
attempted to install XFree86 4.x and then reverted back.

I spent awhile looking for soultions in groups.google.com but could only
get hold of 1 thread e-mails to the same problem and now answers! Usually
google does a good job!

Thanks in advance.

JP
=============== My XF86Config file =======================
...

 start)
        echo -n "Starting X Font Server: "
        buildfontlist
        rm -fr /tmp/.font-unix
        daemon xfs -droppriv -daemon -port -1
        touch /var/lock/subsys/xfs
        echo
        ;;

...

=============== My XF86Config file =======================

...

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath     "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

    FontPath   "unix/:-1"
#    FontPath   "/usr/X11R6/lib/X11/fonts/TrueType"

EndSection

...

=============== My config file =======================
...
# allow a max of 10 clients to connect to this font server
client-limit = 10

# when a font server reaches its limit, start up a new one
clone-self = on

# alternate font servers for clients to use
#alternate-servers = foo:7101,bar:7102

# where to look for fonts
#
catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled,
        /usr/X11R6/lib/X11/fonts/75dpi:unscaled,
        /usr/X11R6/lib/X11/fonts/100dpi:unscaled,
        /usr/X11R6/lib/X11/fonts/misc,
        /usr/X11R6/lib/X11/fonts/Type1,
        /usr/X11R6/lib/X11/fonts/Speedo,
        /usr/X11R6/lib/X11/fonts/cyrillic,
        /usr/X11R6/lib/X11/fonts/CID,
        /usr/X11R6/lib/X11/fonts/local,
        /usr/X11R6/lib/X11/fonts/latin2/Type1,
        /usr/share/fonts/default/TrueType,
        /usr/share/fonts/default/Type1,
        /usr/share/AbiSuite/fonts

# in 12 points, decipoints
default-point-size = 120

# 100 x 100 and 75 x 75
default-resolutions = 75,75,100,100

# use lazy loading on 16 bit (usually Asian) fonts
deferglyphs = 16

# how to log errors
use-syslog = on

# don't listen to TCP ports by default for security reasons
no-listen = tcp

...

 
 
 

1. gnome/gtk not displaying fonts in menus etc.

I have a problem with all gnome/gtk apps. They have stopped displaying
text. All the menus are blank, and the buttons are blank except for for
the  icons they contain. Gtk/gnome apps have worked fine for a long
time, until  this problem appeared.
It's making things very difficult.

I've tried to solve the problem by reinstalling all ofHelix Gnome
(latest)   and ALL its dependancies (packages with 'rpm -qp --requires
*' in the dir  that contained all the Helix Gnome rpm's, and then 'rpm
-q --whatprovides' on all the libraries and files that command gave to
show thich packages would satisfy those file dependancies). I have also
reinstalled the X server (The 3dfx's 4.01 rpms), and my fonts, just in
case those were te problems.
The problem still remains.

There is a screenshot at http://www.rawmeat.org/screenshot.jpg - it may
show the problem a bit clearer.

There are a few apps that seem to be unaffected. For example - the
preferances dialogue and menus in xmms.

A few apps give warnings when started from the command line. I have
included the warnings that Pan gives on startup.

---
GnomeUI-WARNING **: gnome_app_insert_menus_custom: couldn't find
insertion
point for menus!

Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkCheckMenuItem'

Gtk-CRITICAL **: file gtkcheckmenuitem.c: line 143
(gtk_check_menu_item_set_active): assertion `check_menu_item != NULL'
failed.
---

I have also made sure all the fonts are working by opening the gimp font
dialoge. However, KDE only seems to haev a few fonts in its font
dialogue.
Further, gnucash displays odd characters when I type in it. I rebuilt
all the fonts.dir files just in case. If this is a font problem, how do
I diagnose it?

I am hoping that someone knows if there is anything I can do to help
diagnose what is wrong, or perhaps someone even knows how to fix it. I
have  completely run out of ideas.

Rikard

Sent via Deja.com http://www.deja.com/
Before you buy.

2. USR x2 modems???

3. Choosing font in Gnome, gtk applications: how ?

4. Getting docs.....

5. Menu items not working

6. Will Acer AGP (SiS6326) Vid Card run under X

7. menu item as destination for drag data (gtk)

8. RH 7 & kernel 2.4.0

9. GTK,GTK+,Qt, etc.., why not Swing for Linux GUI applications?

10. Wanted: Gtk/Gnome-based hex-edit widget

11. Packages gnome menu item

12. Gnome/GTK About Widget and Memory

13. How to remove items from GNOME menus?