cjns1989
January 11th, 2009, 09:38 PM
I'm trying to change the default font on the "Human" login screen of ubuntu 8.10.
I first looked in the "admin > login screen" popup and didn't find anything suitable.
I proceeded to clone the "Human" theme in /usr/share/gdm/themes and edited the "Human.xml" file, replacing all occurrences of "Sans" by "Verdana" and changed the font size to "8" instead of "11". This last point is important - see below.
I also edited the "Greeter" file in the same directory so that it would reflect my "new" theme name instead of "Human" and selected the new theme by running "admin > login screen".
I logged out of my session and was presented with a modified "Human" login screen where the fonts were smaller as requested (changing them was one simple way of checking that it was indeed my modified version of "Human" that was selected) but the font itself was definitely not Verdana. As far as I know, it was still the default "Sans" that I was trying to replace.
I googled quite a bit and found many posts where other users were trying to change the size of their fonts but nothing relative to the font itself.
Since desktop fonts, gtk fonts, browser content fonts, etc. were immediately changed to Verdana when I used the various font customization GUI's, I suspect that everything in the current ubuntu/gnome environment is handled by asking fontconfig for the specified font and likewise I'm beginning to suspect that gdm does not use fontconfig (despite the xml-ization of its configuration files).
Since gdm runs under the "root" user, I tried another approach where I temporarily authorized the superuser to log on, added a "root" user (useradd + passwd root) .. logged as root to a gnome desktop (!) and customized the desktop fonts to my liking (verdana 8, hinting=medium, antialiasing=off) via the "preferences > appearance > fonts" popup and although root's desktop was precisely what I had required, the gdm logon screen still had the same font that looks quite different from Microsoft's Verdana.
Has anyone had any luck with this?
Thanks!
CJ
I first looked in the "admin > login screen" popup and didn't find anything suitable.
I proceeded to clone the "Human" theme in /usr/share/gdm/themes and edited the "Human.xml" file, replacing all occurrences of "Sans" by "Verdana" and changed the font size to "8" instead of "11". This last point is important - see below.
I also edited the "Greeter" file in the same directory so that it would reflect my "new" theme name instead of "Human" and selected the new theme by running "admin > login screen".
I logged out of my session and was presented with a modified "Human" login screen where the fonts were smaller as requested (changing them was one simple way of checking that it was indeed my modified version of "Human" that was selected) but the font itself was definitely not Verdana. As far as I know, it was still the default "Sans" that I was trying to replace.
I googled quite a bit and found many posts where other users were trying to change the size of their fonts but nothing relative to the font itself.
Since desktop fonts, gtk fonts, browser content fonts, etc. were immediately changed to Verdana when I used the various font customization GUI's, I suspect that everything in the current ubuntu/gnome environment is handled by asking fontconfig for the specified font and likewise I'm beginning to suspect that gdm does not use fontconfig (despite the xml-ization of its configuration files).
Since gdm runs under the "root" user, I tried another approach where I temporarily authorized the superuser to log on, added a "root" user (useradd + passwd root) .. logged as root to a gnome desktop (!) and customized the desktop fonts to my liking (verdana 8, hinting=medium, antialiasing=off) via the "preferences > appearance > fonts" popup and although root's desktop was precisely what I had required, the gdm logon screen still had the same font that looks quite different from Microsoft's Verdana.
Has anyone had any luck with this?
Thanks!
CJ