SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-01-19 20:18:39

chameleon
#! Junkie
From: luxembourg (uk guy)
Registered: 2009-01-13
Posts: 372
Website

font subpixel smoothing

Where do I find the subpixel smoothing setting in 8.10.02?

Offline

Help fund CrunchBang, donate to the project!

#2 2009-01-19 20:50:46

corenominal
root
From: Lincoln, UK
Registered: 2008-11-20
Posts: 4,886
Website

Re: font subpixel smoothing

Hello chameleon smile

I believe this can be achieved via an entry in ~/.fonts.conf. If you do not already have the file, create it and copy the following into it:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
    <edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
</fontconfig>

Change rgb to bgr if you need to use B-G-R subpixel rendering. For system-wide use, add that text to /etc/fonts/local.conf.

The change takes effect immediately, but you may want to log out so that everything on the desktop is updated.

Ref: http://jmason.org/howto/subpixel.html

--

Not sure if this will be of interest to you, but hinting can also be achieved with an additional entry:

<match target="font">
  <edit name="autohint" mode="assign">
    <bool>true</bool>
  </edit>
</match>

Ref: http://tombuntu.com/index.php/2008/10/1 … ppearance/

Hope this helps smile

Offline

#3 2009-01-19 21:30:28

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,900

Re: font subpixel smoothing

Heres a full .fonts.conf (source):

<?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>hintfull</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>
</fontconfig>

For my conf, I just included the antialias part. Its not much but my fonts look prettier big_smile

Last edited by anonymous (2009-01-19 22:10:55)


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#4 2009-01-20 10:37:15

chameleon
#! Junkie
From: luxembourg (uk guy)
Registered: 2009-01-13
Posts: 372
Website

Re: font subpixel smoothing

Thanks for the suggestions. I will try ASAP after work.

Offline

#5 2009-03-09 22:00:38

gnema
Member
Registered: 2009-01-27
Posts: 34

Re: font subpixel smoothing

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

Offline

#6 2009-04-01 05:16:46

theZoid
Member
From: Florida
Registered: 2009-03-27
Posts: 20
Website

Re: font subpixel smoothing

how can I set the fonts to 96 DPI?  thx!


Cheers, Big Ears!

DΞLL Precision M6500 "Big Dog": i7-820QM w/USB 3.0, 8.0GB DDR3-1333, Intel x-25M 160 G2 + 500GB 7200.3, nVidia Quadro FX 3800M 1.0GB DDR3, RGBLED, Intel 6300 //Win7Pro x64/Sabayon KDE 4.5.4 x64

Offline

#7 2009-04-02 00:32:38

f3
#! CrunchBanger
Registered: 2009-04-01
Posts: 121

Re: font subpixel smoothing

I am having trouble with this.  I am a newbie to Linux with basically 0 skills.  What I attempted to do was open the conf file (/etc/fonts/fonts.conf) in leafpad (by typing sudo leafpad /etc/fonts/fonts.conf in a terminal) in order to add the necessary scripting.  However, when the text editor opened there was nothing there.  I already had a fonts.conf file on the system (with script on it) before trying this.  So why is the text editor empty when I open it?  Please help -  thanks!

Offline

#8 2009-04-02 02:54:50

f3
#! CrunchBanger
Registered: 2009-04-01
Posts: 121

Re: font subpixel smoothing

Alright I followed the directions, got some wierd messages about xml being in the first line and now I don't know if pixel smoothing is on or not (fonts still look pretty crappy to me).

Offline

#9 2009-04-02 02:56:17

theZoid
Member
From: Florida
Registered: 2009-03-27
Posts: 20
Website

Re: font subpixel smoothing

f3 wrote:

Alright I followed the directions, got some wierd messages about xml being in the first line and now I don't know if pixel smoothing is on or not (fonts still look pretty crappy to me).

in your home directory....the file you want is .fonts.conf   that's DOT fonts DOT conf


Cheers, Big Ears!

DΞLL Precision M6500 "Big Dog": i7-820QM w/USB 3.0, 8.0GB DDR3-1333, Intel x-25M 160 G2 + 500GB 7200.3, nVidia Quadro FX 3800M 1.0GB DDR3, RGBLED, Intel 6300 //Win7Pro x64/Sabayon KDE 4.5.4 x64

Offline

#10 2009-04-02 02:58:54

f3
#! CrunchBanger
Registered: 2009-04-01
Posts: 121

Re: font subpixel smoothing

I just opened an app. I installed (see unable to mount windows partition thread).  and after tyoing in the command in the terminal I got the message

Fontconfig error: "~/.fonts.conf, line 1: XML or text declaration not at start of entity
Fontconfig error: "local.conf, line 1: XML or text declaration not at start of entity

Please help me

Offline

#11 2009-04-02 20:45:29

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,900

Re: font subpixel smoothing

Open the file .fonts.conf and just delete any lines it has. Now reopen it and copy and paste one of the examples above into the file and save.

Now press Ctrl-Alt-Backspace to restart X (you will have to relogin etc, so save any data beforehand).


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#12 2009-04-03 00:49:16

f3
#! CrunchBanger
Registered: 2009-04-01
Posts: 121

Re: font subpixel smoothing

Ok, thanks - but I still get the error for local.conf

Offline

#13 2009-04-03 01:17:50

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,900

Re: font subpixel smoothing

Is the local.conf file located under /etc/fonts/?

I dont have that file; I think you can do without it.


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#14 2009-04-03 01:41:18

f3
#! CrunchBanger
Registered: 2009-04-01
Posts: 121

