KDM fonts

Everything about X, Gnome, KDE, ... and everything running on it

KDM fonts

Postby dbbolton » 2010-01-18 22:34

I am using kdm 4:4.3.4-3 from squeeze. The fonts are just horrendous. I enabled anti-aliasing in the kdmrc, and rebooted. They still looked like anti-aliasing was off.

What gives?

Code: Select all
 egrep -in 'alias|font' /etc/kde4/kdm/kdmrc
345:# Whether the fonts used in the greeter should be antialiased.
347:AntiAliasing=true
348:# The font for the greeter headline.
350:GreetFont=Serif,20,5,0,50,0
351:# The normal font used in the greeter.
353:StdFont=Sans Serif,10,5,0,50,0
354:# The font used for the "Login Failed" message.
356:FailFont=Sans Serif,10,5,0,75,0


---------------------------------------------------------------------

EDIT: Here is the solution
Code: Select all
cp -i /home/USER/.fonts.conf /etc/fonts/local.conf
Last edited by dbbolton on 2010-02-07 20:39, edited 1 time in total.
GitHub | zsh docs in Letter PDF

Telemachus wrote:Put down the CGI.
User avatar
dbbolton
 
Posts: 2133
Joined: 2007-06-20 08:17
Location: Iapetus

Re: KDM fonts

Postby craigevil » 2010-01-19 11:21

Try creating a file called .font.conf in your ~/home

Code: Select all
</fontconfig>

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="autohint" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>none</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>false</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintnone</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>


You can also run dpkg-reconfigure fontconfig-config then run dpkg-reconfigure fontconfig
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: KDM fonts

Postby dbbolton » 2010-01-19 18:18

craigevil wrote:Try creating a file called .font.conf in your ~/home

Code: Select all
</fontconfig>

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="autohint" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>none</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>false</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintnone</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>


You can also run dpkg-reconfigure fontconfig-config then run dpkg-reconfigure fontconfig


Why would kdm read a font config from a user's home directory? I have one anyway:
Code: Select all
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>none</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintfull</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>


I will try reconfiguring fontconfig.
GitHub | zsh docs in Letter PDF

Telemachus wrote:Put down the CGI.
User avatar
dbbolton
 
Posts: 2133
Joined: 2007-06-20 08:17
Location: Iapetus

Re: KDM fonts

Postby Raffles10 » 2010-01-19 19:47

Have you run systemsettings as root and configured your fonts for your root user ? I don't know if this would actually affect kdm but it's worth a try.
Debian Squeeze + KDE 4.4.4 + AMD Athlon™ 64 X2 Dual Core Processor 6000 + nVidia GeForce 8600
User avatar
Raffles10
 
Posts: 192
Joined: 2008-12-09 16:36
Location: London, UK

Re: KDM fonts

Postby dbbolton » 2010-01-21 05:15

I tried running systemsettings as root and turning on anti-aliasing. After restarting KDM, the fonts look the same as they did beforehand.
GitHub | zsh docs in Letter PDF

Telemachus wrote:Put down the CGI.
User avatar
dbbolton
 
Posts: 2133
Joined: 2007-06-20 08:17
Location: Iapetus

Re: KDM fonts

Postby dbbolton » 2010-01-30 21:47

- dpkg-reconfigure fontconfig did not work
- removing my kdmrc and replacing it with one from a system with antialiased fonts in KDM did not work
- changing the theme did not work
- running the graphical "login window" tool did not work
GitHub | zsh docs in Letter PDF

Telemachus wrote:Put down the CGI.
User avatar
dbbolton
 
Posts: 2133
Joined: 2007-06-20 08:17
Location: Iapetus

Re: KDM fonts

Postby dbbolton » 2010-02-07 08:41

It turns out that I had to copy my ~/.fonts.conf to /etc/fonts/local.conf.
GitHub | zsh docs in Letter PDF

Telemachus wrote:Put down the CGI.
User avatar
dbbolton
 
Posts: 2133
Joined: 2007-06-20 08:17
Location: Iapetus

Re: KDM fonts

Postby Raffles10 » 2010-02-07 19:19

Glad you've got it sussed, now I've done the same.
Debian Squeeze + KDE 4.4.4 + AMD Athlon™ 64 X2 Dual Core Processor 6000 + nVidia GeForce 8600
User avatar
Raffles10
 
Posts: 192
Joined: 2008-12-09 16:36
Location: London, UK


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable