Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

KDM fonts

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
User avatar
dbbolton
Posts: 2129
Joined: 2007-06-20 08:17
Location: Iapetus

KDM fonts

#1 Post by dbbolton »

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
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: KDM fonts

#2 Post by craigevil »

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
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

User avatar
dbbolton
Posts: 2129
Joined: 2007-06-20 08:17
Location: Iapetus

Re: KDM fonts

#3 Post by dbbolton »

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
Raffles10
Posts: 191
Joined: 2008-12-09 16:36
Location: London, UK

Re: KDM fonts

#4 Post by Raffles10 »

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
dbbolton
Posts: 2129
Joined: 2007-06-20 08:17
Location: Iapetus

Re: KDM fonts

#5 Post by dbbolton »

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: 2129
Joined: 2007-06-20 08:17
Location: Iapetus

Re: KDM fonts

#6 Post by dbbolton »

- 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: 2129
Joined: 2007-06-20 08:17
Location: Iapetus

Re: KDM fonts

#7 Post by dbbolton »

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
Raffles10
Posts: 191
Joined: 2008-12-09 16:36
Location: London, UK

Re: KDM fonts

#8 Post by Raffles10 »

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

Post Reply