Re: font subpixel smoothing

Yes it is.  Do you have pixel-smoothing?  I honestly am not sure if the tweak has worked for me.

Offline

#15 2009-04-03 01:44:59

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,900

Re: font subpixel smoothing

Delete it, restart X, and check if you get any errors.

Oh and yes I do have font smoothing.

Last edited by anonymous (2009-04-03 01:45:25)


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#16 2009-04-03 01:56:40

f3
#! CrunchBanger
Registered: 2009-04-01
Posts: 121

Re: font subpixel smoothing

What s "restart X"?  BTW, I'm pretty sure I don't have pixel smoothing, though I have restarted the system since configuring .fonts.conf as suggested.

Offline

#17 2009-04-03 04:57:42

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,900

Re: font subpixel smoothing

By restart X, I mean press Ctrl-Alt-Backspace.


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#18 2009-04-05 15:43:04

Silly-Billy
New Member
Registered: 2009-01-27
Posts: 7

Re: font subpixel smoothing

Or if you like Apple's rendering, try this -

<?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>

Offline

#19 2009-04-15 00:06:00

f3
#! CrunchBanger
Registered: 2009-04-01
Posts: 121

Re: font subpixel smoothing

So, did you all do this: "For system-wide use, add that text to /etc/fonts/local.conf."?  Can someone please tell me what that means exactly?  Thanks

Offline

#20 2009-04-15 00:39:41

crazybilly
#! Member
Registered: 2008-12-05
Posts: 73

Re: font subpixel smoothing

so here's how it works: the system looks first in your home directory for a file named

.fonts.conf

. Then it looks for a file called

/etc/fonts/local.conf

.

The file in your home directory is given preference--whatever's in there is applied. The system then says "Ok, so for these other settings...does the file in /etc say anything about those?"

The trick is that no matter what user you log in as, it always falls back to /etc/fonts/local.conf (to add that text, open /etc/fonts/local.conf in a text editor. You'll have to do that from the command line--since it's a system file, you'll need to use administrator privileges to edit it. Try:

gksu gedit /etc/fonts/local.conf

That should let you edit the file. Then just paste that text in to the end of the file. That SHOULD do it.)

The idea is I can set font rendering the way I think looks good, and so can my wife. We each have our own

.fonts.conf

in our own home directories.

What's not written in each file falls back to the settings in /etc.

So if you want to change things for everybody who ever might use the system, change the file at

/etc/fonts/local.conf

. If you just want to change YOUR settings, change

.fonts.conf

in your home directory.

When I was new to Linux, I tended to edit the system file (because I was pretty much the only user on my laptop). But the 'Linux way' to do it is to make the edits in your home dir. And here's why:

When you go to change distros or upgrade to Jaunty or whatever, you can backup pretty much all the config files in your home dir. Then if Jaunty's (or whatever distro you try) font rendering sucks, or whatever, you can just copy the old

.fonts.conf

file over to your new home directory and suddenly all the tweaking you're doing right now will be applied.

And that'll work on (almost) any distro you try out. It's not a hard and fast rule, of course, but anytime there's programs shared between distros, they're usually configured the same way. Which means the config file in your directory has all your tweaks in it. So you're good to go.

How's that for a long-winded response that probably doesn't quite answer your question? big_smile


Peaces, crazybilly

Offline

#21 2009-04-15 01:51:04

f3
#! CrunchBanger
Registered: 2009-04-01
Posts: 121

Re: font subpixel smoothing

Cool.  I deleted my /etc/fonts/local.conf on the suggestion of another user.  I'm the only user anyway.

Offline

#22 2009-04-27 20:59:32

Hannus
Member
From: Estonia
Registered: 2009-04-21
Posts: 21

Re: font subpixel smoothing

I'll ask Zoids question over, what's the default DPI or how can I change it (via .fonts.conf)?

Offline

#23 2009-04-27 21:16:51

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,900

Re: font subpixel smoothing

To check your current DPI, run this:

xdpyinfo | grep resolution

To change the DPI, make sure xrandr is installed and run (just change the number):

xrandr --dpi 96 &

The setting isn't permament though.

Last edited by anonymous (2009-04-27 21:17:19)


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#24 2009-08-02 19:50:58

theZoid
Member
From: Florida
Registered: 2009-03-27
Posts: 20
Website

Re: font subpixel smoothing

If you use an Nvidia driver, adding the the following option to the shown section below will make 96 dpi permanent:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro FX 770M"
    Option         "DPI" "96 x 96"
EndSection

Last edited by theZoid (2009-08-02 21:55:28)


Cheers, Big Ears!

DΞLL Precision M6500 "Big Dog": i7-820QM w/USB 3.0, 8.0GB DDR3-1333, Intel x-25M 160 G2 + 500GB 7200.3, nVidia Quadro FX 3800M 1.0GB DDR3, RGBLED, Intel 6300 //Win7Pro x64/Sabayon KDE 4.5.4 x64

Offline

Be excellent to each other!

#25 2009-08-02 19:53:40

rigosantana3
Banned
Registered: 2009-02-10
Posts: 312

Re: font subpixel smoothing

anonymous wrote:

Open the file .fonts.conf and just delete any lines it has. Now reopen it and copy and paste one of the examples above into the file and save.

Now press Ctrl-Alt-Backspace to restart X (you will have to relogin etc, so save any data beforehand).

WHAOH WHAOH!
aparently you dont remember the heated battle that took place here a few weeks ago about CTRL+ALT+BKSP being removed from crunchbang?

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo