0

I am newbie to Debian, last night I regenerated locales using following command.

sudo dpkg-reconfigure locales

I selected all from the prompted screen and it generated all locales. After restarting my PC I am seeing fonts as in the picture below. I need help resetting my locale settings.

13
  • I guess you can redo the same command and select what you want again, but not all options. look here for more details: locale-settings Commented May 14, 2014 at 15:08
  • IIUC, your problem has nothing to do with locales but rather with fonts -- in particular with "screen smoothing" of them. How to tweak it, depends on what desktop environment you're using. If it's GNOME, install gnome-tweak-tool run it and navigate to its "Fonts" tab.
    – kostix
    Commented May 14, 2014 at 15:12
  • Another hint, it that in 99.9% of cases you don't need all locales -- it's OK to only have the en_US locale and the one matching your country. It's OK to only have those with UTF-8 encoding enabled among these two categorues. So, most of the time you only need two locales.
    – kostix
    Commented May 14, 2014 at 15:14
  • @kostix Okay, thanks, is there any command so that I can reset fonts settings or repair them?
    – M A
    Commented May 14, 2014 at 15:21
  • are you referring to default console-font? or all other fonts? Commented May 14, 2014 at 15:31

3 Answers 3

1

I used the following command:

dpkg-reconfigure fontconfig-config

Font tuning method for screen (system default): Selected Native then for Enable subpixel rendering for screen: selected Automatic logout and login again, now fonts are normal again.

Thanks everyone here :)

0

Take a look at the contents of this file:

cat /etc/default/locale

Add a comment with your contents (would've just commented on your post but lacking the rep to do so)

4
  • Here are my locale file contents: # File generated by update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
    – M A
    Commented May 14, 2014 at 15:20
  • That means you are using now English US font. what font are you looking to setup? Commented May 14, 2014 at 15:32
  • ok, from the picture in your post, you want to change the font family to something else that was on your system!! Commented May 14, 2014 at 15:34
  • @Digitalsite Yes,
    – M A
    Commented May 14, 2014 at 15:41
-1

I believe if you don't have the fonts, you can download them from these links: Ubuntu font rendering on Debian Wheezy & Sid Download Page for fontconfig-config Debian Wheezy

Method #1


you can choose other packages such as Wheezy, Sid, Squeeze and so on, if you like here: All Debain packages for fontconfig

follow the steps:

1- Download the package.
2- open .deb file with Archive Manager
3- enter the **/etc/fonts** directory
4- open nautilus and brows to **/etc/fonts**
5- drag all the files and folders from the archive into the file browser
6- Log out and log in, and change font preferences.

The full procedure is on this link: Ubuntu font rendering on Debian Wheezy & Sid

an image for clarification from the same site

Method #2


you need to recompile the package again; the original one you have on your system like this:

su -c 'dpkg-reconfigure fontconfig'

Then type: touch .fonts.conf

after that, open the config file

nano .fonts.conf

Then paste in this code:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintslight</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>rgb</const>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
<match target="font">
   <edit mode="assign" name="lcdfilter">
   <const>lcddefault</const>
   </edit>
 </match>
<match target="pattern">
   <edit name="dpi" mode="assign">
   <double>96</double></edit>
</match>
</fontconfig>

for lolz, paste into .Xdefaults :

Xft.autohint: 0
Xft.antialias: 1
Xft.hinting: true
Xft.hintstyle: hintslight
Xft*dpi: 96
Xft.rgba: rgb
Xft.lcdfilter: lcddefault

Last, Log out and log in to see things in affect...

10
  • At this URL: packages.ubuntu.com/natty/all/fontconfig-config/download There is nothing but Error page.
    – M A
    Commented May 14, 2014 at 15:47
  • my apology. I will edit the answer now. Commented May 14, 2014 at 15:59
  • What the heck? You're teaching a Debian user to download packages in the browser instead of just firing up a package manager, finding the package there and hitting install?! That's plain wrong on so many levels it won't fit into the comment's size limit would I have tried to explain them all. Also, font packages have nothing to do with fontconfig which is a tool to tweak font settings and nothing more.
    – kostix
    Commented May 14, 2014 at 16:17
  • now there are 2 ways how to do it, and possibly the 2nd method is easy and anyone can do it!! :) Commented May 14, 2014 at 20:59
  • @Digitalsite Thanks for your second method, can you mention the location of .Xdefaults file?
    – M A
    Commented May 15, 2014 at 19:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .