You are not logged in.
Hello.
If you don't like font rendering OTB in Statler (and Debian Squeeze) you could use this howto to make it's look like in ubuntu.
I've made archive with all needed packages compiled.
You can grab it here http://dl.dropbox.com/u/1815897/debian_squeeze/debs.tgz (548Kb)
If you need some additional packages(like *-dev, *-dbg, *-doc) here is all the packages
http://dl.dropbox.com/u/1815897/debian_ … bs_all.tgz (2.8Mb)
Here is step by step instruction how to make this packages by yourself.
First of all, i get patches from this links
http://aur.archlinux.org/packages.php?ID=17327
http://aur.archlinux.org/packages.php?ID=17157
It is Arch Linux packages with similar purpose.
I put all needed patches in this atchive http://dl.dropbox.com/u/1815897/debian_ … atches.tgz
Edit /etc/apt/sources.list, uncomment line
deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-freeInstall packages needed to compile
sudo aptitude install build-essential devscripts fakeroot
sudo aptitude build-dep cairo xftGo to folder, where you want to make all work. Call it "work"
Unpack patches.tgz. Folder should look like this:
./
../
./patches
Run this command
mkdir cairo xft debsPackage libcairo
Get source packages and patch it:
cd ./cairo
apt-get source cairo
cd ./cairo-*
cp ../../patches/cairo-patches/* ./debian/patches/
patch -p1 -i ./debian/patches/cairo-respect-fontconfig.patch
patch -p1 -i ./debian/patches/04_lcd_filter.patch
patch -p1 -i ./debian/patches/06_Xlib-Xcb-Hand-off-EXTEND_PAD-to-XRender.patch
dch -l kxLast line is adding suffix to packages. In this case i've choose kx (from my nickname). You could choose another suffix. Feel free to change this.
Compile packges and copy it to debs folder:
dpkg-buildpackage -rfakeroot -us -uc
cp ../*deb ../../debs/Package libxft
cd ./xft
apt-get source xft
cd ./xft-*
cp ../../patches/xft-patches/* ./debian/patches/
patch -p1 -i ./debian/patches/100-libXft-2.1.10-lcd-filter-3.patch
dch -l kxCompile packges and copy it to debs folder:
dpkg-buildpackage -rfakeroot -us -uc
cp ../*deb ../../debs/And final stage - remove unneeded and install packages:
cd ../../debs/
rm ./*.udeb ./*-dev*.deb ./*-dbg*.deb ./*-doc*.deb
dpkg -i ./*.debModify ~/.fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="rgba" mode="assign"><const>rgb</const></edit>
<!-- lcdnone, lcddefault, lcdlight, lcdlegacy -->
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
<edit name="dpi" mode="assign"><double>96</double></edit>
</match>
</fontconfig>Main line of this config is
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
it's set ubuntu-like font render
Here you can set preffered dpi:
<edit name="dpi" mode="assign"><double>96</double></edit>Feel free to change any option as you like.
Here is what we have before patches
And after.
Screens with my customized .fonts.conf (look for it at the end of article) and ttf-droid as default font.
And some more customization:
I've installed ttf-droid package from ubuntu
http://mirrors.kernel.org/ubuntu/pool/u … u1_all.deb
And set it to default font for my system
~/.fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="rgba" mode="assign"><const>rgb</const></edit>
<!-- lcdnone, lcddefault, lcdlight, lcdlegacy -->
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
<edit name="dpi" mode="assign">
<double>96</double>
</edit>
</match>
<!-- Replace Clean font with sans-serif -->
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Clean</string>
</test>
<edit mode="assign" name="family" >
<string>sans-serif</string>
</edit>
</match>
<!-- Replace Fixed font with monospace -->
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Fixed</string>
</test>
<edit mode="assign" name="family" >
<string>monospace</string>
</edit>
</match>
<!-- Replace Nimbus family font with default --
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Nimbus Sans L</string>
</test>
<edit mode="assign" name="family" >
<string>sans-serif</string>
</edit>
</match>
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Nimbus Roman No9 L</string>
</test>
<edit mode="assign" name="family" >
<string>serif</string>
</edit>
</match>
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Nimbus Mono L</string>
</test>
<edit mode="assign" name="family" >
<string>monospace</string>
</edit>
</match>
<!-- No embedded bitmaps -->
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<alias binding="same">
<family>sans-serif</family>
<prefer>
<family>Droid Sans</family>
</prefer>
</alias>
<alias binding="same">
<family>serif</family>
<prefer>
<family>Droid Serif</family>
</prefer>
</alias>
<alias binding="same">
<family>monospace</family>
<prefer>
<family>Droid Sans Mono</family>
</prefer>
</alias>
<alias binding="same">
<family>Helvetica</family>
<prefer>
<family>Droid Sans</family>
<family>Liberation Sans</family>
</prefer>
</alias>
<alias binding="same">
<family>Times</family>
<prefer>
<family>Droid Serif</family>
<family>Liberation Serif</family>
</prefer>
</alias>
<alias binding="same">
<family>Courier</family>
<prefer>
<family>Droid Sans Mono</family>
<family>Liberation Mono</family>
</prefer>
</alias>
<!-- Set default font -->
<alias>
<family>Droid Serif</family>
<family>Liberation Serif</family>
<default><family>serif</family></default>
</alias>
<alias>
<family>Droid Sans</family>
<family>Liberation Sans</family>
<default><family>sans-serif</family></default>
</alias>
<alias>
<family>Droid Sans Mono</family>
<family>Liberation Mono</family>
<default><family>monospace</family></default>
</alias>
<alias>
<family>serif</family>
<prefer><family>Droid Serif</family></prefer>
<prefer><family>Liberation Serif</family></prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer><family>Droid Sans</family></prefer>
<prefer><family>Liberation Sans</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Droid Sans Mono</family></prefer>
<prefer><family>Liberation Mono</family></prefer>
</alias>
</fontconfig>I hope this howto will be usefull.
Feel free to correct my mistakes.
UPD: updated libcairo package with current squeeze version.
User chillicampari made some experiments and result is here
And his ~/.fonts.conf with comments
http://crunchbanglinux.org/pastebin/607
Last edited by kodx (2010-05-01 17:01:38)
Offline
Thanks for the guide. Do you have a before picture to compare to?
I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.
Offline
Very nice guide, and your English is fine. Thanks 
Last edited by rich (2010-04-18 17:46:22)
Offline
Thanks for responses. I really appreciate it.
I reproduce install of my packages on freshly installed system. Everything just fine.
I've modified article and added images after and before.
Offline
That is a big difference, I'll have to do this when I have some spare time. Thanks again.
I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.
Offline
I cant see the difference ? :-/ ? - what too look for?
Offline
it is a little hard to notice unless you are looking for it. Also some people don't like the smooth fonts as much, but here is zoomed in to show you.
It isn't as clear as it should be because it is a screenshot of a screenshot, but you can see the word font on the bottom is smoothed more. You'll notice it mostly in letters like V or O that have a lot of curves or angles.
I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.
Offline
I must warn people with big (>100) dpi. On such monitors you hardly see the difference. This font rendering is intented to monitors with small (<97) dpi. I have 19 inch monitor with native resolution 1280x1024 it is about 81 dpi
And i can see furry glyphs with standart BCI render, that comes with Statler. So this font render is my savior, not to hurt my eyes 
By default ubuntu uses slight hinting, you could set this by changing
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
to
<edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
Offline
Thank you for this, kodx! It did make it like Ubuntu font rendering (which is a slight bit on the soft side for me, but I could tweak it from there), took out a lot of jags and shapes seem way better (if I'm using the right phrase, I'm not even sure what I'm talking about
). I'm still playing with this, but my .fonts.conf currently looks like:
edit- that one's really old and doesn't actually work rightLast edited by chillicampari (2010-11-05 22:25:35)
Offline
Whatever I do with whatever Linux flavor, I never get satisfying results on a 22 inch screen.
Just look at the screenshots, the difference between then and now is hardly noticable. Look at those Arial fonts on the web page - nearly unreadable! On my screen there is exactly two(!) fonts that are usable at all - DejaVuSans and Verdana. As a result I have to fix the font settings in Firefox in a way, that the content settings are ignored.
Font rendering is an issue that has to be addressed finally.
Sorry for the rant.
Last edited by qbrick (2010-04-23 07:32:24)
Offline
Then there's the other direction - completely un-antialiased font rendering. Assuming one has a set of bitmapped fonts (such as those once available with Mac 6.1.7), is there a way to do this in Openbox?
The subpixel smoothing as done in Ubuntu does look slightly...different...from that in Debian; it's kinda like the infamous Cybill lens filter used on Moonlighting.
while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.
Offline
Whatever I do with whatever Linux flavor, I never get satisfying results on a 22 inch screen.
Just look at the screenshots, the difference between then and now is hardly noticable. Look at those Arial fonts on the web page - nearly unreadable! On my screen there is exactly two(!) fonts that are usable at all - DejaVuSans and Verdana. As a result I have to fix the font settings in Firefox in a way, that the content settings are ignored.Font rendering is an issue that has to be addressed finally.
Sorry for the rant.
There is differnce. Look at iggykoopa's post. About Arial - i think it looks fine.
There is some issue about DejaVu look at the screenshot
I don't know why developers of this font have such hate about russian glyphs, but you can see how it looks. So i have to use anything but dejavu font. Look at my screens, arial looks just fine compare to above screen.
I must admit - there is no free usable fonts under linux, we have to use Droid and Microsoft Core fonts. Font rendering i've gave here broke some patents, but ubuntu devs don't worry about this, and, i think, we should too. So use these packages at your own risk 
@pvsage
Hmm, Mac using not AA but hinting. Please read this http://crunchbanglinux.org/forums/topic … smoothing/
Offline
@kodx - Actually not really looking for hinting either; System 6 really wasn't that smart.
Looked something like this:
http://en.wikipedia.org/wiki/File:Sys6s … otbusy.png
What really helped with the Old World ROM interface was one pixel == one typographic point == 72 DPI (at least on the Compact Mac models). The rule of one point == one pixel was carried over to the earlier PowerBooks with extreme strictness, which ensured that everything always displayed crisply, with no odd artifacts due to antialiasing or dithering.
As for the Cyrillic glyphs...I'm afraid that most of us don't know enough about them. Where is Deja Vu getting it wrong? Are you saying that the section with the Roman characters is Deja Vu and the others are different fonts? (We can't tell from your screenshot where the cursor is and which section is what typeface.) You might want to try installing ttf-uralic and see if that adds support for Cyrillic in Deja Vu and the other Free fonts.
while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.
Offline
@pvsage
About Mac - about hinting was my thoughts, so you can read it as IMHO. One of my friends have hacintosh and i don't like font render there (for me it's really ugly and furry). Maybe it because of hacintosh.
It seems that i'm the only one from russia here
Here is explanation of screenshot
hinting - on, hintfull
lcdfilter - lcddefault
autohint - off
All in DejaVu, 4 lines per sections, in that sequence
1 line - normal
2 line - normal italic
3 line - normal bold
4 line - normal bold italic
1 section - Sans English
2 section - Sans Cyrillic
3-4 lines, look at glyphs "ъ" and "э" its blurry
3 section - Serif Cyrillic
3-4 lines, most of glyphs blurry
4 section - Sans Cyrillic (big size)
here for example, on big size glyphs we have old problems
How ubuntu solve this issue - they using hintslight. With slight hinting glyphs looks good (not for all DPIs). So i switched to hintslight and still searching for better font(Uralic not so good).
Thanks for hint about ttf-uralic.
Offline
OK, I give up. How do I adjust font hinting in Openbox? I can't find an option for this like in XFCE or Gnome.
Still trying to find decent bitmap fonts as well...
while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.
Offline
pvsage, you can adjust them in a local .fonts.conf (fontconfig). One might have already come with the default install on the openbox version (not sure, I just usually copy my old one over). There are a bunch of options where you can switch hinting (and it looks like different lcd filter types are switchable too, from what I'm seeing with the patched libraries) by specific font, size or weight. I've been playing around with the fine tuning options for a few days and it's pretty cool. You can pick a font for the console and turn off a lot of the filtering (to minimize color artifacts on light text) while keeping some anti-aliasing and I'm still messing around with that. Not the same as the bitmapped fonts, but so far not bad. If you get a good bitmapped scheme going that would be awesome.
There's also Xfont settings you can adjust with an .Xresources file (see note at the bottom).
There's some good reading here on font config: http://wiki.archlinux.org/index.php/Fon … g_Examples
and on the main font page: http://wiki.archlinux.org/index.php/Font_Configuration
A quick way to check for syntax errors is to run "gedit &" from a terminal (you don't actually really need to use gedit, unless you want, it just reads from the config file and it opens fast). If there are any it'll throw them back with the line numbers to the console right away.
Since I'm using he patched libraries kodx posted, they might make a difference on some of the effects, but when I'm all done tweaking I'll probably post up my config.
I was also booting to the live cd to compare and I realized that the default is pretty danged good! I think all I'm trying to do is smooth a little bit here and tighten a bit there, but not change it *too* much.
Edit- I just switched over to my XP box to do some video work and realized I need to touch up the cleartype tuning on that since it looks fuzzy now. I think I've been staring at fonts so much I'm going crosseyed. 
Another edit- some things seem to be favoring the Xft (Xfont) settings in .Xresources over .fonts.conf so I'm playing with that more to figure out how they work together.
Last edited by chillicampari (2010-04-28 04:20:40)
Offline
^ Thanks for the reminder to check the Arch wiki! That page explains a lot.
John
--------------------
( a boring Japan blog , and idle twitterings )
Offline
@chillicampari: Thanks for that! I'd given up on trying to do this via the GTK config files, because the only options for antialiasing in that route apparently only apply to xft fonts.
From some brief experiments with XFCE, it looks like what will come closest to what I want is antialias=off and hinting=hintfull. Now I just need to go rtfw (read the funny wiki) and find out how to do this.
while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.
Offline
@chillicampari
thanks for advice about archwiki. It could be usefull for someone.
I'm an ex arch user, it was about 3 years ago, i'm even maintained few packages in aur, but drop it and switched to debian, because of my work(i'm freelance administrator). Now my main criteria in linux distro is stability, so debian and centos is my choice.
About ~/.Xresources and ~/.fonts.conf as i could see, .fonts.conf have more decent options compare to .Xresources (like font size equal and other), so i turned off any tuning from .Xresources and do it in .fonts.conf only. As i could see - GTK+ and Qt apps works perfectly with .fonts.conf.
@pvsage
You can use .fonts.conf from my post, or tune one's you have installed with statler.
If you have any issues with my patched libraries - post it, i'll try to find out what's wrong.
And i'm glad to hear that my work helped anybody.
Offline
:DWhew! 
the sample is pretty big, so a larger version is at tinypic. It's not exactly right since they convert to jpeg (I should probably find another free host) but it should give you an idea of what it looks like. You'll want to make sure your browser isn't scaling it down 'cause that looks fugly so make sure it's at 100%.
To keep with the examples kodx posted, the top browser is Chromium and the site is the Yahoo main page. I...umm.. didn't take a before screenshot before I started doing this and it's sort of a long way back since I'd have to back out the patched libraries too). Sorry! I'll try to remember to do that if I start fresh with the beta.
The .fonts.conf file should be in the pastebin. It's full of inline notes. Probably way too many but that way I'll remember what I'm looking at. 

http://crunchbanglinux.org/pastebin/607
It's not really an extreme difference (or shouldn't be), and I think most people won't even notice it's different, but it's been fun to play with.
Last edited by chillicampari (2010-04-29 17:41:35)
Offline
Yeah, I know I'm following up my own post, but it's easier to scroll through the thread this way. 
@johnraff, yep the Arch wiki is *really* cool. I love their documentation.
@pvsage, no problem! I have a feeling we may have a sort of similar font style preference, so for fun you might want to mess with the .fonts.conf I dropped in the pastebin. I'm back on Openbox too again (was using XFCE for a few days). I'm also curious of how it shows up on yours and other people's (might be entirely crazy whacked out looking, or might work out really good, don't know). You'll probably want to toggle the settings around to see what they do. You can get some really different looks with subpixel rendering on/off and lcdfilter combos.
@kodx, This totally helped on mine it also got me motivated to actually start trying to learn this! 
I'm thinking (not totally sure on this) that most things are using .fonts.conf but the odd thing here and there might still want .Xresources for some reason. Swiftfox is going scratchy when I remove it, so I have a really stripped down one with just anti-aliasing (on) and hinting assignment (full) in it. I might have missed something though.
Edit- oh yeah! kodx, those Droid fonts are pretty cool!
Last edited by chillicampari (2010-04-29 21:34:14)
Offline
The .fonts.conf file should be in the pastebin. It's full of inline notes. Probably way too many but that way I'll remember what I'm looking at.
http://crunchbanglinux.org/pastebin/607It's not really an extreme difference (or shouldn't be), and I think most people won't even notice it's different, but it's been fun to play with.
@chillicampari
Wow... i just tried your fonts.conf... and it's a big difference! Here on the forum pages, on twitter and some other pages.
I'm not sure i like it though
but it's a start to explore the font config myself.
cheers,
tuna
sed 's/stress/relaxation/g'
Privacy & Security on #!
Offline
Ok,
Just don't shoot at me. I removed my Crunchbang 9.04 because I didn't have a good experience regarding font rendering. I am using PclinuxOS which is superb in font rendering. However I am waiting for the beta release of CHB to replace it so I am still among you.
My request is: Could it be possible to include the modification brough by this excellent how to, into the new release?
Offline
@chillicampari
Wow... i just tried your fonts.conf... and it's a big difference! Here on the forum pages, on twitter and some other pages.
I'm not sure i like it thoughbut it's a start to explore the font config myself.
cheers,
tuna
Cool! Tweaking it can be pretty fun to see the different things it'll do. The last couple of weeks I've been using rgb subpixel rendering and the lccdefault filter enabled. I didn't really care for those settings before since they looked a little too painted on for my taste but either I've gotten used to it, or maybe it's going better with some of the other settings like having the autohinter off. Now the older config (in the pastebin) looks a bit bright when I try it.
Can't get Firefox to use the filtering though, so it stands out quite a bit from everything else. Midori and Chrome/Chromium match up nicely though.
@discovery That's a good question! We're a pretty non-shooty group here so no worries. 
@kodx, I noticed the update in the OP with the pastebin link and screenshot. Neat, and thanks!!!
Edit- I've added my current .fonts.conf (most of the notes are stripped out on this one, and the fonts substitutions are a bit different). Sites using Georgia, Lucida Grande and MS Trebuchet are a lot more readable to me now. And I've subbed out some other common fonts just as personal preference.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- 05/25/2010 -->
<!-- This is a work in progress font config file from the CrunchBang Linux forums thread:
http://crunchbanglinux.org/forums/post/66205/
with help from the Arch font wiki:
http://wiki.archlinux.org/index.php/Font_Configuration -->
<fontconfig>
<match target="font">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit mode="assign" name="rgba"><const>rgb</const></edit>
<edit mode="assign" name="lcdfilter"><const>lcddefault</const></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit mode="assign" name="hintstyle"><const>hintfull</const></edit>
<edit mode="assign" name="autohint"><bool>false</bool></edit>
</match>
<alias>
<family>serif</family>
<prefer><family>DejaVu Serif</family></prefer>
</alias>
<alias>
<family>sans</family>
<prefer><family>DejaVu Sans</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>DejaVu mono</family></prefer>
</alias>
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Arial</string>
</test>
<edit mode="assign" name="family" >
<string>DejaVu Sans</string>
</edit>
</match>
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Tahoma</string>
</test>
<edit mode="assign" name="family" >
<string>DejaVu Sans</string>
</edit>
</match>
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Verdana</string>
</test>
<edit mode="assign" name="family" >
<string>DejaVu Sans</string>
</edit>
</match>
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Courier New</string>
</test>
<edit mode="assign" name="family" >
<string>Liberation mono</string>
</edit>
</match>
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Times New Roman</string>
</test>
<edit mode="assign" name="family" >
<string>DejaVu Serif</string>
</edit>
</match>
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Times</string>
</test>
<edit mode="assign" name="family" >
<string>DejaVu Serif</string>
</edit>
</match>
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Georgia</string>
</test>
<edit mode="assign" name="family" >
<string>DejaVu Serif</string>
</edit>
</match>
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Lucida Grande</string>
</test>
<edit mode="assign" name="family" >
<string>DejaVu Sans</string>
</edit>
</match>
<match target="pattern" name="family" >
<test name="family" qual="any" >
<string>Trebuchet MS</string>
</test>
<edit mode="assign" name="family" >
<string>DejaVu Sans</string>
</edit>
</match>
</fontconfig>Last edited by chillicampari (2010-05-26 02:13:03)
Offline
Thanks for the info, kodx. I've found many web pages to be un-readable - the default font is too small & blurred, but when I upscale in Iceweasel they become ugly and blocky. I'll try this out.
May 18, 2010 - Google Font Directory launched. Droid fonts are licensed under Apache 2.
http://code.google.com/p/googlefontdire … browse/#hg
Most fonts use the SIL Open Font License, version 1.1. A few fonts use
the Apache 2 license. Each directory contains the appropriate license
file for the fonts in that directory.Since all the fonts in this project are open source, many have
open source projects elsewhere. As with most open source
distributions, best practice is always to merge changes upstream.
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.