Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changing hinting of fonts in GDM -- possible ??
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Mustard007
Apprentice
Apprentice


Joined: 31 May 2002
Posts: 235
Location: Montreal, Quebec, Canada

PostPosted: Fri Feb 14, 2003 3:41 am    Post subject: Changing hinting of fonts in GDM -- possible ?? Reply with quote

Hi !
I try to change the hinting of fonts in the login manager GDM, to look like when i login in Gnome and change Font properties.

It's possible to do that ??

Thanks !
Back to top
View user's profile Send private message
David_Escott
l33t
l33t


Joined: 12 Jan 2003
Posts: 952
Location: Boston, MA

PostPosted: Fri Feb 14, 2003 5:30 am    Post subject: Reply with quote

i think the way to do this would be to run the gnome-font-properties as root. Since gdm is run as root it should get its hinting configuration from root/.xft or whatever the appropriate directory is
Back to top
View user's profile Send private message
hast
n00b
n00b


Joined: 29 Sep 2002
Posts: 9

PostPosted: Fri Feb 14, 2003 6:15 am    Post subject: Reply with quote

This worked for me. I just added some stuff to
/etc/X11/xdm/Xresources
Xft.antialias: 1
Xft.dpi: 100.000000
Xft.hinting: 0
Xft.hintstyle: hintnone
Xft.rgba: none
Back to top
View user's profile Send private message
razamatan
Apprentice
Apprentice


Joined: 28 Feb 2003
Posts: 160

PostPosted: Thu May 15, 2003 8:10 am    Post subject: Reply with quote

if you're using the new fontconfig way... you can create a .font.conf file under /var/lib/gdm (the user gdm's home directory) to specify hinting... i use bci myself, but the sans fonts that most gdm themes use look horrible w/ bci... so i turn it of in the /var/lib/gdm/.fonts.conf file...

honestly, you can do alot w/ gdm thru that directory!
_________________
a razamatan doth speaketh,
"Never attribute to malice, that which can be adequately explained by stupidity"
Back to top
View user's profile Send private message
ikshaar
Veteran
Veteran


Joined: 23 Jul 2002
Posts: 1339
Location: Baltimore, MD

PostPosted: Thu May 15, 2003 2:47 pm    Post subject: Reply with quote

Could you give an example on how to do that, like posting your .fonts.conf file ? I have no clue what to put into that file to make the gdm font looks a little bit better... thanks.
_________________
"May God stands between you and harm in all the empty places where you must walk" - Babylon 5
Back to top
View user's profile Send private message
iwasbiggs
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 203

PostPosted: Thu May 15, 2003 8:14 pm    Post subject: Reply with quote

ikshaar wrote:
Could you give an example on how to do that, like posting your .fonts.conf file ? I have no clue what to put into that file to make the gdm font looks a little bit better... thanks.


I'm pretty sure the way you do this is by copying a fonts.conf from the /etc/fonts folder then modifying it once it is in place of the destination (at least that's the way other config files work).

$locate fonts.conf

should help.
_________________
www.ruinedsoft.com
Freeware development.
Back to top
View user's profile Send private message
ikshaar
Veteran
Veteran


Joined: 23 Jul 2002
Posts: 1339
Location: Baltimore, MD

PostPosted: Thu May 15, 2003 8:30 pm    Post subject: Reply with quote

Well, my /etc/fonts.conf file is a 10k file and I don't know what to change in it ....
_________________
"May God stands between you and harm in all the empty places where you must walk" - Babylon 5
Back to top
View user's profile Send private message
iwasbiggs
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 203

PostPosted: Thu May 15, 2003 8:40 pm    Post subject: Reply with quote

man fontconfig
scroll to the bottom.
Also, my home .font.config is a lot smaller.
_________________
www.ruinedsoft.com
Freeware development.
Back to top
View user's profile Send private message
ikshaar
Veteran
Veteran


Joined: 23 Jul 2002
Posts: 1339
Location: Baltimore, MD

PostPosted: Thu May 15, 2003 9:27 pm    Post subject: Reply with quote

OK, I will change my question, if anybody know how to change the font of the gdm, could you please post the relevant part of font.conf ?

Thank you.
_________________
"May God stands between you and harm in all the empty places where you must walk" - Babylon 5
Back to top
View user's profile Send private message
razamatan
Apprentice
Apprentice


Joined: 28 Feb 2003
Posts: 160

PostPosted: Fri May 16, 2003 6:19 am    Post subject: Reply with quote

my .font.conf to fix the sans font w/ most gdm themes... place in /var/lib/gdm

Code:

<match target="pattern">
   <test qual="any" name="family"> <string>sans-serif</string> </test>
   <edit name="hinting" mode="assign"> <bool>false</bool> </edit>
</match>


now.. in order to change your font in a theme entirely (waste of time imho), goto the /usr/share/gdm/themes/* directories for each theme you wanna edit... then open up the xml file.. do a search for 'font'... bob's your uncle.

ikshaar wrote:
OK, I will change my question, if anybody know how to change the font of the gdm, could you please post the relevant part of font.conf ?

Thank you.

_________________
a razamatan doth speaketh,
"Never attribute to malice, that which can be adequately explained by stupidity"
Back to top
View user's profile Send private message
ikshaar
Veteran
Veteran


Joined: 23 Jul 2002
Posts: 1339
Location: Baltimore, MD

PostPosted: Fri May 16, 2003 2:49 pm    Post subject: Reply with quote

Thx razamatan, I will play with that.
_________________
"May God stands between you and harm in all the empty places where you must walk" - Babylon 5
Back to top
View user's profile Send private message
iwasbiggs
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 203

PostPosted: Thu May 22, 2003 7:44 am    Post subject: Reply with quote

Updating fontconfig to version 2.2.0-r2
seemed to fix some stuff.
_________________
www.ruinedsoft.com
Freeware development.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum