You are not logged in.
...since my last pacman -Syu which updated gtk2.
This is what i get:
[greg@poseidon greg]# switch2
** (switch2:1011): WARNING **: Cannot open font file for font Verdana 10
** (switch2:1011): WARNING **: Cannot open fallback font, nothing to do
and i already tried a fc-cache, but with no luck
Offline
take a look at /etc/fonts/fonts.config and maybe this if it can help you out http://bbs.archlinux.org/viewtopic.php? … ight=xfree
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU/ d- s: a- C L U P+ L+++ E--- W+
N 0+ K- W-- !O !M V-- PS+ PE- V++ PGP T 5 Z+ R* TV+ B+
DI-- D- G-- e-- h! r++ z+ z*
------END GEEK CODE BLOCK------
Offline
How should this help me? I mean, everything worked fine until I upgraded gtk2. And I have this problem only with gtk2-apps while everything else works fine.
Offline
first did you run fc-cach as root, next try running it with fc-cache -v now you can see if any fonts are found....
if not check you /etc/fonts/fonts.conf , and read the manual on fontconfig.org
Freedom is what i love
Offline
[root@poseidon greg]# fc-cache
[root@poseidon greg]# fc-cache -v
fc-cache: "/usr/X11R6/lib/X11/fonts": skipping, 0 fonts, 13 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/CID": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/TTF": skipping, 12 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/ttf": skipping, 72 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc": skipping, 55 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/util": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": skipping, 397 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": skipping, 29 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/local": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Speedo": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": skipping, 0 fonts, 1 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/artwiz-fonts": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": skipping, 397 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/cyrillic": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/share/fonts": no such directory, skipping
fc-cache: "/root/.fonts": no such directory, skipping
fc-cache: succeeded
[root@poseidon greg]#
And I kinda can't see why you're insisting on the fonts.conf. I havn't changed it since the pacman -Syu. And in all other applications the fonts are okay!
Offline
well fonts are found try recompiling gtk2 and pango
Freedom is what i love
Offline
Just to point out.. recompiling pango and gtk2 did indeed work for me when i experienced this problem..
Good luck!
I bought a dog the other day...I named him Stay. It's fun to call him... "Come here, Stay! Come here, Stay!" He went insane. Now he just ignores me and drools.
Offline
[greg@poseidon greg]# switch2
** (switch2:30580): WARNING **: Cannot open font file for font Verdana 10
** (switch2:30580): WARNING **: Cannot open fallback font, nothing to do
But it actually works for root! So it may be something with permissions, but I have no idea with which permissions. Any ideas?
Edit: This is after recompiling gtk2 & pango.
Offline
This is interesting as this subject came up on the Rox filer mailing list also. That user was running Debian and had the same problem with the same particular font. Does this happen for you with any other fonts? I ask because I use primarily gtk2 apps and haven't noticed any problems.
I'm also wondering if it my be theme/engine related. Which gtk2 theme and display engine are you using, if any?
BluPhoenyx
Offline
So far I can't duplicate this problem. I don't know if this is due to my setup or what. FWIW, I still keep the various xft settings in place. You can try this to see if it helps any.
In the environment I have these two.
export GDK_USE_XFT = 1
export QT_XFT = 1
in my ~/.gtkrc-2.0 file I have this setting,
gtk-use-xft = 1
BluPhoenyx
Offline
if that doesn't work try disabling XFT for gtk2 by
export GDK_USE_XFT = 0
Freedom is what i love
Offline
GDK_USE_XFT=0 works, but then of course the fonts doesn't look very nice, but it may be a temp solution. So where would I have to put it to make it a global variable?
Offline
you could put it in your /etc/profile.d/gnome.sh
try resinstalling gtk2 and pango, maybe even X
Freedom is what i love
Offline
reinstalled these 3 things, but it didn't help... frustrating
can't it be something with the permissions as it works perfectly for root?
Offline
sure it can
do you have access to the font folder?
apt-get install arch
Offline
i'm quite new to linux, but all fonts have the following permissions, and i don't think that this is correct:
-r--r----- 1 root root 168k Nov 16 19:44 verdana.ttf
What are the correct permissions?
Offline
r-r-- means that the user who created it and the other users in his group can access the file (Read)
so this means that root and all other users in the group root can read the file. Your normal account wont be in the root group I guess, so you have to change the permissions to r--r--r--.
Be *sure* that the direcotries have the executable flag set for user,group and others to that will read rwxrwxrwx, otherwise normal users are unable to access the directory.
You can set the permissions for the files with the chmod commando like this:
chmod 444 *.*
and for the direcotries its
chmod 777 [directoryname]
hope this helps
apt-get install arch
Offline
It works! Great! You're my hero for today
Offline
Hooray I'm usefull
apt-get install arch
Offline
and for the direcotries its
chmod 777 [directoryname]
Are you sure you want to allow anyone write access to the fonts directories? I think this should be 755 which allows the user read and entry only and root has full access.
BluPhoenyx
Offline
That's ther same for logging in as root
It's easy, it works but it isn't safe
Well most of the time the computer fears me, so why should I fear "no no don't use root!"
So I root, and I chmod 777
and I have a router/firewall pc
apt-get install arch
Offline